|
|||||||||
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.jcr.faces.data.AttachmentsMigrationProvider
public class AttachmentsMigrationProvider
Provider for migrating files from an attachment provider to another folder.
Field Summary | |
---|---|
protected static String |
CHARSET_EQUALS
Key string used to append encoding to mimetype |
protected static String |
OUTCOME_ERROR
Outcome for failed action |
protected static String |
OUTCOME_OK
Outcome for successful action |
Fields inherited from class com.webmethods.caf.faces.bean.PageFlowScopeAdapter |
---|
fExpireWithPageFlow |
Constructor Summary | |
---|---|
AttachmentsMigrationProvider()
|
Method Summary | |
---|---|
String |
copyAttachments()
Action that copies attachments from the source attachment provider to the destination attachment provider |
String |
getDestParentId()
Returns the destination parent node id |
String |
getDestParentPath()
Returns the destination parent path |
protected String |
getEncoding(String mimeType)
Returns encoding from mimeType string, null if not defined |
Session |
getJcrSession()
Returns the current JCR session |
IAttachmentsProvider |
getSourceProvider()
Returns the source attachments provider |
String |
moveAttachments()
Action that copies attachments from the source attachment provider to the destination attachment provider |
void |
setDestParentId(String destParentId)
Sets the destination parent node id |
void |
setDestParentPath(String destParentPath)
Sets the destination parent path |
void |
setJcrSession(Session jcrSession)
Sets the current JCR session |
void |
setSourceProvider(IAttachmentsProvider sourceProvider)
Sets the source attachments provider |
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 |
---|
protected static final String OUTCOME_OK
protected static final String OUTCOME_ERROR
protected static final String CHARSET_EQUALS
Constructor Detail |
---|
public AttachmentsMigrationProvider()
Method Detail |
---|
public Session getJcrSession()
public void setJcrSession(Session jcrSession)
jcrSession
- the jcrSession to setpublic IAttachmentsProvider getSourceProvider()
public void setSourceProvider(IAttachmentsProvider sourceProvider)
sourceProvider
- the sourceProvider to setpublic String getDestParentId()
public void setDestParentId(String destParentId)
destParentId
- the destParentId to setpublic String getDestParentPath()
public void setDestParentPath(String destParentPath)
destParentPath
- the destParentPath to setprotected String getEncoding(String mimeType)
mimeType
-
public String moveAttachments()
public String copyAttachments()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |