|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.webmethods.caf.faces.bean.PageFlowScopeAdapter
com.webmethods.caf.faces.data.attachments.BasePortalContainerAttachmentsProvider
com.webmethods.caf.faces.data.attachments.TempAttachmentsProvider
LocalTempAttachmentsProvider
instead
@Deprecated public class TempAttachmentsProvider
Default implementation of a temporary attachments provider. Holds onto the attachment info until the container they go into is ready.
Nested Class Summary | |
---|---|
static class |
TempAttachmentsProvider.TempThingFileItem
Deprecated. Simple implementation of FileItem to wrap the temporary files. |
Field Summary | |
---|---|
protected boolean |
fAutoCleanup
Deprecated. Specifies whether to autmatically clean up the temp files when this provider goes out of scope |
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 | |
---|---|
TempAttachmentsProvider()
Deprecated. |
Method Summary | |
---|---|
protected void |
_listAttachments(IThingID parentID)
Deprecated. Builds the list of attachments |
void |
addAttachment(FileItem fileItem,
String fileEncoding)
Deprecated. Add Attachment |
protected IThingID |
createTempFolder()
Deprecated. Creates the temp folder where the attachments will be stored |
protected void |
finalize()
Deprecated. If autoCleanup is enabled, removes the temp container |
String |
getContainerID()
Deprecated. Gets the attachments container id |
boolean |
isAddAttachmentsAvailable()
Deprecated. Overrides the default behavior to always return true |
boolean |
isAutoCleanup()
Deprecated. Return true if the temp storage container should bean removed when this provider goes out of scope. |
List |
listAttachments()
Deprecated. Returns a list of the current attachments |
void |
migrateAttachmentsToProvider(IAttachmentsProvider targetProvider)
Deprecated. Call this method to migrate the temporary attachments to the target attachments provider |
void |
removeTempContainer()
Deprecated. Removes the temporary attachments container |
void |
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 thing |
void |
valueBound(HttpSessionBindingEvent arg0)
Deprecated. |
void |
valueUnbound(HttpSessionBindingEvent arg0)
Deprecated. If autoCleanup is enabled, removes the temp container |
Methods inherited from class com.webmethods.caf.faces.data.attachments.BasePortalContainerAttachmentsProvider |
---|
acquireContext, getContainerThingID, getHasAttachments, isUseWebDav, refresh, releaseContext, removeAttachment, setContainerID, setUseWebDav, updateAttachment |
Methods inherited from class com.webmethods.caf.faces.bean.PageFlowScopeAdapter |
---|
getExpireWithPageFlow, setExpireWithPageFlow |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected boolean fAutoCleanup
Constructor Detail |
---|
public TempAttachmentsProvider()
Method Detail |
---|
public String getContainerID()
getContainerID
in class BasePortalContainerAttachmentsProvider
public boolean isAutoCleanup()
public void setAutoCleanup(boolean autoCleanup)
autoCleanup
- the autoCleanup to setpublic void valueBound(HttpSessionBindingEvent arg0)
public void valueUnbound(HttpSessionBindingEvent arg0)
HttpSessionBindingListener
protected void finalize() throws Throwable
finalize
in class Object
Throwable
Object.finalize()
public boolean isAddAttachmentsAvailable()
isAddAttachmentsAvailable
in interface IAttachmentsProvider
isAddAttachmentsAvailable
in class BasePortalContainerAttachmentsProvider
BasePortalContainerAttachmentsProvider.isAddAttachmentsAvailable()
public void addAttachment(FileItem fileItem, String fileEncoding)
IAttachmentsProvider
addAttachment
in interface IAttachmentsProvider
addAttachment
in class BasePortalContainerAttachmentsProvider
fileItem
- the attachment contentfileEncoding
- the encoding of the attachment file (if known)protected IThingID createTempFolder() throws PortalException
PortalException
public List listAttachments()
IAttachmentsProvider
listAttachments
in interface IAttachmentsProvider
listAttachments
in class BasePortalContainerAttachmentsProvider
protected void _listAttachments(IThingID parentID) throws PortalException
_listAttachments
in class BasePortalContainerAttachmentsProvider
parentID
- the thingID of the parent container
PortalException
protected String setWebDavURL(IThingID parentId)
parentId
- the thingID of the parent
public void removeTempContainer()
public void migrateAttachmentsToProvider(IAttachmentsProvider targetProvider)
targetProvider
- the destination attachments provider
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |