Class DefaultWorkflowDAO
java.lang.Object
de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
de.hybris.platform.workflow.dao.impl.DefaultWorkflowDAO
- All Implemented Interfaces:
Dao,WorkflowDAO
Default dao for workflow objects
-
Field Summary
Fields inherited from class de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
flexibleSearchService, modelService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAllAdhocWorkflows(Date adhocDateFrom, Date adhocDateTo) getAllWorkflows(Date dateFrom, Date dateTo) getEndWorkflowActions(WorkflowModel wfModel) getNormalWorkflowActions(WorkflowModel wfModel) getStartWorkflowActions(WorkflowModel wfModel) Deprecated, for removal: This API element is subject to removal in a future version.since agesgetWorkflowActionsByType(EnumerationValue type, WorkflowModel wfModel) getWorkflowTemplatesVisibleForUser(PrincipalModel principalModel) voidsetUserService(UserService userService) Methods inherited from class de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
getAllSources, getFlexibleSearchService, getModelService, getSource, load, loadAll, search, search, searchUnique, setFlexibleSearchService, setModelService
-
Constructor Details
-
DefaultWorkflowDAO
public DefaultWorkflowDAO()
-
-
Method Details
-
getAllWorkflows
- Specified by:
getAllWorkflowsin interfaceWorkflowDAO- Returns:
- all (not adhoc) workflows
-
getAllAdhocWorkflows
- Specified by:
getAllAdhocWorkflowsin interfaceWorkflowDAO- Returns:
- all adhoc-workflows within given time range. Give null's if no time range needed
-
getUsersWorkflowTemplates
- Specified by:
getUsersWorkflowTemplatesin interfaceWorkflowDAO- Returns:
- all workflow templates that current session user is owner
-
getUserService
Deprecated, for removal: This API element is subject to removal in a future version.since ages- Returns:
- the userService
-
setUserService
- Parameters:
userService- the userService to set
-
getAdhocWorkflowTemplate
- Specified by:
getAdhocWorkflowTemplatein interfaceWorkflowDAO- Returns:
- special template for adhoc workflows
-
getAdhocWorkflowTemplateDummyOwner
- Specified by:
getAdhocWorkflowTemplateDummyOwnerin interfaceWorkflowDAO- Returns:
- user which is used for adhoc template, null if it's missing. See project properties file for default value.
-
getStartWorkflowActions
- Specified by:
getStartWorkflowActionsin interfaceWorkflowDAO- Returns:
- all workflow actions that are marked as 'start action'
-
getNormalWorkflowActions
- Specified by:
getNormalWorkflowActionsin interfaceWorkflowDAO- Returns:
- all workflow actions that are marked as 'normal action'
-
getEndWorkflowActions
- Specified by:
getEndWorkflowActionsin interfaceWorkflowDAO- Returns:
- all workflow actions that are marked as 'end action'
-
getWorkflowActionsByType
public List<WorkflowActionModel> getWorkflowActionsByType(EnumerationValue type, WorkflowModel wfModel) - Specified by:
getWorkflowActionsByTypein interfaceWorkflowDAO- Returns:
- all workflow actions which are of given type
-
getWorkflowTemplatesVisibleForUser
public List<WorkflowTemplateModel> getWorkflowTemplatesVisibleForUser(PrincipalModel principalModel) - Specified by:
getWorkflowTemplatesVisibleForUserin interfaceWorkflowDAO- Returns:
- all workflow templates that are visible to a given principal
-