com.webmethods.caf.faces.data.attachments
Class PortalContainerAttachmentsProvider

java.lang.Object
  extended by com.webmethods.caf.faces.bean.PageFlowScopeAdapter
      extended by com.webmethods.caf.faces.data.attachments.BasePortalContainerAttachmentsProvider
          extended by 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

Field Summary
 
Fields inherited from class com.webmethods.caf.faces.data.attachments.BasePortalContainerAttachmentsProvider
fAttachmentsList, fContainerID, fContainerThingID, useWebDav
 
Fields inherited from class com.webmethods.caf.faces.bean.PageFlowScopeAdapter
fExpireWithPageFlow
 
Constructor Summary
PortalContainerAttachmentsProvider()
           
 
Method Summary
protected  void _listAttachments(IThingID parentID)
          Builds the list of attachments
protected static String encodeWebDavUrl(String value)
          Encodes the value as a WebDavUrl
 String getContainerID()
          Returns the id of the attachments container
 void setContainerID(String containerID)
          Sets the id of the attachments container
protected  String setWebDavURL(IThingID parentId)
          Gets the base WebDav URL for the specified parent thing
 
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 com.webmethods.caf.faces.bean.PageFlowScopeAdapter
getExpireWithPageFlow, setExpireWithPageFlow
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PortalContainerAttachmentsProvider

public PortalContainerAttachmentsProvider()
Method Detail

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