public class TaskAttachmentsProvider extends PortalContainerAttachmentsProvider
Modifier and Type | Field and Description |
---|---|
protected ITraits |
cachedTraits |
CHARSET_EQUALS, DEFAULT_MIME_PROPERTIES, fAttachmentsList, fContainerID, fContainerThingID, m_mimeExtensions, MIME_CONFIG_FILE, useWebDav
fExpireWithPageFlow
Constructor and Description |
---|
TaskAttachmentsProvider()
Default constructor
|
TaskAttachmentsProvider(String userID)
Constructor with UserID
|
Modifier and Type | Method and Description |
---|---|
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<IAttachmentItem> |
listAttachments()
Returns a list of the current attachments
|
protected void |
releaseContext(IContext context) |
void |
setContainerID(String containerID)
Sets the id of the attachments container
|
_listAttachments, encodeWebDavUrl, getContainerID, setWebDavURL
addAttachment, getEncoding, getHasAttachments, isAddAttachmentsAvailable, isUseWebDav, refresh, removeAttachment, setUseWebDav, updateAttachment
getExpireWithPageFlow, setExpireWithPageFlow
protected ITraits cachedTraits
public TaskAttachmentsProvider()
public TaskAttachmentsProvider(String userID) throws PortalException
PortalException
protected IThingID getContainerThingID() throws PortalException
getContainerThingID
in class BasePortalContainerAttachmentsProvider
PortalException
protected IThingID getContainerThingIDNoCreate() throws PortalException
PortalException
public List<IAttachmentItem> listAttachments()
IAttachmentsProvider
listAttachments
in interface IAttachmentsProvider
listAttachments
in class BasePortalContainerAttachmentsProvider
protected IContext acquireContext() throws PortalException
acquireContext
in class BasePortalContainerAttachmentsProvider
PortalException
protected void releaseContext(IContext context)
releaseContext
in class BasePortalContainerAttachmentsProvider
public void setContainerID(String containerID)
PortalContainerAttachmentsProvider
setContainerID
in class PortalContainerAttachmentsProvider
containerID
- the container id