|
SAP NetWeaver 7.11 (EhP1 SP02) Composition Environment | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IGPAttachmentList
Represents a list of attachments defined for an entity. Such an entity may be an action, a block or a process defined in the design time.
An attachment list may be exposed by
The purpose of the attachment list is to provide a container that can be used by the design time and the run time to provide access to the available attachments but also to keep changes (e.g. new attachments, removal of attachments) in memory until the change will be eventually propagated to the persistence. The decision on how to handle this is up to the implementation of the attachment list.
| Method Summary | |
|---|---|
IGPAttachment |
add(String displayName,
String originalFileName,
String handlerName,
String creator,
byte[] content,
boolean runtime)
Adds a new attachment to the list. |
int |
count()
Total count of attachments. |
Enumeration |
elements()
Provides an enumeration for all available attachments. |
| Method Detail |
|---|
int count()
Enumeration elements()
IGPAttachment add(String displayName,
String originalFileName,
String handlerName,
String creator,
byte[] content,
boolean runtime)
throws GPInvocationException,
GPEngineException
Note that the attachment id cannot be passed here because the actual implementation has to decide on the algorithm of creating an attachment id.
However, the attachment id must be generated immediately on invocation.
displayName - the display name of the attachment.originalFileName - the original file name of the attchment.handlerName - the name of the attachment handler.creator - the unique id of the creator.content - the actual content of the attachment.runtime - attachment created by runtime (true) or design time (false)
InvocationException - if any of the parameters passed is invalid.
EngineException - if an error occurs while creating the attachment.
GPInvocationException
GPEngineExceptionIAttachment
|
SAP NetWeaver 7.11 (EhP1 SP02) Composition Environment | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||