Class PortalContainerAttachmentsProvider
java.lang.Object
com.webmethods.caf.faces.bean.PageFlowScopeAdapter
com.webmethods.caf.faces.data.attachments.BasePortalContainerAttachmentsProvider
com.webmethods.caf.faces.data.attachments.PortalContainerAttachmentsProvider
- All Implemented Interfaces:
IPageFlowScopeAdapter
,IAttachmentsProvider
,IWebDavAwareAttachmentsProvider
,Serializable
- Direct Known Subclasses:
TaskAttachmentsProvider
Default implementation for an attachments provider backed by a MWS folder
- See Also:
-
Field Summary
Fields 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
_listAttachments
(IThingID parentID) Builds the list of attachmentsprotected static String
encodeWebDavUrl
(String value) Encodes the value as a WebDavUrlReturns the id of the attachments containervoid
setContainerID
(String containerID) Sets the id of the attachments containerprotected String
setWebDavURL
(IThingID parentId) Gets the base WebDav URL for the specified parent thingMethods inherited from class com.webmethods.caf.faces.data.attachments.BasePortalContainerAttachmentsProvider
acquireContext, addAttachment, getContainerThingID, getEncoding, getHasAttachments, isAddAttachmentsAvailable, isUseWebDav, listAttachments, refresh, releaseContext, removeAttachment, setUseWebDav, updateAttachment
Methods inherited from class com.webmethods.caf.faces.bean.PageFlowScopeAdapter
getExpireWithPageFlow, setExpireWithPageFlow
-
Constructor Details
-
PortalContainerAttachmentsProvider
public PortalContainerAttachmentsProvider()
-
-
Method Details
-
getContainerID
Returns the id of the attachments container- Overrides:
getContainerID
in classBasePortalContainerAttachmentsProvider
- Returns:
- the containerID
-
setContainerID
Sets the id of the attachments container- Overrides:
setContainerID
in classBasePortalContainerAttachmentsProvider
- Parameters:
containerID
- the container id
-
_listAttachments
Builds the list of attachments- Overrides:
_listAttachments
in classBasePortalContainerAttachmentsProvider
- Parameters:
parentID
- the thingID of the parent container- Throws:
PortalException
-
setWebDavURL
Gets the base WebDav URL for the specified parent thing- Parameters:
parentId
- the thingID of the parent- Returns:
- WebDav URL of the specified item
-
encodeWebDavUrl
Encodes the value as a WebDavUrl- Parameters:
value
- the value to encode- Returns:
- the encoded value
- Throws:
Exception
-