public class CreateCourseFunction extends AbstractCreateODFProgramItemFunction
Course
contentModifier and Type | Field and Description |
---|---|
protected ShareableCourseHelper |
_shareableCourseHelper
The shareable course helper
|
static String |
CONTENT_NAME_PREFIX
Content name prefix for programs
|
static String |
COURSE_LIST_ID_KEY
Constant for storing the parent course list id to use into the transient variables map.
|
_odfHelper, CONTENT_CATALOG_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 |
---|
CreateCourseFunction() |
Modifier and Type | Method and Description |
---|---|
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.
|
void |
service(ServiceManager manager) |
_createContent, _getContentRoot, execute
_eventParamsForContentAdded, _getNonNullVar, _getObjectType, _getSubContentRoot, _isMultilingual, _notifyContentAdded, _populateContent, _setTitle, getSystemUser
getContent
addWorkflowError, addWorkflowWarning, enableLogging, getConditionFailures, getContextParameters, getResultsMap, getUser
public static final String COURSE_LIST_ID_KEY
public static final String CONTENT_NAME_PREFIX
protected ShareableCourseHelper _shareableCourseHelper
public CreateCourseFunction()
public void service(ServiceManager manager) throws ServiceException
service
in interface Serviceable
service
in class AbstractCreateODFContentFunction
ServiceException
protected String _getContentNamePrefix()
AbstractCreateODFContentFunction
_getContentNamePrefix
in class AbstractCreateODFContentFunction
protected String _getNodeType()
AbstractCreateODFContentFunction
_getNodeType
in class AbstractCreateODFContentFunction
protected void _populateAdditionalData(Map transientVars, ModifiableContent content) throws com.opensymphony.workflow.WorkflowException
CreateContentFunction
_populateAdditionalData
in class AbstractCreateODFProgramItemFunction
transientVars
- the transient variables.content
- the content.com.opensymphony.workflow.WorkflowException
- if an error occurs.