com.webmethods.caf.faces.data.attachments
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
public class PortalContainerAttachmentsProvider
- extends BasePortalContainerAttachmentsProvider
Default implementation for an attachments provider backed by a MWS folder
- See Also:
- Serialized Form
Methods inherited from class com.webmethods.caf.faces.data.attachments.BasePortalContainerAttachmentsProvider |
acquireContext, addAttachment, getContainerThingID, getHasAttachments, isAddAttachmentsAvailable, isUseWebDav, listAttachments, refresh, releaseContext, removeAttachment, setUseWebDav, updateAttachment |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PortalContainerAttachmentsProvider
public PortalContainerAttachmentsProvider()
getContainerID
public String getContainerID()
- Returns the id of the attachments container
- Overrides:
getContainerID
in class BasePortalContainerAttachmentsProvider
- Returns:
- the containerID
setContainerID
public void setContainerID(String containerID)
- Sets the id of the attachments container
- Overrides:
setContainerID
in class BasePortalContainerAttachmentsProvider
- Parameters:
containerID
- the container id
_listAttachments
protected void _listAttachments(IThingID parentID)
throws PortalException
- Builds the list of attachments
- Overrides:
_listAttachments
in class BasePortalContainerAttachmentsProvider
- Parameters:
parentID
- the thingID of the parent container
- Throws:
PortalException
setWebDavURL
protected String setWebDavURL(IThingID parentId)
- 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
protected static String encodeWebDavUrl(String value)
throws Exception
- Encodes the value as a WebDavUrl
- Parameters:
value
- the value to encode
- Returns:
- the encoded value
- Throws:
Exception