Class AttachmentsMigrationProvider
java.lang.Object
com.webmethods.caf.faces.bean.PageFlowScopeAdapter
com.webmethods.caf.jcr.faces.data.AttachmentsMigrationProvider
- All Implemented Interfaces:
IPageFlowScopeAdapter
Provider for migrating files from an attachment provider
to another folder.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final String
Key string used to append encoding to mimetypeprotected static final String
Outcome for failed actionprotected static final String
Outcome for successful actionFields inherited from class com.webmethods.caf.faces.bean.PageFlowScopeAdapter
fExpireWithPageFlow
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAction that copies attachments from the source attachment provider to the destination attachment providerReturns the destination parent node idReturns the destination parent pathprotected String
getEncoding
(String mimeType) Returns encoding from mimeType string, null if not definedjavax.jcr.Session
Returns the current JCR sessionReturns the source attachments providerAction that copies attachments from the source attachment provider to the destination attachment providervoid
setDestParentId
(String destParentId) Sets the destination parent node idvoid
setDestParentPath
(String destParentPath) Sets the destination parent pathvoid
setJcrSession
(javax.jcr.Session jcrSession) Sets the current JCR sessionvoid
setSourceProvider
(IAttachmentsProvider sourceProvider) Sets the source attachments providerMethods inherited from class com.webmethods.caf.faces.bean.PageFlowScopeAdapter
getExpireWithPageFlow, setExpireWithPageFlow
-
Field Details
-
OUTCOME_OK
Outcome for successful action- See Also:
-
OUTCOME_ERROR
Outcome for failed action- See Also:
-
CHARSET_EQUALS
Key string used to append encoding to mimetype- See Also:
-
-
Constructor Details
-
AttachmentsMigrationProvider
public AttachmentsMigrationProvider()
-
-
Method Details
-
getJcrSession
public javax.jcr.Session getJcrSession()Returns the current JCR session- Returns:
- the jcrSession
-
setJcrSession
public void setJcrSession(javax.jcr.Session jcrSession) Sets the current JCR session- Parameters:
jcrSession
- the jcrSession to set
-
getSourceProvider
Returns the source attachments provider- Returns:
- the sourceProvider
-
setSourceProvider
Sets the source attachments provider- Parameters:
sourceProvider
- the sourceProvider to set
-
getDestParentId
Returns the destination parent node id- Returns:
- the destParentId
-
setDestParentId
Sets the destination parent node id- Parameters:
destParentId
- the destParentId to set
-
getDestParentPath
Returns the destination parent path- Returns:
- the destParentPath
-
setDestParentPath
Sets the destination parent path- Parameters:
destParentPath
- the destParentPath to set
-
getEncoding
Returns encoding from mimeType string, null if not defined- Parameters:
mimeType
-- Returns:
- the encoding extracted from the mimeType
-
moveAttachments
Action that copies attachments from the source attachment provider to the destination attachment provider- Returns:
- "ok" or "error"
-
copyAttachments
Action that copies attachments from the source attachment provider to the destination attachment provider- Returns:
- "ok" or "error"
-