com.sap.netweaver.coll.attachment

Interface IRepositoryAttachment


public interface IRepositoryAttachment

Interface for the attachment service. Attachments are stored as Files in the Repository "attachment". Copyright (c) SAP AG 2002


Field Summary
static String serviceName
           
 
Method Summary
 int getAttachmentCount(IResource resource)
          returns number of Attachments
 IAttachmentList getAttachmentList(IResource resource, boolean create)
          returns AttachmentList and may create one if it does not exist yet
 IAttachmentList getAttachmentList(IResource resource, boolean create, long lifetime)
          returns AttachmentList and may create one if it does not exist yet
 

Field Detail

serviceName

static final String serviceName
See Also:
Constant Field Values
Method Detail

getAttachmentList

IAttachmentList getAttachmentList(IResource resource,
                                  boolean create)
                                  throws WcmException
returns AttachmentList and may create one if it does not exist yet

Parameters:
resource - resource whose Attachment shall be handled (might be null)
create - Shall AttachmentList be created
Returns:
IAttachmentList
Throws:
WcmException

getAttachmentList

IAttachmentList getAttachmentList(IResource resource,
                                  boolean create,
                                  long lifetime)
                                  throws WcmException
returns AttachmentList and may create one if it does not exist yet

Parameters:
resource - resource whose Attachment shall be handled (might be null)
create - Shall AttachmentList be created
lifetime - lifetime of Attachments in millisecons (0 => never expires)
Returns:
IAttachmentList
Throws:
WcmException

getAttachmentCount

int getAttachmentCount(IResource resource)
                       throws WcmException
returns number of Attachments

Parameters:
resource - resource whose Attachments shall be counted
Returns:
int number of Attachments
Throws:
WcmException
Access Rights

This class can be accessed from:


SC DC Public Part ACH
[sap.com] KMC-CM [sap.com] tc/km/frwk api EP-KM-CM
[sap.com] KMC-WPC [sap.com] tc/kmc/wpc/wpcfacade api EP-PIN-WPC-WCM


Copyright 2014 SAP AG Complete Copyright Notice