de.uplanet.lucy.server.businesslogic.exchange.util
Class ExchangeConnectionUtil

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

@Scriptable
public final class ExchangeConnectionUtil
extends java.lang.Object

Utility class to get a connection to an MS Exchange server.

Version:
$Revision: 88032 $

Method Summary
static de.uplanet.jdbc.JdbcConnection getConnection()
          Returns an Exchange user connection.
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(de.uplanet.lucy.server.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()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static ExchangeConnectionUtil getInstance()
Returns:
The ExchangeConnectionUtil singleton instance.

getConnection

public static de.uplanet.jdbc.JdbcConnection getConnection()
                                                    throws de.uplanet.lucy.server.exchange.ExchangeLoginRequiredException
Returns an Exchange user connection.

Returns:
The connection.
Throws:
de.uplanet.lucy.server.exchange.ExchangeLoginRequiredException - If the connection could not be established.

getImpersonateConnection

public static de.uplanet.jdbc.JdbcConnection getImpersonateConnection(java.lang.String p_strUserGuid)
                                                               throws de.uplanet.lucy.server.exchange.ExchangeLoginRequiredException
Returns a connection for an impersonate user.

Parameters:
p_strUserGuid - The GUID of the user used for impersonate actions.
Returns:
The connection.
Throws:
de.uplanet.lucy.server.exchange.ExchangeLoginRequiredException - If the connection could not be established.

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.

Parameters:
p_dataGroupInfo - The DataGroupInfo instance which holds information about the impersonation user.
Returns:
The connection.
Throws:
de.uplanet.lucy.server.exchange.ExchangeLoginRequiredException - If the connection could not be established.

getConnectionForDataGroup

public static de.uplanet.jdbc.JdbcConnection getConnectionForDataGroup(java.lang.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.

Parameters:
p_strDgGuid - The DataGroup GUID.
Returns:
The connection.
Throws:
de.uplanet.lucy.server.exchange.ExchangeLoginRequiredException - If the connection could not be established.

getConnectionForWorkflowAction

public static de.uplanet.jdbc.JdbcConnection getConnectionForWorkflowAction(de.uplanet.lucy.server.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.

Parameters:
p_context - The workflow processing context.
Returns:
The connection.
Throws:
de.uplanet.lucy.server.exchange.ExchangeLoginRequiredException - If the connection could not be established.


Last updated: 2011-08-11 10-04
Copyright © 2000-2011 United Planet. All Rights Reserved.