|
SAP NetWeaver 7.30 SP01 KMC | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sap.netweaver.coll.attachment.AttachmentListManager
public class AttachmentListManager
Interface for the Attachment List Object
Attachments are stored as Resources in the Repository "attachment".
Security is done by an AttachmentSecurityManager. Applications may set their
own permissions at the Collection where attachments are stored (getAttachmentCollection()).
If assigned to Resources, permissions of the Resource are used.
Applications have to store the ID (getId()) to have further access to attachments.
Copyright (c) SAP AG 2002
| Constructor Summary | |
|---|---|
AttachmentListManager()
Constructor for the AttachmentControl object |
|
AttachmentListManager(IRelation rel,
String id)
Constructor for the AttachmentControl object |
|
| Method Summary | |
|---|---|
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(com.sapportals.wcm.util.uri.RID uri,
String name,
IPropertyMap props)
add RID to AttachmentList using name and properties |
void |
addAttachment(StringBuffer inBuffer,
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AttachmentListManager()
public AttachmentListManager(IRelation rel,
String id)
context - Resourcecontextpath - Path to Collection of Attachmentsid - Unique ID| Method Detail |
|---|
public String getId()
getId in interface IAttachmentList
public IResourceList getAttachments()
throws AttachmentException
getAttachments in interface IAttachmentListNoAttachmentCollectionException
AttachmentException
public void delete()
throws AttachmentException
delete in interface IAttachmentListAttachmentException
public void deleteAttachment(IResource res)
throws AttachmentException
deleteAttachment in interface IAttachmentListAttachmentException
public void addAttachment(IResource res)
throws AttachmentException
addAttachment in interface IAttachmentListres - IResource to be added
com.sapportals.wcm.WcmException
AttachmentException
public void addAttachment(IResource res,
AttachmentType type)
throws AttachmentException
addAttachment in interface IAttachmentListres - IResource to be addedtype - add as Attachmenttype (i.e. copy, link, ..)
AttachmentException
public void addAttachment(com.sapportals.wcm.util.uri.RID uri,
String name,
IPropertyMap props)
throws AttachmentException
addAttachment in interface IAttachmentListuri - RID of Resource to be addedname - Name of the Resourceprops - Properties of the attachment
com.sapportals.wcm.WcmException
AttachmentException
public void addAttachment(StringBuffer inBuffer,
String name,
IPropertyMap props)
throws AttachmentException
addAttachment in interface IAttachmentListcontent - content of new attachmentname - Name of the Resourceprops - Properties of the attachment
com.sapportals.wcm.WcmException
AttachmentExceptionpublic ICollection getAttachmentCollection()
getAttachmentCollection in interface IAttachmentListcom.sapportals.wcm.WcmException
public int getAttachmentCount()
throws AttachmentException
getAttachmentCount in interface IAttachmentListAttachmentExceptionpublic HashMap getSupportedAttachmentTypes(IResource res)
getSupportedAttachmentTypes in interface IAttachmentListres - IResource to be checked
com.sapportals.wcm.WcmException
public AttachmentType getAttachmentType(IResource res)
throws AttachmentException
getAttachmentType in interface IAttachmentListres - IResource to be checked
com.sapportals.wcm.WcmException
AttachmentException
public void setAttachmentType(IResource res,
AttachmentType type)
throws AttachmentException
setAttachmentType in interface IAttachmentListres - attachment-IResource to be changedtarget - Attachmenttype
com.sapportals.wcm.WcmException
AttachmentException
|
SAP NetWeaver 7.30 SP01 KMC | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||