Package com.sap.caf.eu.gp.attachment.api

Provides attachment support for the process framework.

See:
          Description

Interface Summary
IGPAttachment Attachment entity provides a unique ID (that may or may not be controlled by the attachment store) a display name an original file name a creator (for local templates only, during transport they are removed) a creation time stamp a mime type (a mapping can be done from the mime type to the attachment type)
IGPAttachmentList Represents a list of attachments defined for an entity.
IGPAttachmentSourceHandler Each attachment carries the name of the handler as an attribute.
IGPAttachmentSourceHandlerRegistry Provides access to the available attachment source handlers.
 

Class Summary
GPAbstractAttachmentSourceHandler Attachment source handler base class.
GPAttachmentAccessor Attachment API Accessor
GPAttachmentInfo Holds information about an attachment that can be used to visualize the attachment in a list.
 

Package com.sap.caf.eu.gp.attachment.api Description

Provides attachment support for the process framework.

Examples

Following a couple of usage examples.

Add new attachment to attachment list

// create some dummy content
byte[] c = new String("content").getBytes();

// add new attachment to list
IAttachment a =
        list.add("myExampleAttachment", "example.doc",
                IAttachment.TYPE_FILE, "ownerId",
                c);



Copyright 2009 SAP AG Complete Copyright Notice