public class AttachmentsMigrationProvider extends PageFlowScopeAdapter
Modifier and Type | Field and Description |
---|---|
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
|
fExpireWithPageFlow
Constructor and Description |
---|
AttachmentsMigrationProvider() |
Modifier and Type | Method and Description |
---|---|
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
|
javax.jcr.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(javax.jcr.Session jcrSession)
Sets the current JCR session
|
void |
setSourceProvider(IAttachmentsProvider sourceProvider)
Sets the source attachments provider
|
getExpireWithPageFlow, setExpireWithPageFlow
protected static final String OUTCOME_OK
protected static final String OUTCOME_ERROR
protected static final String CHARSET_EQUALS
public javax.jcr.Session getJcrSession()
public void setJcrSession(javax.jcr.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()