Class ExchangeAttachmentCallable

java.lang.Object
de.uplanet.lucy.server.auxiliaries.exchange.ExchangeAttachmentCallable

@VelocityCallable("singleton") public final class ExchangeAttachmentCallable extends Object
Callable for MS Exchange attachments.
  • Constructor Details

    • ExchangeAttachmentCallable

      public ExchangeAttachmentCallable()
      Default constructor.
  • Method Details

    • getContactImagePath

      public static String getContactImagePath(de.uplanet.lucy.server.connector.IServerBridgeRequest p_request, String p_strId, String p_strPageGuid)
      Constructs a URL to a contact image.
      Parameters:
      p_request - the request instance
      p_strId - the ID of the contact
      p_strPageGuid - the GUID of the page for which the URL is constructed
      Returns:
      the URL
    • getAttachments

      public static List<de.uplanet.lucy.server.auxiliaries.exchange.ExchangeAttachmentInfo> getAttachments(String p_strId, String p_strPageGuid)
      Returns a list of attachments of an Exchange item.
      Parameters:
      p_strId - the item ID
      p_strPageGuid - the page GUID
      Returns:
      the list of attachments
    • getAttachments

      public static List<de.uplanet.lucy.server.auxiliaries.exchange.ExchangeAttachmentInfo> getAttachments(String p_strId, String p_strPageGuid, Connection p_conn)
      Returns a list of attachments of an Exchange item.
      Parameters:
      p_strId - the item ID
      p_strPageGuid - the page GUID
      p_conn - the connection used to load the attachments
      Returns:
      the list of attachments
    • removeAttachment

      public static boolean removeAttachment(String p_strItemId, String p_strPageGuid)
      Removes an attachment of an item.
      Parameters:
      p_strItemId - the item ID
      p_strPageGuid - the page GUID
      Returns:
      true if attachment was removed successfully