com.sap.aii.mapping.api

Interface InputAttachments


public interface InputAttachments

Contains methods to read the attachments of the XI message in the mapping.


Method Summary
 boolean areAttachmentsAvailable()
          Returns true, if the attachments can be accessed in the mapping.
 Collection<String> getAllContentIds(boolean withRemoved)
          Get the content IDs of all attachments of the source message.
 Attachment getAttachment(String contentID)
          Returns the attachment with the given contentId, provided there exists an attachment with this contentId.
 

Method Detail

getAllContentIds

Collection<String> getAllContentIds(boolean withRemoved)
Get the content IDs of all attachments of the source message. The content IDs can also be accessed, if the attachments themselves aren't available at all (@see getAllContentIds).

Returns:
Collection of Strings with all content IDs.

areAttachmentsAvailable

boolean areAttachmentsAvailable()
Returns true, if the attachments can be accessed in the mapping. An Operation Mapping in the Enterprise Service Repository has a flag to express whether the mapping wants to read attachments. This depends on the settings of the operation mapping.

Returns:
true if attachment data are ready for access.

getAttachment

Attachment getAttachment(String contentID)
Returns the attachment with the given contentId, provided there exists an attachment with this contentId.

Parameters:
contentID - the content ID of the required attachment
Returns:
Attachment object with the given content identifier or null if no such attachment exists.
Access Rights

This class can be accessed from:


SC DC Public Part ACH
[sap.com] SAP_XIAF [sap.com] com.sap.aii.mapping.lib.facade api BC-XI


Copyright 2014 SAP AG Complete Copyright Notice