public interface IAttachmentList
Copyright (c) SAP AG 2002
Modifier and Type | Method and Description |
---|---|
void |
addAttachment(IResource res)
add IResource into AttachmentList (default is Link)
|
void |
addAttachment(IResource res,
AttachmentType type)
add IResource into AttachmentList (default is Link)
|
void |
addAttachment(RID uri,
String name,
IPropertyMap props)
add RID to AttachmentList using name and properties
only to be used with external RIDs
|
void |
addAttachment(StringBuffer content,
String name,
IPropertyMap props)
add content to AttachmentList using name and properties
|
void |
delete()
delete all Resources of this AttachmentList
|
void |
deleteAttachment(IResource res)
delete one Resource of the AttachmentList
|
ICollection |
getAttachmentCollection()
returns collection where attachments are stored (i.e. for use in Resourcelist-Control)
|
int |
getAttachmentCount()
returns number of attachment
|
IResourceList |
getAttachments()
returns IResourcelist containing all Resources
|
AttachmentType |
getAttachmentType(IResource res)
returns Attachmenttype of this IResource
|
String |
getId()
returns unique of AttachmentList
|
HashMap |
getSupportedAttachmentTypes(IResource res)
returns a List of supported Attachmenttypes for this IResource
|
void |
setAttachmentType(IResource res,
AttachmentType type)
changes AttachmentTyp of this attachment-IResource
|
String getId()
IResourceList getAttachments() throws AttachmentException
AttachmentException
void delete() throws AttachmentException
AttachmentException
void deleteAttachment(IResource res) throws AttachmentException
AttachmentException
void addAttachment(IResource res) throws AttachmentException
res
- IResource to be addedAttachmentException
void addAttachment(IResource res, AttachmentType type) throws AttachmentException
res
- IResource to be addedtype
- add as Attachmenttype (i.e. copy, link, ..)AttachmentException
void addAttachment(RID uri, String name, IPropertyMap props) throws AttachmentException
uri
- RID of Resource to be addedname
- Name of the Resourceprops
- Properties of the attachmentAttachmentException
void addAttachment(StringBuffer content, String name, IPropertyMap props) throws AttachmentException
content
- content of new attachmentname
- Name of the Resourceprops
- Properties of the attachmentAttachmentException
ICollection getAttachmentCollection() throws AttachmentException
AttachmentException
int getAttachmentCount() throws AttachmentException
AttachmentException
HashMap getSupportedAttachmentTypes(IResource res) throws AttachmentException
res
- IResource to be checkedAttachmentException
AttachmentType getAttachmentType(IResource res) throws AttachmentException
res
- IResource to be checkedAttachmentException
void setAttachmentType(IResource res, AttachmentType type) throws AttachmentException
res
- attachment-IResource to be changedtype
- AttachmenttypeAttachmentException
Access Rights |
---|
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 2018 SAP AG Complete Copyright Notice