Klasse ExchangeConnectionUtil

java.lang.Object
de.uplanet.lucy.server.businesslogic.exchange.util.ExchangeConnectionUtil

@Scriptable public final class ExchangeConnectionUtil extends Object
Utility class providing connections to MS Exchange server.
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    static de.uplanet.jdbc.JdbcConnection
    Returns an Exchange connection for the currently logged in Intrexx user.
    static de.uplanet.jdbc.JdbcConnection
    Returns a connection for the current user or a connection for an impersonate user if an impersonate user is registered with the given DataGroupInfo.
    static de.uplanet.jdbc.JdbcConnection
    Returns a connection for the current user or a connection for an impersonate user if an impersonate user is registered with a DataGroup identified by the given DataGroup GUID.
    static de.uplanet.jdbc.JdbcConnection
    Returns a connection for the current user or a connection for an impersonate user if an impersonate user is registered with the given ISessionProcessingContext.
    static de.uplanet.jdbc.JdbcConnection
    Returns a connection for an impersonate user.
     
    static de.uplanet.jdbc.JdbcConnection
    getUserConnection(String p_strUserGuid)
    Returns a connection for a static MediaGateway user.

    Von Klasse geerbte Methoden java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Methodendetails

    • getInstance

      public static ExchangeConnectionUtil getInstance()
      Gibt zurück:
      The ExchangeConnectionUtil singleton instance.
    • getConnection

      public static de.uplanet.jdbc.JdbcConnection getConnection() throws de.uplanet.lucy.server.exchange.ExchangeLoginRequiredException
      Returns an Exchange connection for the currently logged in Intrexx user.
      Gibt zurück:
      The connection.
      Löst aus:
      de.uplanet.lucy.server.exchange.ExchangeLoginRequiredException - If the connection could not be established.
    • getImpersonateConnection

      public static de.uplanet.jdbc.JdbcConnection getImpersonateConnection(String p_strUserGuid) throws de.uplanet.lucy.server.exchange.ExchangeLoginRequiredException
      Returns a connection for an impersonate user.
      Parameter:
      p_strUserGuid - The GUID of the user used for impersonate actions.
      Gibt zurück:
      The connection.
      Löst aus:
      de.uplanet.lucy.server.exchange.ExchangeLoginRequiredException - If the connection could not be established.
    • getUserConnection

      public static de.uplanet.jdbc.JdbcConnection getUserConnection(String p_strUserGuid) throws de.uplanet.lucy.server.exchange.ExchangeLoginRequiredException, SecurityException
      Returns a connection for a static MediaGateway user. This user must have logged in before with disabled session-based authentication in order to create the user account on the MediaGateway server. Be aware that the caller is responsible for closing the connection, as a connection retrieved by this method is not bound to the ThreadContext.
      Parameter:
      p_strUserGuid - The GUID of the Intrexx user.
      Gibt zurück:
      The connection.
      Löst aus:
      de.uplanet.lucy.server.exchange.ExchangeLoginRequiredException - If the connection could not be established.
      SecurityException - If static user connections are not permitted.
    • getConnectionForDataGroup

      public static de.uplanet.jdbc.JdbcConnection getConnectionForDataGroup(DataGroupInfo p_dataGroupInfo) throws de.uplanet.lucy.server.exchange.ExchangeLoginRequiredException
      Returns a connection for the current user or a connection for an impersonate user if an impersonate user is registered with the given DataGroupInfo.
      Parameter:
      p_dataGroupInfo - The DataGroupInfo instance which holds information about the impersonation user.
      Gibt zurück:
      The connection.
      Löst aus:
      de.uplanet.lucy.server.exchange.ExchangeLoginRequiredException - If the connection could not be established.
    • getConnectionForDataGroup

      public static de.uplanet.jdbc.JdbcConnection getConnectionForDataGroup(String p_strDgGuid) throws de.uplanet.lucy.server.exchange.ExchangeLoginRequiredException
      Returns a connection for the current user or a connection for an impersonate user if an impersonate user is registered with a DataGroup identified by the given DataGroup GUID.
      Parameter:
      p_strDgGuid - The DataGroup GUID.
      Gibt zurück:
      The connection.
      Löst aus:
      de.uplanet.lucy.server.exchange.ExchangeLoginRequiredException - If the connection could not be established.
    • getConnectionForWorkflowAction

      public static de.uplanet.jdbc.JdbcConnection getConnectionForWorkflowAction(ISessionProcessingContext p_context) throws de.uplanet.lucy.server.exchange.ExchangeLoginRequiredException
      Returns a connection for the current user or a connection for an impersonate user if an impersonate user is registered with the given ISessionProcessingContext.
      Parameter:
      p_context - The workflow processing context.
      Gibt zurück:
      The connection.
      Löst aus:
      de.uplanet.lucy.server.exchange.ExchangeLoginRequiredException - If the connection could not be established.