de.uplanet.lucy.server.businesslogic.exchange.util.impl
Class ExchangeContactUtil

java.lang.Object
  extended by de.uplanet.lucy.server.businesslogic.exchange.util.impl.ExchangeContactUtil
All Implemented Interfaces:
IExchangeContactUtil

@Scriptable
public class ExchangeContactUtil
extends java.lang.Object
implements IExchangeContactUtil

Version:
$Revision: 89488 $

Method Summary
 IExchangeContact createNew(java.lang.String p_strSurname, java.lang.String p_strGivenName, java.lang.String p_strEmailAddress, java.lang.String p_strUserMailbox)
          Creates a new contact.
 IExchangeContact createNew(java.lang.String p_strSurname, java.lang.String p_strGivenName, java.lang.String p_strEmail1Address, java.lang.String p_strEmail1OriginalDisplayName, java.lang.String p_strEmail2Address, java.lang.String p_strEmail2OriginalDisplayName, java.lang.String p_strEmail3Address, java.lang.String p_strEmail3OriginalDisplayName, java.lang.String p_strUserMailbox)
          Creates a new contact.
 IExchangeContact createNew(java.lang.String p_strSurname, java.lang.String p_strGivenName, java.lang.String p_strEmailAddress, java.lang.String p_strPersonalTitle, java.lang.String p_strStreet, java.lang.String p_strPostalCode, java.lang.String p_strCity, java.lang.String p_strCountry, java.lang.String p_strTelephoneNumber, java.lang.String p_strMobile, java.lang.String p_strOrganization, java.lang.String p_strUserMailbox)
          Creates a new contact.
 IExchangeContact findById(java.lang.String p_strId)
          Finds a contact by the given ID.
 IExchangeContact findByPermanentUrl(java.lang.String p_strPermUrl)
          Finds a task by the given Permanent URL.
static IExchangeContactUtil getInstance()
          Returns an instance initialized with a Exchange connection for the currently logged in user.
static IExchangeContactUtil getInstance(java.sql.Connection p_conn)
          Returns an instance initialized with the given Exchange connection.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static IExchangeContactUtil getInstance()
Returns an instance initialized with a Exchange connection for the currently logged in user.

Returns:
the instance

getInstance

public static IExchangeContactUtil getInstance(java.sql.Connection p_conn)
Returns an instance initialized with the given Exchange connection.

Parameters:
p_conn - the MS Exchange connection
Returns:
the instance

createNew

public IExchangeContact createNew(java.lang.String p_strSurname,
                                  java.lang.String p_strGivenName,
                                  java.lang.String p_strEmailAddress,
                                  java.lang.String p_strUserMailbox)
                           throws de.uplanet.lucy.server.businesslogic.exchange.util.ExchangeUtilException
Description copied from interface: IExchangeContactUtil
Creates a new contact.

Specified by:
createNew in interface IExchangeContactUtil
Parameters:
p_strSurname - The surname.
p_strGivenName - The given name.
p_strEmailAddress - The email address.
p_strUserMailbox - The mailbox the contact belongs to.
Returns:
The new IExchangeContact instance.
Throws:
ExchangeUtilException - If the contact could not be created.

createNew

public IExchangeContact createNew(java.lang.String p_strSurname,
                                  java.lang.String p_strGivenName,
                                  java.lang.String p_strEmailAddress,
                                  java.lang.String p_strPersonalTitle,
                                  java.lang.String p_strStreet,
                                  java.lang.String p_strPostalCode,
                                  java.lang.String p_strCity,
                                  java.lang.String p_strCountry,
                                  java.lang.String p_strTelephoneNumber,
                                  java.lang.String p_strMobile,
                                  java.lang.String p_strOrganization,
                                  java.lang.String p_strUserMailbox)
                           throws de.uplanet.lucy.server.businesslogic.exchange.util.ExchangeUtilException
Description copied from interface: IExchangeContactUtil
Creates a new contact.

Specified by:
createNew in interface IExchangeContactUtil
Parameters:
p_strSurname - The surname.
p_strGivenName - The given name.
p_strEmailAddress - The email address.
p_strPersonalTitle - The personal title (Mr./Mrs.)
p_strStreet - The street.
p_strCity - The city.
p_strCountry - The country.
p_strTelephoneNumber - The telephone number.
p_strMobile - The mobile number.
p_strOrganization - The organization.
p_strUserMailbox - The mailbox the contact belongs to.
Returns:
The new IExchangeContact instance.
Throws:
ExchangeUtilException - If the contact could not be created.

createNew

public IExchangeContact createNew(java.lang.String p_strSurname,
                                  java.lang.String p_strGivenName,
                                  java.lang.String p_strEmail1Address,
                                  java.lang.String p_strEmail1OriginalDisplayName,
                                  java.lang.String p_strEmail2Address,
                                  java.lang.String p_strEmail2OriginalDisplayName,
                                  java.lang.String p_strEmail3Address,
                                  java.lang.String p_strEmail3OriginalDisplayName,
                                  java.lang.String p_strUserMailbox)
                           throws de.uplanet.lucy.server.businesslogic.exchange.util.ExchangeUtilException
Description copied from interface: IExchangeContactUtil
Creates a new contact.

Specified by:
createNew in interface IExchangeContactUtil
Parameters:
p_strSurname - The surname.
p_strGivenName - The given name.
p_strEmail1Address - The email 1 address.
p_strEmail1OriginalDisplayName - The email 1 original display name.
p_strEmail2Address - The email 2 address.
p_strEmail2OriginalDisplayName - The email 2 original display name.
p_strEmail3Address - The email 3 address.
p_strEmail3OriginalDisplayName - The email 3 original display name.
p_strUserMailbox - The mailbox the contact belongs to.
Returns:
The new IExchangeContact instance.
Throws:
ExchangeUtilException - If the contact could not be created.

findById

public IExchangeContact findById(java.lang.String p_strId)
                          throws de.uplanet.lucy.server.businesslogic.exchange.util.ExchangeUtilException
Description copied from interface: IExchangeContactUtil
Finds a contact by the given ID.

Specified by:
findById in interface IExchangeContactUtil
Parameters:
p_strId - The contact ID.
Returns:
The IExchangeContact instance.
Throws:
ExchangeUtilException - If the contact could not be found.

findByPermanentUrl

public IExchangeContact findByPermanentUrl(java.lang.String p_strPermUrl)
                                    throws de.uplanet.lucy.server.businesslogic.exchange.util.ExchangeUtilException
Description copied from interface: IExchangeContactUtil
Finds a task by the given Permanent URL.

Specified by:
findByPermanentUrl in interface IExchangeContactUtil
Parameters:
p_strPermUrl - The permanent URL.
Returns:
The IExchangeContact.
Throws:
ExchangeUtilException - If the contact could not be found.


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