Package de.hybris.platform.workflow.daos
Interface WorkflowTemplateDao
-
- All Known Implementing Classes:
DefaultWorkflowTemplateDao
public interface WorkflowTemplateDaoDao to find workflow templates
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description EmployeeModelfindAdhocWorkflowTemplateDummyOwner()java.util.List<WorkflowTemplateModel>findAdhocWorkflowTemplates()java.util.List<WorkflowTemplateModel>findAllWorkflowTemplates()java.util.List<WorkflowActionTemplateModel>findWorkflowActionTemplatesByCode(java.lang.String code)java.util.Collection<LinkModel>findWorkflowLinkTemplates(AbstractWorkflowDecisionModel decision, AbstractWorkflowActionModel action)java.util.Collection<LinkModel>findWorkflowLinkTemplatesByAction(AbstractWorkflowActionModel action)java.util.Collection<LinkModel>findWorkflowLinkTemplatesByDecision(AbstractWorkflowDecisionModel decision)java.util.List<WorkflowTemplateModel>findWorkflowTemplatesByCode(java.lang.String code)java.util.List<WorkflowTemplateModel>findWorkflowTemplatesByUser(UserModel user)java.util.List<WorkflowTemplateModel>findWorkflowTemplatesVisibleForPrincipal(PrincipalModel principal)
-
-
-
Method Detail
-
findWorkflowTemplatesByUser
java.util.List<WorkflowTemplateModel> findWorkflowTemplatesByUser(UserModel user)
- Parameters:
user- to which templates belongs to- Returns:
- all workflow templates that user is owner
-
findWorkflowTemplatesVisibleForPrincipal
java.util.List<WorkflowTemplateModel> findWorkflowTemplatesVisibleForPrincipal(PrincipalModel principal)
- Parameters:
principal- to which templates is visible to- Returns:
- all workflow templates that are visible to the principal
-
findAdhocWorkflowTemplates
java.util.List<WorkflowTemplateModel> findAdhocWorkflowTemplates()
- Returns:
- special template for adhoc workflows
-
findAdhocWorkflowTemplateDummyOwner
EmployeeModel findAdhocWorkflowTemplateDummyOwner()
- Returns:
- user which is used for adhoc template, null if it's missing. See project properties file for default value.
-
findAllWorkflowTemplates
java.util.List<WorkflowTemplateModel> findAllWorkflowTemplates()
- Returns:
- all defined workflow templates
-
findWorkflowActionTemplatesByCode
java.util.List<WorkflowActionTemplateModel> findWorkflowActionTemplatesByCode(java.lang.String code)
- Returns:
- workflow actions that match a given code
-
findWorkflowTemplatesByCode
java.util.List<WorkflowTemplateModel> findWorkflowTemplatesByCode(java.lang.String code)
- Returns:
- workflow templates that match a given code
-
findWorkflowLinkTemplatesByAction
java.util.Collection<LinkModel> findWorkflowLinkTemplatesByAction(AbstractWorkflowActionModel action)
- Parameters:
action- workflow action which is target of the link- Returns:
- collection of link models
-
findWorkflowLinkTemplatesByDecision
java.util.Collection<LinkModel> findWorkflowLinkTemplatesByDecision(AbstractWorkflowDecisionModel decision)
- Parameters:
decision- workflow decision which is the source of the link- Returns:
- collection of link models
-
findWorkflowLinkTemplates
java.util.Collection<LinkModel> findWorkflowLinkTemplates(AbstractWorkflowDecisionModel decision, AbstractWorkflowActionModel action)
- Parameters:
decision- workflow decision which is the source of the linkaction- workflow action which is target of the link- Returns:
- collection of link models
-
-