com.webmethods.caf.faces.data.task
Class TaskAttachmentsProvider

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
              extended by com.webmethods.caf.faces.data.task.TaskAttachmentsProvider
All Implemented Interfaces:
IPageFlowScopeAdapter, IAttachmentsProvider, IWebDavAwareAttachmentsProvider, Serializable

public class TaskAttachmentsProvider
extends PortalContainerAttachmentsProvider

Specialized attachments provider to work with task instances. It implements various type of attachments storage for tasks

See Also:
Serialized Form

Field Summary
protected  ITraits cachedTraits
           
 
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
TaskAttachmentsProvider()
          Default constructor
TaskAttachmentsProvider(String userID)
          Constructor with UserID
 
Method Summary
protected  IContext acquireContext()
           
protected  IThingID getContainerThingID()
          Returns thingID of the container to store attachments for given task.
protected  IThingID getContainerThingIDNoCreate()
          Returns thingID of the container to store attachments for given task.
 List listAttachments()
          Returns a list of the current attachments
protected  void releaseContext(IContext context)
           
 
Methods inherited from class com.webmethods.caf.faces.data.attachments.PortalContainerAttachmentsProvider
_listAttachments, encodeWebDavUrl, getContainerID, setContainerID, setWebDavURL
 
Methods inherited from class com.webmethods.caf.faces.data.attachments.BasePortalContainerAttachmentsProvider
addAttachment, getHasAttachments, isAddAttachmentsAvailable, isUseWebDav, refresh, 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
 

Field Detail

cachedTraits

protected ITraits cachedTraits
Constructor Detail

TaskAttachmentsProvider

public TaskAttachmentsProvider()
Default constructor


TaskAttachmentsProvider

public TaskAttachmentsProvider(String userID)
                        throws PortalException
Constructor with UserID

Throws:
PortalException
Method Detail

getContainerThingID

protected IThingID getContainerThingID()
                                throws PortalException
Returns thingID of the container to store attachments for given task. If container does not exist it will be created

Overrides:
getContainerThingID in class BasePortalContainerAttachmentsProvider
Throws:
PortalException

getContainerThingIDNoCreate

protected IThingID getContainerThingIDNoCreate()
                                        throws PortalException
Returns thingID of the container to store attachments for given task. If container does not exist null will be returned

Throws:
PortalException

listAttachments

public List listAttachments()
Description copied from interface: IAttachmentsProvider
Returns a list of the current attachments

Specified by:
listAttachments in interface IAttachmentsProvider
Overrides:
listAttachments in class BasePortalContainerAttachmentsProvider
Returns:
collection of AttachmentItems

acquireContext

protected IContext acquireContext()
                           throws PortalException
Overrides:
acquireContext in class BasePortalContainerAttachmentsProvider
Throws:
PortalException

releaseContext

protected void releaseContext(IContext context)
Overrides:
releaseContext in class BasePortalContainerAttachmentsProvider