Class WorkflowTemplateModel
java.lang.Object
de.hybris.platform.servicelayer.model.AbstractItemModel
de.hybris.platform.core.model.ItemModel
de.hybris.platform.cronjob.model.JobModel
de.hybris.platform.workflow.model.WorkflowTemplateModel
- All Implemented Interfaces:
Serializable
Generated model class for type WorkflowTemplate first defined at extension workflow.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
AbstractItemModel.NewModelContextFactory -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringGenerated model type code constant.static final StringGenerated relation code constant for relationWorkflowTemplateForCatalogVersiondefining source attributecatalogVersionsin extensioncms2.static final StringGenerated constant - Attribute key ofWorkflowTemplate.actionsattribute defined at extensionworkflow.static final StringGenerated constant - Attribute key ofWorkflowTemplate.activationScriptattribute defined at extensionworkflow.static final StringGenerated constant - Attribute key ofWorkflowTemplate.catalogVersionsattribute defined at extensioncms2.static final StringGenerated constant - Attribute key ofWorkflowTemplate.descriptionattribute defined at extensionworkflow.static final StringGenerated constant - Attribute key ofWorkflowTemplate.nameattribute defined at extensionworkflow.static final StringGenerated constant - Attribute key ofWorkflowTemplate.visibleForPrincipalsattribute defined at extensionworkflow.Fields inherited from class de.hybris.platform.cronjob.model.JobModel
ACTIVE, ALTERNATIVEDATASOURCEID, CHANGERECORDINGENABLED, CODE, CRONJOBS, EMAILADDRESS, EMAILNOTIFICATIONTEMPLATE, ERRORMODE, LOGLEVELDATABASE, LOGLEVELFILE, LOGTODATABASE, LOGTOFILE, NODEGROUP, NODEID, NUMBEROFRETRIES, PRIORITY, REMOVEONEXIT, REQUESTABORT, REQUESTABORTSTEP, RESTRICTIONS, RETRY, SENDEMAIL, SESSIONCONTEXTVALUES, SESSIONCURRENCY, SESSIONLANGUAGE, SESSIONUSER, SINGLEEXECUTABLE, TRIGGERS, USEREADONLYDATASOURCEFields inherited from class de.hybris.platform.core.model.ItemModel
_COMMENTITEMRELATION, COMMENTS, CREATIONTIME, ITEMTYPE, MODIFIEDTIME, OWNER, PK, SEALEDFields inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
LANGUAGE_FALLBACK_ENABLED_SERVICE_LAYER, MODEL_CONTEXT_FACTORY -
Constructor Summary
ConstructorsConstructorDescriptionGenerated constructor - Default constructor for generic creation.Generated constructor - Default constructor for creation with existing contextWorkflowTemplateModel(String _code) Deprecated, for removal: This API element is subject to removal in a future version.since 4.1.1 Please use the default constructor without parametersWorkflowTemplateModel(String _code, Integer _nodeID, UserModel _owner) Deprecated, for removal: This API element is subject to removal in a future version.since 4.1.1 Please use the default constructor without parameters -
Method Summary
Modifier and TypeMethodDescriptionGenerated method - Getter of theWorkflowTemplate.actionsattribute defined at extensionworkflow.Generated method - Getter of theWorkflowTemplate.activationScriptattribute defined at extensionworkflow.Generated method - Getter of theWorkflowTemplate.catalogVersionsattribute defined at extensioncms2.Generated method - Getter of theWorkflowTemplate.descriptionattribute defined at extensionworkflow.getDescription(Locale loc) Generated method - Getter of theWorkflowTemplate.descriptionattribute defined at extensionworkflow.getName()Generated method - Getter of theWorkflowTemplate.nameattribute defined at extensionworkflow.Generated method - Getter of theWorkflowTemplate.nameattribute defined at extensionworkflow.getOwner()Generated method - Getter of theItem.ownerattribute defined at extensioncoreand redeclared at extensionworkflow.Generated method - Getter of theWorkflowTemplate.visibleForPrincipalsattribute defined at extensionworkflow.voidGenerated method - Setter ofWorkflowTemplate.actionsattribute defined at extensionworkflow.voidsetActivationScript(String value) Generated method - Setter ofWorkflowTemplate.activationScriptattribute defined at extensionworkflow.voidGenerated method - Setter ofWorkflowTemplate.catalogVersionsattribute defined at extensioncms2.voidsetDescription(String value) Generated method - Setter ofWorkflowTemplate.descriptionattribute defined at extensionworkflow.voidsetDescription(String value, Locale loc) Generated method - Setter ofWorkflowTemplate.descriptionattribute defined at extensionworkflow.voidGenerated method - Setter ofWorkflowTemplate.nameattribute defined at extensionworkflow.voidGenerated method - Setter ofWorkflowTemplate.nameattribute defined at extensionworkflow.voidGenerated method - Setter ofItem.ownerattribute defined at extensioncoreand redeclared at extensionworkflow.voidGenerated method - Setter ofWorkflowTemplate.visibleForPrincipalsattribute defined at extensionworkflow.Methods inherited from class de.hybris.platform.cronjob.model.JobModel
getActive, getAlternativeDataSourceID, getChangeRecordingEnabled, getCode, getCronJobs, getEmailAddress, getEmailNotificationTemplate, getErrorMode, getLogLevelDatabase, getLogLevelFile, getLogToDatabase, getLogToFile, getNodeGroup, getNodeID, getNumberOfRetries, getPriority, getRemoveOnExit, getRequestAbort, getRequestAbortStep, getRestrictions, getRetry, getSendEmail, getSessionCurrency, getSessionLanguage, getSessionUser, getSingleExecutable, getTriggers, getUseReadOnlyDatasource, setActive, setAlternativeDataSourceID, setChangeRecordingEnabled, setCode, setEmailAddress, setEmailNotificationTemplate, setErrorMode, setLogLevelDatabase, setLogLevelFile, setLogToDatabase, setLogToFile, setNodeGroup, setNodeID, setNumberOfRetries, setPriority, setRemoveOnExit, setRequestAbort, setRequestAbortStep, setRestrictions, setRetry, setSendEmail, setSessionCurrency, setSessionLanguage, setSessionUser, setSingleExecutable, setTriggers, setUseReadOnlyDatasourceMethods inherited from class de.hybris.platform.core.model.ItemModel
getComments, getCreationtime, getModifiedtime, isSealed, setComments, setCreationtime, setModifiedtimeMethods inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
equals, getItemModelContext, getItemtype, getPersistenceContext, getPk, getProperty, getProperty, getTenantId, hashCode, readResolve, setProperty, setProperty, toObject, toObject, toObject, toObject, toObject, toObject, toObject, toObject, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toString, writeReplace
-
Field Details
-
_TYPECODE
Generated model type code constant.- See Also:
-
_WORKFLOWTEMPLATEFORCATALOGVERSION
Generated relation code constant for relationWorkflowTemplateForCatalogVersiondefining source attributecatalogVersionsin extensioncms2.- See Also:
-
NAME
Generated constant - Attribute key ofWorkflowTemplate.nameattribute defined at extensionworkflow.- See Also:
-
DESCRIPTION
Generated constant - Attribute key ofWorkflowTemplate.descriptionattribute defined at extensionworkflow.- See Also:
-
ACTIVATIONSCRIPT
Generated constant - Attribute key ofWorkflowTemplate.activationScriptattribute defined at extensionworkflow.- See Also:
-
ACTIONS
Generated constant - Attribute key ofWorkflowTemplate.actionsattribute defined at extensionworkflow.- See Also:
-
VISIBLEFORPRINCIPALS
Generated constant - Attribute key ofWorkflowTemplate.visibleForPrincipalsattribute defined at extensionworkflow.- See Also:
-
CATALOGVERSIONS
Generated constant - Attribute key ofWorkflowTemplate.catalogVersionsattribute defined at extensioncms2.- See Also:
-
-
Constructor Details
-
WorkflowTemplateModel
public WorkflowTemplateModel()Generated constructor - Default constructor for generic creation. -
WorkflowTemplateModel
Generated constructor - Default constructor for creation with existing context- Parameters:
ctx- the model context to be injected, must not be null
-
WorkflowTemplateModel
Deprecated, for removal: This API element is subject to removal in a future version.since 4.1.1 Please use the default constructor without parametersGenerated constructor - Constructor with all mandatory attributes.- Parameters:
_code- initial attribute declared by typeWorkflowTemplateat extensionworkflow
-
WorkflowTemplateModel
@Deprecated(since="4.1.1", forRemoval=true) public WorkflowTemplateModel(String _code, Integer _nodeID, UserModel _owner) Deprecated, for removal: This API element is subject to removal in a future version.since 4.1.1 Please use the default constructor without parametersGenerated constructor - for all mandatory and initial attributes.- Parameters:
_code- initial attribute declared by typeWorkflowTemplateat extensionworkflow_nodeID- initial attribute declared by typeJobat extensionprocessing_owner- initial attribute declared by typeWorkflowTemplateat extensionworkflow
-
-
Method Details
-
getActions
Generated method - Getter of theWorkflowTemplate.actionsattribute defined at extensionworkflow. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.- Returns:
- the actions - n-part of the WorkflowTemplateActionTemplateRelation; set of action templates from which a action will be created and set to the workflow created by the workflow template each
-
getActivationScript
Generated method - Getter of theWorkflowTemplate.activationScriptattribute defined at extensionworkflow.- Returns:
- the activationScript - Java code used to automatically trigger a Workflow
-
getCatalogVersions
@Accessor(qualifier="catalogVersions", type=GETTER) public Collection<CatalogVersionModel> getCatalogVersions()Generated method - Getter of theWorkflowTemplate.catalogVersionsattribute defined at extensioncms2. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.- Returns:
- the catalogVersions
-
getDescription
Generated method - Getter of theWorkflowTemplate.descriptionattribute defined at extensionworkflow.- Returns:
- the description - description of the workflows created by the template; will be copied to a created workflow initially
-
getDescription
Generated method - Getter of theWorkflowTemplate.descriptionattribute defined at extensionworkflow.- Parameters:
loc- the value localization key- Returns:
- the description - description of the workflows created by the template; will be copied to a created workflow initially
- Throws:
IllegalArgumentException- if localization key cannot be mapped to data language
-
getName
Generated method - Getter of theWorkflowTemplate.nameattribute defined at extensionworkflow.- Returns:
- the name - name of the workflows created by the template; will be copied to a created workflow initially
-
getName
Generated method - Getter of theWorkflowTemplate.nameattribute defined at extensionworkflow.- Parameters:
loc- the value localization key- Returns:
- the name - name of the workflows created by the template; will be copied to a created workflow initially
- Throws:
IllegalArgumentException- if localization key cannot be mapped to data language
-
getOwner
Generated method - Getter of theItem.ownerattribute defined at extensioncoreand redeclared at extensionworkflow. -
getVisibleForPrincipals
@Accessor(qualifier="visibleForPrincipals", type=GETTER) public Collection<PrincipalModel> getVisibleForPrincipals()Generated method - Getter of theWorkflowTemplate.visibleForPrincipalsattribute defined at extensionworkflow. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.- Returns:
- the visibleForPrincipals
-
setActions
@Accessor(qualifier="actions", type=SETTER) public void setActions(List<WorkflowActionTemplateModel> value) Generated method - Setter ofWorkflowTemplate.actionsattribute defined at extensionworkflow.- Parameters:
value- the actions - n-part of the WorkflowTemplateActionTemplateRelation; set of action templates from which a action will be created and set to the workflow created by the workflow template each
-
setActivationScript
Generated method - Setter ofWorkflowTemplate.activationScriptattribute defined at extensionworkflow.- Parameters:
value- the activationScript - Java code used to automatically trigger a Workflow
-
setCatalogVersions
@Accessor(qualifier="catalogVersions", type=SETTER) public void setCatalogVersions(Collection<CatalogVersionModel> value) Generated method - Setter ofWorkflowTemplate.catalogVersionsattribute defined at extensioncms2.- Parameters:
value- the catalogVersions
-
setDescription
Generated method - Setter ofWorkflowTemplate.descriptionattribute defined at extensionworkflow.- Parameters:
value- the description - description of the workflows created by the template; will be copied to a created workflow initially
-
setDescription
@Accessor(qualifier="description", type=SETTER) public void setDescription(String value, Locale loc) Generated method - Setter ofWorkflowTemplate.descriptionattribute defined at extensionworkflow.- Parameters:
value- the description - description of the workflows created by the template; will be copied to a created workflow initiallyloc- the value localization key- Throws:
IllegalArgumentException- if localization key cannot be mapped to data language
-
setName
Generated method - Setter ofWorkflowTemplate.nameattribute defined at extensionworkflow.- Parameters:
value- the name - name of the workflows created by the template; will be copied to a created workflow initially
-
setName
Generated method - Setter ofWorkflowTemplate.nameattribute defined at extensionworkflow.- Parameters:
value- the name - name of the workflows created by the template; will be copied to a created workflow initiallyloc- the value localization key- Throws:
IllegalArgumentException- if localization key cannot be mapped to data language
-
setOwner
Generated method - Setter ofItem.ownerattribute defined at extensioncoreand redeclared at extensionworkflow. Will only accept values of typeUserModel. -
setVisibleForPrincipals
@Accessor(qualifier="visibleForPrincipals", type=SETTER) public void setVisibleForPrincipals(Collection<PrincipalModel> value) Generated method - Setter ofWorkflowTemplate.visibleForPrincipalsattribute defined at extensionworkflow.- Parameters:
value- the visibleForPrincipals
-