Class TaskAttachmentsProvider
java.lang.Object
com.webmethods.caf.faces.bean.PageFlowScopeAdapter
com.webmethods.caf.faces.data.attachments.BasePortalContainerAttachmentsProvider
com.webmethods.caf.faces.data.attachments.PortalContainerAttachmentsProvider
com.webmethods.caf.faces.data.task.TaskAttachmentsProvider
- All Implemented Interfaces:
IPageFlowScopeAdapter
,IAttachmentsProvider
,IWebDavAwareAttachmentsProvider
,Serializable
Specialized attachments provider to work with task instances. It implements various type of attachments storage
for tasks
- See Also:
-
Field Summary
FieldsFields inherited from class com.webmethods.caf.faces.data.attachments.BasePortalContainerAttachmentsProvider
CHARSET_EQUALS, DEFAULT_MIME_PROPERTIES, fAttachmentsList, fContainerID, fContainerThingID, m_mimeExtensions, MIME_CONFIG_FILE, useWebDav
Fields inherited from class com.webmethods.caf.faces.bean.PageFlowScopeAdapter
fExpireWithPageFlow
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorTaskAttachmentsProvider
(String userID) Constructor with UserID -
Method Summary
Modifier and TypeMethodDescriptionprotected IContext
protected IThingID
Returns thingID of the container to store attachments for given task.protected IThingID
Returns thingID of the container to store attachments for given task.Returns a list of the current attachmentsprotected void
releaseContext
(IContext context) void
setContainerID
(String containerID) Sets the id of the attachments containerMethods inherited from class com.webmethods.caf.faces.data.attachments.PortalContainerAttachmentsProvider
_listAttachments, encodeWebDavUrl, getContainerID, setWebDavURL
Methods inherited from class com.webmethods.caf.faces.data.attachments.BasePortalContainerAttachmentsProvider
addAttachment, getEncoding, getHasAttachments, isAddAttachmentsAvailable, isUseWebDav, refresh, removeAttachment, setUseWebDav, updateAttachment
Methods inherited from class com.webmethods.caf.faces.bean.PageFlowScopeAdapter
getExpireWithPageFlow, setExpireWithPageFlow
-
Field Details
-
cachedTraits
-
-
Constructor Details
-
TaskAttachmentsProvider
public TaskAttachmentsProvider()Default constructor -
TaskAttachmentsProvider
Constructor with UserID- Throws:
PortalException
-
-
Method Details
-
getContainerThingID
Returns thingID of the container to store attachments for given task. If container does not exist it will be created- Overrides:
getContainerThingID
in classBasePortalContainerAttachmentsProvider
- Throws:
PortalException
-
getContainerThingIDNoCreate
Returns thingID of the container to store attachments for given task. If container does not exist null will be returned- Throws:
PortalException
-
listAttachments
Description copied from interface:IAttachmentsProvider
Returns a list of the current attachments- Specified by:
listAttachments
in interfaceIAttachmentsProvider
- Overrides:
listAttachments
in classBasePortalContainerAttachmentsProvider
- Returns:
- collection of AttachmentItems
-
acquireContext
- Overrides:
acquireContext
in classBasePortalContainerAttachmentsProvider
- Throws:
PortalException
-
releaseContext
- Overrides:
releaseContext
in classBasePortalContainerAttachmentsProvider
-
setContainerID
Description copied from class:PortalContainerAttachmentsProvider
Sets the id of the attachments container- Overrides:
setContainerID
in classPortalContainerAttachmentsProvider
- Parameters:
containerID
- the container id
-