public class CreateCourseByCopyFunction extends AbstractCreateProgramItemByCopyFunction
_odfHelper
_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 |
---|
CreateCourseByCopyFunction() |
Modifier and Type | Method and Description |
---|---|
protected Map<String,Object> |
_buildCopyMap(Map transientVars,
Content baseContent,
String metadataSetName,
String metadataSetType)
Get the builded copy map
|
protected Set<String> |
_getChildReferenceMetadataName()
Get the metadata name holding the child relation between the content to create and its children
|
protected String |
_getContentNamePrefix()
Get the prefix for content name
|
protected String |
_getNodeType()
Get the content node type
|
protected void |
_populateAdditionalData(Map transientVars,
ModifiableContent content)
Populate the content.
|
_createContent, _getContentRoot, service
execute, getBaseContentForCopy
_eventParamsForContentAdded, _getNonNullVar, _getObjectType, _getSubContentRoot, _isMultilingual, _notifyContentAdded, _populateContent, _setTitle, getSystemUser
getContent
addWorkflowError, addWorkflowWarning, enableLogging, getConditionFailures, getContextParameters, getResultsMap, getUser
public CreateCourseByCopyFunction()
protected String _getContentNamePrefix()
AbstractCreateODFContentByCopyFunction
_getContentNamePrefix
in class AbstractCreateODFContentByCopyFunction
protected String _getNodeType()
AbstractCreateODFContentByCopyFunction
_getNodeType
in class AbstractCreateODFContentByCopyFunction
protected void _populateAdditionalData(Map transientVars, ModifiableContent content) throws com.opensymphony.workflow.WorkflowException
CreateContentFunction
_populateAdditionalData
in class AbstractCreateProgramItemByCopyFunction
transientVars
- the transient variables.content
- the content.com.opensymphony.workflow.WorkflowException
- if an error occurs.protected Set<String> _getChildReferenceMetadataName()
AbstractCreateProgramItemByCopyFunction
_getChildReferenceMetadataName
in class AbstractCreateProgramItemByCopyFunction
protected Map<String,Object> _buildCopyMap(Map transientVars, Content baseContent, String metadataSetName, String metadataSetType)
CreateContentByCopyFunction
_buildCopyMap
in class AbstractCreateProgramItemByCopyFunction
transientVars
- the varsbaseContent
- the base content to be copiedmetadataSetName
- the metadata set namemetadataSetType
- the metadata set type