public class CreateContentByCopyFunction extends CreateContentByCopyFunction
Modifier and Type | Field and Description |
---|---|
protected SiteManager |
_siteManager
The sites manager
|
static String |
SITE_KEY
Constant for storing the site to use into the transient variables map.
|
_copyContentMetadataHelper, _cTypesHelper, _i18nUtils, BASE_CONTENT_ID, BASE_CONTENT_KEY, COPY_MAP_KEY, COPY_METADATASET_NAME, COPY_METADATASET_TYPE, COPY_REPORT_KEY
_contentTypeEP, _contentTypeHelper, _observationManager, _resolver, CONTENT_LANGUAGE_KEY, CONTENT_MIXINS_KEY, CONTENT_NAME_KEY, CONTENT_TITLE_KEY, CONTENT_TITLE_VARIANTS_KEY, CONTENT_TYPES_KEY, PARENT_CONTENT_ID_KEY, PARENT_CONTENT_METADATA_PATH_KEY
_contentHelper, CONTENT_KEY
_logger, _manager, CONTEXT_PARAMETERS_KEY, FAIL_CONDITIONS_KEY, RESULT_MAP_KEY, WORKFLOW_ERRORS_KEY, WORKFLOW_WARNS_KEY
Constructor and Description |
---|
CreateContentByCopyFunction() |
Modifier and Type | Method and Description |
---|---|
protected ModifiableTraversableAmetysObject |
_getContentRoot(Map transientVars)
Retrieve the content root.
|
protected String |
_getObjectType(Map transientVars)
Return the type of the object to be created.
|
protected void |
_populateContent(Map transientVars,
ModifiableContent content)
Populate the content.
|
void |
service(ServiceManager manager) |
_buildCopyMap, _populateAdditionalData, execute, getBaseContentForCopy
_createContent, _eventParamsForContentAdded, _getNonNullVar, _getSubContentRoot, _isMultilingual, _notifyContentAdded, _setTitle, getSystemUser
getContent
addWorkflowError, addWorkflowWarning, enableLogging, getConditionFailures, getContextParameters, getResultsMap, getUser
public static final String SITE_KEY
protected SiteManager _siteManager
public CreateContentByCopyFunction()
public void service(ServiceManager manager) throws ServiceException
service
in interface Serviceable
service
in class CreateContentByCopyFunction
ServiceException
protected String _getObjectType(Map transientVars)
CreateContentFunction
_getObjectType
in class CreateContentFunction
transientVars
- The workflow varsprotected ModifiableTraversableAmetysObject _getContentRoot(Map transientVars) throws com.opensymphony.workflow.WorkflowException
CreateContentFunction
_getContentRoot
in class CreateContentFunction
transientVars
- the workflow parameters.com.opensymphony.workflow.WorkflowException
- if an error occursprotected void _populateContent(Map transientVars, ModifiableContent content) throws com.opensymphony.workflow.WorkflowException
CreateContentFunction
_populateContent
in class CreateContentFunction
transientVars
- the transient variables.content
- the content.com.opensymphony.workflow.WorkflowException
- if an error occurs.