public class EditContentByCopyFunction extends AbstractContentWorkflowComponent implements com.opensymphony.workflow.FunctionProvider
| Modifier and Type | Field and Description |
|---|---|
protected CopyContentMetadataComponent |
_copyContentMetadataHelper
The metadata copy component
|
protected ObservationManager |
_observationManager
The observation manager
|
static String |
BASE_CONTENT_KEY
Constant for storing the base content used for the duplication into the transient variables map.
|
static String |
COPY_MAP_KEY
Constant for storing the map containing the duplication info into the transient variables map.
|
static String |
COPY_REPORT_KEY
Constant for storing the copy report object into the transient variables map.
|
_contentHelper, CONTENT_KEY_logger, _manager, CONTEXT_PARAMETERS_KEY, FAIL_CONDITIONS_KEY, RESULT_MAP_KEY, WORKFLOW_ERRORS_KEY, WORKFLOW_WARNS_KEY| Constructor and Description |
|---|
EditContentByCopyFunction() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
_duplicateMetadata(Map transientVars,
ModifiableContent content)
Duplicate the currently edited content by copying the metadata of the source content.
|
protected void |
_updateCommonMetadata(ModifiableContent content,
UserIdentity user)
Updates common metadata (last contributor, last modification date, ...).
|
void |
execute(Map transientVars,
Map args,
com.opensymphony.module.propertyset.PropertySet ps) |
void |
service(ServiceManager manager) |
getContentaddWorkflowError, addWorkflowWarning, enableLogging, getConditionFailures, getContextParameters, getResultsMap, getUserpublic static final String BASE_CONTENT_KEY
public static final String COPY_MAP_KEY
public static final String COPY_REPORT_KEY
protected CopyContentMetadataComponent _copyContentMetadataHelper
protected ObservationManager _observationManager
public EditContentByCopyFunction()
public void service(ServiceManager manager) throws ServiceException
service in interface Serviceableservice in class AbstractContentWorkflowComponentServiceExceptionpublic void execute(Map transientVars, Map args, com.opensymphony.module.propertyset.PropertySet ps) throws com.opensymphony.workflow.WorkflowException
execute in interface com.opensymphony.workflow.FunctionProvidercom.opensymphony.workflow.WorkflowExceptionprotected void _duplicateMetadata(Map transientVars, ModifiableContent content) throws com.opensymphony.workflow.WorkflowException
transientVars - the transient variables.content - the destination content.com.opensymphony.workflow.WorkflowException - if an error occurs.protected void _updateCommonMetadata(ModifiableContent content, UserIdentity user) throws com.opensymphony.workflow.WorkflowException
content - the content.user - the user.com.opensymphony.workflow.WorkflowException - if an error occurs.