Class ExchangeItemCallable
- java.lang.Object
-
- de.uplanet.lucy.server.auxiliaries.exchange.ExchangeItemCallable
-
- All Implemented Interfaces:
de.uplanet.lucy.server.businesslogic.exchange.util.IExchangeItemUtil
@VelocityCallable("singleton") public final class ExchangeItemCallable extends Object implements de.uplanet.lucy.server.businesslogic.exchange.util.IExchangeItemUtil
Callable for working with MS Exchange items. The methods without a connection parameter use the current context's Exchange connection.
-
-
Constructor Summary
Constructors Constructor Description ExchangeItemCallable()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAttachmentToItem(String p_strItemId, File p_file, String p_strFileName, String p_strMimeType, boolean p_bIsContactPhoto, boolean p_bDeleteAfter)
void
addAttachmentToItem(String p_strItemId, String p_strFile, String p_strFileName, String p_strMimeType, boolean p_bIsContactPhoto, boolean p_bDeleteAfter)
void
addAttachmentToItem(Connection p_conn, String p_strItemId, File p_file, String p_strFileName, String p_strMimeType, boolean p_bIsContactPhoto, boolean p_bDeleteAfter)
void
addAttachmentToItem(Connection p_conn, String p_strItemId, String p_strFile, String p_strFileName, String p_strMimeType, boolean p_bIsContactPhoto, boolean p_bDeleteAfter)
void
copyAttachmentToItem(String p_strSrcAttId, String p_strDstItemId, String p_strFileName, boolean p_bIsContactPhoto)
void
copyAttachmentToItem(Connection p_conn, String p_strSrcAttId, String p_strDstItemId, String p_strFileName, boolean p_bIsContactPhoto)
String
copyItemToFolder(String p_strSourceHref, String p_strDstFldrHref)
String
copyItemToFolder(Connection p_conn, String p_strSourceHref, String p_strDstFldrHref)
List<IAttachmentInfo>
getAttachments(String p_strItemId)
List<IAttachmentInfo>
getAttachments(Connection p_conn, String p_strItemId)
String
getMailboxOfItem(String p_strItemId)
String
getMailboxOfItem(Connection p_conn, String p_strItemId)
String
getPermanentID(String p_strTableName, String p_strId)
String
moveItemToFolder(String p_strSourceHref, String p_strDstFldrHref)
String
moveItemToFolder(Connection p_conn, String p_strSourceHref, String p_strDstFldrHref)
void
removeAttachmentFromItem(String p_strAttachmentId)
void
removeAttachmentFromItem(Connection p_conn, String p_strAttachmentId)
void
saveAttachment(IAttachmentInfo p_attachment, File p_fileDestination)
void
saveAttachment(IAttachmentInfo p_attachment, String p_strFileDest)
void
saveAttachment(String p_strItemId, File p_fileDestination)
void
saveAttachment(String p_strItemId, String p_strFileDest)
void
saveAttachment(Connection p_conn, IAttachmentInfo p_attachment, File p_fileDestination)
void
saveAttachment(Connection p_conn, IAttachmentInfo p_attachment, String p_strFileDest)
void
saveAttachment(Connection p_conn, String p_strItemId, File p_fileDestination)
void
saveAttachment(Connection p_conn, String p_strItemId, String p_strFileDest)
-
-
-
Method Detail
-
getPermanentID
public String getPermanentID(String p_strTableName, String p_strId) throws de.uplanet.lucy.server.businesslogic.exchange.util.ExchangeUtilException
- Specified by:
getPermanentID
in interfacede.uplanet.lucy.server.businesslogic.exchange.util.IExchangeItemUtil
- Throws:
de.uplanet.lucy.server.businesslogic.exchange.util.ExchangeUtilException
-
getMailboxOfItem
public String getMailboxOfItem(String p_strItemId) throws de.uplanet.lucy.server.businesslogic.exchange.util.ExchangeUtilException
- Specified by:
getMailboxOfItem
in interfacede.uplanet.lucy.server.businesslogic.exchange.util.IExchangeItemUtil
- Throws:
de.uplanet.lucy.server.businesslogic.exchange.util.ExchangeUtilException
-
getMailboxOfItem
public String getMailboxOfItem(Connection p_conn, String p_strItemId)
-
copyItemToFolder
public String copyItemToFolder(String p_strSourceHref, String p_strDstFldrHref) throws de.uplanet.lucy.server.businesslogic.exchange.util.ExchangeUtilException
- Specified by:
copyItemToFolder
in interfacede.uplanet.lucy.server.businesslogic.exchange.util.IExchangeItemUtil
- Throws:
de.uplanet.lucy.server.businesslogic.exchange.util.ExchangeUtilException
-
copyItemToFolder
public String copyItemToFolder(Connection p_conn, String p_strSourceHref, String p_strDstFldrHref) throws de.uplanet.lucy.server.businesslogic.exchange.util.ExchangeUtilException
- Throws:
de.uplanet.lucy.server.businesslogic.exchange.util.ExchangeUtilException
-
moveItemToFolder
public String moveItemToFolder(String p_strSourceHref, String p_strDstFldrHref) throws de.uplanet.lucy.server.businesslogic.exchange.util.ExchangeUtilException
- Specified by:
moveItemToFolder
in interfacede.uplanet.lucy.server.businesslogic.exchange.util.IExchangeItemUtil
- Throws:
de.uplanet.lucy.server.businesslogic.exchange.util.ExchangeUtilException
-
moveItemToFolder
public String moveItemToFolder(Connection p_conn, String p_strSourceHref, String p_strDstFldrHref) throws de.uplanet.lucy.server.businesslogic.exchange.util.ExchangeUtilException
- Throws:
de.uplanet.lucy.server.businesslogic.exchange.util.ExchangeUtilException
-
getAttachments
public List<IAttachmentInfo> getAttachments(String p_strItemId) throws de.uplanet.lucy.server.businesslogic.exchange.util.ExchangeUtilException
- Specified by:
getAttachments
in interfacede.uplanet.lucy.server.businesslogic.exchange.util.IExchangeItemUtil
- Throws:
de.uplanet.lucy.server.businesslogic.exchange.util.ExchangeUtilException
-
getAttachments
public List<IAttachmentInfo> getAttachments(Connection p_conn, String p_strItemId) throws de.uplanet.lucy.server.businesslogic.exchange.util.ExchangeUtilException
- Throws:
de.uplanet.lucy.server.businesslogic.exchange.util.ExchangeUtilException
-
saveAttachment
public void saveAttachment(String p_strItemId, File p_fileDestination) throws de.uplanet.lucy.server.businesslogic.exchange.util.ExchangeUtilException
- Specified by:
saveAttachment
in interfacede.uplanet.lucy.server.businesslogic.exchange.util.IExchangeItemUtil
- Throws:
de.uplanet.lucy.server.businesslogic.exchange.util.ExchangeUtilException
-
saveAttachment
public void saveAttachment(IAttachmentInfo p_attachment, String p_strFileDest) throws de.uplanet.lucy.server.businesslogic.exchange.util.ExchangeUtilException
- Specified by:
saveAttachment
in interfacede.uplanet.lucy.server.businesslogic.exchange.util.IExchangeItemUtil
- Throws:
de.uplanet.lucy.server.businesslogic.exchange.util.ExchangeUtilException
-
saveAttachment
public void saveAttachment(Connection p_conn, String p_strItemId, File p_fileDestination) throws de.uplanet.lucy.server.businesslogic.exchange.util.ExchangeUtilException
- Throws:
de.uplanet.lucy.server.businesslogic.exchange.util.ExchangeUtilException
-
saveAttachment
public void saveAttachment(Connection p_conn, IAttachmentInfo p_attachment, File p_fileDestination) throws de.uplanet.lucy.server.businesslogic.exchange.util.ExchangeUtilException
- Throws:
de.uplanet.lucy.server.businesslogic.exchange.util.ExchangeUtilException
-
saveAttachment
public void saveAttachment(IAttachmentInfo p_attachment, File p_fileDestination) throws de.uplanet.lucy.server.businesslogic.exchange.util.ExchangeUtilException
- Specified by:
saveAttachment
in interfacede.uplanet.lucy.server.businesslogic.exchange.util.IExchangeItemUtil
- Throws:
de.uplanet.lucy.server.businesslogic.exchange.util.ExchangeUtilException
-
saveAttachment
public void saveAttachment(String p_strItemId, String p_strFileDest) throws de.uplanet.lucy.server.businesslogic.exchange.util.ExchangeUtilException
- Specified by:
saveAttachment
in interfacede.uplanet.lucy.server.businesslogic.exchange.util.IExchangeItemUtil
- Throws:
de.uplanet.lucy.server.businesslogic.exchange.util.ExchangeUtilException
-
saveAttachment
public void saveAttachment(Connection p_conn, String p_strItemId, String p_strFileDest) throws de.uplanet.lucy.server.businesslogic.exchange.util.ExchangeUtilException
- Throws:
de.uplanet.lucy.server.businesslogic.exchange.util.ExchangeUtilException
-
saveAttachment
public void saveAttachment(Connection p_conn, IAttachmentInfo p_attachment, String p_strFileDest) throws de.uplanet.lucy.server.businesslogic.exchange.util.ExchangeUtilException
- Throws:
de.uplanet.lucy.server.businesslogic.exchange.util.ExchangeUtilException
-
addAttachmentToItem
public void addAttachmentToItem(String p_strItemId, File p_file, String p_strFileName, String p_strMimeType, boolean p_bIsContactPhoto, boolean p_bDeleteAfter) throws de.uplanet.lucy.server.businesslogic.exchange.util.ExchangeUtilException
- Specified by:
addAttachmentToItem
in interfacede.uplanet.lucy.server.businesslogic.exchange.util.IExchangeItemUtil
- Throws:
de.uplanet.lucy.server.businesslogic.exchange.util.ExchangeUtilException
-
addAttachmentToItem
public void addAttachmentToItem(Connection p_conn, String p_strItemId, File p_file, String p_strFileName, String p_strMimeType, boolean p_bIsContactPhoto, boolean p_bDeleteAfter) throws de.uplanet.lucy.server.businesslogic.exchange.util.ExchangeUtilException
- Throws:
de.uplanet.lucy.server.businesslogic.exchange.util.ExchangeUtilException
-
addAttachmentToItem
public void addAttachmentToItem(String p_strItemId, String p_strFile, String p_strFileName, String p_strMimeType, boolean p_bIsContactPhoto, boolean p_bDeleteAfter) throws de.uplanet.lucy.server.businesslogic.exchange.util.ExchangeUtilException
- Specified by:
addAttachmentToItem
in interfacede.uplanet.lucy.server.businesslogic.exchange.util.IExchangeItemUtil
- Throws:
de.uplanet.lucy.server.businesslogic.exchange.util.ExchangeUtilException
-
addAttachmentToItem
public void addAttachmentToItem(Connection p_conn, String p_strItemId, String p_strFile, String p_strFileName, String p_strMimeType, boolean p_bIsContactPhoto, boolean p_bDeleteAfter) throws de.uplanet.lucy.server.businesslogic.exchange.util.ExchangeUtilException
- Throws:
de.uplanet.lucy.server.businesslogic.exchange.util.ExchangeUtilException
-
copyAttachmentToItem
public void copyAttachmentToItem(String p_strSrcAttId, String p_strDstItemId, String p_strFileName, boolean p_bIsContactPhoto) throws de.uplanet.lucy.server.businesslogic.exchange.util.ExchangeUtilException
- Specified by:
copyAttachmentToItem
in interfacede.uplanet.lucy.server.businesslogic.exchange.util.IExchangeItemUtil
- Throws:
de.uplanet.lucy.server.businesslogic.exchange.util.ExchangeUtilException
-
copyAttachmentToItem
public void copyAttachmentToItem(Connection p_conn, String p_strSrcAttId, String p_strDstItemId, String p_strFileName, boolean p_bIsContactPhoto) throws de.uplanet.lucy.server.businesslogic.exchange.util.ExchangeUtilException
- Throws:
de.uplanet.lucy.server.businesslogic.exchange.util.ExchangeUtilException
-
removeAttachmentFromItem
public void removeAttachmentFromItem(String p_strAttachmentId) throws de.uplanet.lucy.server.businesslogic.exchange.util.ExchangeUtilException
- Specified by:
removeAttachmentFromItem
in interfacede.uplanet.lucy.server.businesslogic.exchange.util.IExchangeItemUtil
- Throws:
de.uplanet.lucy.server.businesslogic.exchange.util.ExchangeUtilException
-
removeAttachmentFromItem
public void removeAttachmentFromItem(Connection p_conn, String p_strAttachmentId) throws de.uplanet.lucy.server.businesslogic.exchange.util.ExchangeUtilException
- Throws:
de.uplanet.lucy.server.businesslogic.exchange.util.ExchangeUtilException
-
-