Class ExchangeTaskUtil
java.lang.Object
de.uplanet.lucy.server.businesslogic.exchange.util.impl.ExchangeTaskUtil
- All Implemented Interfaces:
IExchangeTaskUtil
-
Method Summary
Modifier and TypeMethodDescriptioncreateFolder
(String p_strParentHref, String p_strFolderName) Creates a new folder.Deprecated.createNewTask
(Date p_dtStartDate, Date p_dtDueDate, String p_strSubject, String p_strUserMailbox) Creates a new task.Finds a task by the given ID.findByPermanentUrl
(String p_strPermUrl) Finds a task by the given Permanent URL.static IExchangeTaskUtil
Returns an instance initialized with a Exchange connection for the currently logged in user.static IExchangeTaskUtil
getInstance
(Connection p_conn) Returns an instance initialized with the given Exchange connection.
-
Method Details
-
getInstance
Returns an instance initialized with a Exchange connection for the currently logged in user.- Returns:
- the instance
-
getInstance
Returns an instance initialized with the given Exchange connection.- Parameters:
p_conn
- the MS Exchange connection- Returns:
- the instance
-
createNew
@Deprecated public IExchangeTask createNew(Date p_dtStartDate, Date p_dtDueDate, String p_strSubject, String p_strUserMailbox) throws de.uplanet.lucy.server.businesslogic.exchange.util.ExchangeUtilException Deprecated.Description copied from interface:IExchangeTaskUtil
Creates a new task.- Specified by:
createNew
in interfaceIExchangeTaskUtil
- Parameters:
p_strSubject
- The subject of the task.p_strUserMailbox
- The name of the mailbox in which the task will be created.- Returns:
- The new
IExchangeTask
instance. - Throws:
de.uplanet.lucy.server.businesslogic.exchange.util.ExchangeUtilException
- If the task could not be created.
-
createNewTask
public IExchangeTask createNewTask(Date p_dtStartDate, Date p_dtDueDate, String p_strSubject, String p_strUserMailbox) throws de.uplanet.lucy.server.businesslogic.exchange.util.ExchangeUtilException Description copied from interface:IExchangeTaskUtil
Creates a new task.- Specified by:
createNewTask
in interfaceIExchangeTaskUtil
- Parameters:
p_strSubject
- The subject of the task.p_strUserMailbox
- The name of the mailbox in which the task will be created.- Returns:
- The new
IExchangeTask
instance. - Throws:
de.uplanet.lucy.server.businesslogic.exchange.util.ExchangeUtilException
- If the task could not be created.
-
findById
public IExchangeTask findById(String p_strId) throws de.uplanet.lucy.server.businesslogic.exchange.util.ExchangeUtilException Description copied from interface:IExchangeTaskUtil
Finds a task by the given ID.- Specified by:
findById
in interfaceIExchangeTaskUtil
- Parameters:
p_strId
- The task ID.- Returns:
- The
IExchangeTask
instance. - Throws:
de.uplanet.lucy.server.businesslogic.exchange.util.ExchangeUtilException
-
findByPermanentUrl
public IExchangeTask findByPermanentUrl(String p_strPermUrl) throws de.uplanet.lucy.server.businesslogic.exchange.util.ExchangeUtilException Description copied from interface:IExchangeTaskUtil
Finds a task by the given Permanent URL.- Specified by:
findByPermanentUrl
in interfaceIExchangeTaskUtil
- Parameters:
p_strPermUrl
- The permanent URL.- Returns:
- The
IExchangeTask
. - Throws:
de.uplanet.lucy.server.businesslogic.exchange.util.ExchangeUtilException
-
createFolder
public String createFolder(String p_strParentHref, String p_strFolderName) throws de.uplanet.lucy.server.businesslogic.exchange.util.ExchangeUtilException Description copied from interface:IExchangeTaskUtil
Creates a new folder. The display name can be an arbitrary string. The HREF and parent HREF parameters must include the canonical path to the folder. Consider the following structure:
+ Folder1
++ Folder2
+++ MyNewFolder
To create 'MyNewFolder' beneath 'Folder2' the following values are required:
Folder name:MyNewFolder
Parent HREF:/Folder1/Folder2/
- Specified by:
createFolder
in interfaceIExchangeTaskUtil
- Parameters:
p_strParentHref
- The HREF of the parent folder (required).p_strFolderName
- The folder name.- Returns:
- The ID of the new folder.
- Throws:
de.uplanet.lucy.server.businesslogic.exchange.util.ExchangeUtilException
- If operation failed.
-