Class TempAttachmentsProvider
java.lang.Object
com.webmethods.caf.faces.bean.PageFlowScopeAdapter
com.webmethods.caf.faces.data.attachments.BasePortalContainerAttachmentsProvider
com.webmethods.caf.faces.data.attachments.TempAttachmentsProvider
- All Implemented Interfaces:
IPageFlowScopeAdapter
,IAttachmentsProvider
,IWebDavAwareAttachmentsProvider
,Serializable
,EventListener
,HttpSessionBindingListener
@Deprecated
public class TempAttachmentsProvider
extends BasePortalContainerAttachmentsProvider
implements HttpSessionBindingListener
Deprecated.
Default implementation of a temporary attachments provider. Holds onto the attachment info
until the container they go into is ready.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Deprecated.Simple implementation of FileItem to wrap the temporary files. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected boolean
Deprecated.Specifies whether to autmatically clean up the temp files when this provider goes out of scopeFields 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) Deprecated.Builds the list of attachmentsvoid
addAttachment
(org.apache.commons.fileupload.FileItem fileItem, String fileEncoding) Deprecated.Add Attachmentprotected IThingID
Deprecated.Creates the temp folder where the attachments will be storedprotected void
finalize()
Deprecated.If autoCleanup is enabled, removes the temp containerDeprecated.Gets the attachments container idboolean
Deprecated.Overrides the default behavior to always return trueboolean
Deprecated.Return true if the temp storage container should bean removed when this provider goes out of scope.Deprecated.Returns a list of the current attachmentsvoid
migrateAttachmentsToProvider
(IAttachmentsProvider targetProvider) Deprecated.Call this method to migrate the temporary attachments to the target attachments providervoid
Deprecated.Removes the temporary attachments containervoid
setAutoCleanup
(boolean autoCleanup) Deprecated.Sets whether the temp storage container should be removed when this provider goes out of scope.protected String
setWebDavURL
(IThingID parentId) Deprecated.Gets the base WebDav URL for the specified parent thingvoid
Deprecated.void
Deprecated.If autoCleanup is enabled, removes the temp containerMethods inherited from class com.webmethods.caf.faces.data.attachments.BasePortalContainerAttachmentsProvider
acquireContext, getContainerThingID, getEncoding, getHasAttachments, isUseWebDav, refresh, releaseContext, removeAttachment, setContainerID, setUseWebDav, updateAttachment
Methods inherited from class com.webmethods.caf.faces.bean.PageFlowScopeAdapter
getExpireWithPageFlow, setExpireWithPageFlow
-
Field Details
-
fAutoCleanup
protected boolean fAutoCleanupDeprecated.Specifies whether to autmatically clean up the temp files when this provider goes out of scope
-
-
Constructor Details
-
TempAttachmentsProvider
public TempAttachmentsProvider()Deprecated.
-
-
Method Details
-
getContainerID
Deprecated.Gets the attachments container id- Overrides:
getContainerID
in classBasePortalContainerAttachmentsProvider
-
isAutoCleanup
public boolean isAutoCleanup()Deprecated.Return true if the temp storage container should bean removed when this provider goes out of scope.- Returns:
- the autoCleanup flag
-
setAutoCleanup
public void setAutoCleanup(boolean autoCleanup) Deprecated.Sets whether the temp storage container should be removed when this provider goes out of scope.- Parameters:
autoCleanup
- the autoCleanup to set
-
valueBound
Deprecated.- Specified by:
valueBound
in interfaceHttpSessionBindingListener
-
valueUnbound
Deprecated.If autoCleanup is enabled, removes the temp container- Specified by:
valueUnbound
in interfaceHttpSessionBindingListener
- See Also:
-
finalize
Deprecated.If autoCleanup is enabled, removes the temp container -
isAddAttachmentsAvailable
public boolean isAddAttachmentsAvailable()Deprecated.Overrides the default behavior to always return true- Specified by:
isAddAttachmentsAvailable
in interfaceIAttachmentsProvider
- Overrides:
isAddAttachmentsAvailable
in classBasePortalContainerAttachmentsProvider
- Returns:
- true or false
- See Also:
-
addAttachment
Deprecated.Description copied from interface:IAttachmentsProvider
Add Attachment- Specified by:
addAttachment
in interfaceIAttachmentsProvider
- Overrides:
addAttachment
in classBasePortalContainerAttachmentsProvider
- Parameters:
fileItem
- the attachment contentfileEncoding
- the encoding of the attachment file (if known)
-
createTempFolder
Deprecated.Creates the temp folder where the attachments will be stored- Returns:
- the thingID of the created temp folder
- Throws:
PortalException
-
listAttachments
Deprecated.Description copied from interface:IAttachmentsProvider
Returns a list of the current attachments- Specified by:
listAttachments
in interfaceIAttachmentsProvider
- Overrides:
listAttachments
in classBasePortalContainerAttachmentsProvider
- Returns:
- collection of AttachmentItems
-
_listAttachments
Deprecated.Builds the list of attachments- Overrides:
_listAttachments
in classBasePortalContainerAttachmentsProvider
- Parameters:
parentID
- the thingID of the parent container- Throws:
PortalException
-
setWebDavURL
Deprecated.Gets the base WebDav URL for the specified parent thing- Parameters:
parentId
- the thingID of the parent- Returns:
- WebDav URL of the specified item
-
removeTempContainer
public void removeTempContainer()Deprecated.Removes the temporary attachments container -
migrateAttachmentsToProvider
Deprecated.Call this method to migrate the temporary attachments to the target attachments provider- Parameters:
targetProvider
- the destination attachments provider
-
LocalTempAttachmentsProvider
instead