Class ExchangeCallable
- java.lang.Object
-
- de.uplanet.lucy.server.auxiliaries.exchange.ExchangeCallable
-
@VelocityCallable("singleton") public final class ExchangeCallable extends ObjectCallable for Exchange authentication.
-
-
Constructor Summary
Constructors Constructor Description ExchangeCallable()Default constructor.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanconnect(ISession p_session, IUser p_user, de.uplanet.lucy.server.auxiliaries.exchange.ExchangeAuthFieldValues p_excAuthValues)Initializes or updates the Exchange account configuration for the current user using the given authentication field values and tries to connect to Exchange server afterwards.static booleanconnect(ISession p_session, IUser p_user, de.uplanet.lucy.server.auxiliaries.exchange.ExchangeAuthFieldValues p_excAuthValues, String p_strPortalGuid)Initializes or updates the Exchange account configuration for the current user using the given authentication field values and tries to connect to Exchange server afterwards.static de.uplanet.lucy.server.auxiliaries.exchange.ExchangeAuthFieldValuesgetFieldValues(IUser p_user)Returns an instance ofExchangeAuthFieldValuesto capture the required authentication field values entered by an user.static de.uplanet.lucy.server.auxiliaries.exchange.ExchangeAuthRequiredFieldsgetRequiredFields()Returns an instance ofExchangeAuthRequiredFieldsto recognize the required authentication fields.static booleanisAuthenticated(ISession p_session)Tests whether the current Intrexx user is authenticated for Exchange server.
-
-
-
Method Detail
-
getRequiredFields
public static de.uplanet.lucy.server.auxiliaries.exchange.ExchangeAuthRequiredFields getRequiredFields()
Returns an instance ofExchangeAuthRequiredFieldsto recognize the required authentication fields.- Returns:
- ExchangeAuthRequiredFields instance
-
getFieldValues
public static de.uplanet.lucy.server.auxiliaries.exchange.ExchangeAuthFieldValues getFieldValues(IUser p_user)
Returns an instance ofExchangeAuthFieldValuesto capture the required authentication field values entered by an user.- Returns:
- ExchangeAuthRequiredFields instance
-
connect
public static boolean connect(ISession p_session, IUser p_user, de.uplanet.lucy.server.auxiliaries.exchange.ExchangeAuthFieldValues p_excAuthValues) throws de.uplanet.lucy.server.exchange.ExchangeLoginRequiredException
Initializes or updates the Exchange account configuration for the current user using the given authentication field values and tries to connect to Exchange server afterwards.- Parameters:
p_excAuthValues- the required authentication values- Returns:
- true if connection could be established
- Throws:
de.uplanet.lucy.server.exchange.ExchangeLoginRequiredException- if connection could not be established
-
connect
public static boolean connect(ISession p_session, IUser p_user, de.uplanet.lucy.server.auxiliaries.exchange.ExchangeAuthFieldValues p_excAuthValues, String p_strPortalGuid) throws de.uplanet.lucy.server.exchange.ExchangeLoginRequiredException
Initializes or updates the Exchange account configuration for the current user using the given authentication field values and tries to connect to Exchange server afterwards.- Parameters:
p_excAuthValues- the required authentication valuesp_strPortalGuid- the portal GUID- Returns:
- true if connection could be established
- Throws:
de.uplanet.lucy.server.exchange.ExchangeLoginRequiredException- if connection could not be established
-
isAuthenticated
public static boolean isAuthenticated(ISession p_session)
Tests whether the current Intrexx user is authenticated for Exchange server.- Parameters:
p_session- The session.- Returns:
- True, is user is authenticated, otherwise false.
-
-