public abstract class AbstractCreateODFContentFunction extends CreateContentFunction
| Modifier and Type | Field and Description |
|---|---|
protected ODFHelper |
_odfHelper
ODF helper
|
static String |
CONTENT_CATALOG_KEY
Constant for storing the catalog name to use into the transient variables map.
|
_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 |
|---|
AbstractCreateODFContentFunction() |
| Modifier and Type | Method and Description |
|---|---|
protected ModifiableWorkflowAwareContent |
_createContent(Map transientVars,
String desiredContentName,
ModifiableTraversableAmetysObject contentsNode)
Create the content object.
|
protected abstract String |
_getContentNamePrefix()
Get the prefix for content name
|
protected AmetysObjectCollection<?,ModifiableWorkflowAwareContent> |
_getContentRoot(Map transientVars)
Retrieve the content root.
|
protected abstract String |
_getNodeType()
Get the content node type
|
void |
execute(Map transientVars,
Map args,
com.opensymphony.module.propertyset.PropertySet ps) |
void |
service(ServiceManager manager) |
_eventParamsForContentAdded, _getNonNullVar, _getObjectType, _getSubContentRoot, _isMultilingual, _notifyContentAdded, _populateAdditionalData, _populateContent, _setTitle, getSystemUsergetContentaddWorkflowError, addWorkflowWarning, enableLogging, getConditionFailures, getContextParameters, getResultsMap, getUserpublic static final String CONTENT_CATALOG_KEY
protected ODFHelper _odfHelper
public AbstractCreateODFContentFunction()
public void service(ServiceManager manager) throws ServiceException
service in interface Serviceableservice in class CreateContentFunctionServiceExceptionprotected AmetysObjectCollection<?,ModifiableWorkflowAwareContent> _getContentRoot(Map transientVars) throws com.opensymphony.workflow.WorkflowException
CreateContentFunction_getContentRoot in class CreateContentFunctiontransientVars - the workflow parameters.com.opensymphony.workflow.WorkflowException - if an error occurspublic void execute(Map transientVars, Map args, com.opensymphony.module.propertyset.PropertySet ps) throws com.opensymphony.workflow.WorkflowException
execute in interface com.opensymphony.workflow.FunctionProviderexecute in class CreateContentFunctioncom.opensymphony.workflow.WorkflowExceptionprotected ModifiableWorkflowAwareContent _createContent(Map transientVars, String desiredContentName, ModifiableTraversableAmetysObject contentsNode)
CreateContentFunction_createContent in class CreateContentFunctiontransientVars - the workflow parameters.desiredContentName - the desired content name.contentsNode - the content root node in the repository.protected abstract String _getContentNamePrefix()
protected abstract String _getNodeType()