@Scriptable
public final class ExchangeConnectionUtil
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static de.uplanet.jdbc.JdbcConnection |
getConnection()
Returns an Exchange connection for the currently logged in Intrexx user.
|
static de.uplanet.jdbc.JdbcConnection |
getConnectionForDataGroup(DataGroupInfo p_dataGroupInfo)
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 |
getConnectionForDataGroup(java.lang.String p_strDgGuid)
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 |
getConnectionForWorkflowAction(ISessionProcessingContext p_context)
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 |
getImpersonateConnection(java.lang.String p_strUserGuid)
Returns a connection for an impersonate user.
|
static ExchangeConnectionUtil |
getInstance() |
static de.uplanet.jdbc.JdbcConnection |
getUserConnection(java.lang.String p_strUserGuid)
Returns a connection for a static MediaGateway user.
|
public static ExchangeConnectionUtil getInstance()
public static de.uplanet.jdbc.JdbcConnection getConnection() throws de.uplanet.lucy.server.exchange.ExchangeLoginRequiredException
de.uplanet.lucy.server.exchange.ExchangeLoginRequiredException
- If the connection could not be established.public static de.uplanet.jdbc.JdbcConnection getImpersonateConnection(java.lang.String p_strUserGuid) throws de.uplanet.lucy.server.exchange.ExchangeLoginRequiredException
p_strUserGuid
- The GUID of the user used for impersonate actions.de.uplanet.lucy.server.exchange.ExchangeLoginRequiredException
- If the connection could not be established.public static de.uplanet.jdbc.JdbcConnection getUserConnection(java.lang.String p_strUserGuid) throws de.uplanet.lucy.server.exchange.ExchangeLoginRequiredException, java.lang.SecurityException
ThreadContext
.p_strUserGuid
- The GUID of the Intrexx user.de.uplanet.lucy.server.exchange.ExchangeLoginRequiredException
- If the connection could not be established.java.lang.SecurityException
- If static user connections are not permitted.public static de.uplanet.jdbc.JdbcConnection getConnectionForDataGroup(DataGroupInfo p_dataGroupInfo) throws de.uplanet.lucy.server.exchange.ExchangeLoginRequiredException
DataGroupInfo
.p_dataGroupInfo
- The DataGroupInfo
instance which holds information
about the impersonation user.de.uplanet.lucy.server.exchange.ExchangeLoginRequiredException
- If the connection could not be established.public static de.uplanet.jdbc.JdbcConnection getConnectionForDataGroup(java.lang.String p_strDgGuid) throws de.uplanet.lucy.server.exchange.ExchangeLoginRequiredException
DataGroup
identified
by the given DataGroup GUID.p_strDgGuid
- The DataGroup GUID.de.uplanet.lucy.server.exchange.ExchangeLoginRequiredException
- If the connection could not be established.public static de.uplanet.jdbc.JdbcConnection getConnectionForWorkflowAction(ISessionProcessingContext p_context) throws de.uplanet.lucy.server.exchange.ExchangeLoginRequiredException
ISessionProcessingContext
.p_context
- The workflow processing context.de.uplanet.lucy.server.exchange.ExchangeLoginRequiredException
- If the connection could not be established.