Class DefaultWorkflowTemplateDao
java.lang.Object
de.hybris.platform.servicelayer.internal.dao.DefaultGenericDao<WorkflowTemplateModel>
de.hybris.platform.workflow.daos.impl.DefaultWorkflowTemplateDao
- All Implemented Interfaces:
GenericDao<WorkflowTemplateModel>,WorkflowTemplateDao
public class DefaultWorkflowTemplateDao
extends DefaultGenericDao<WorkflowTemplateModel>
implements WorkflowTemplateDao
Default implementation of
WorkflowTemplateDao-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindWorkflowLinkTemplates(AbstractWorkflowDecisionModel decision, AbstractWorkflowActionModel action) voidsetAdHocTemplateName(String adHocTemplateName) voidsetUserService(UserService userService) Methods inherited from class de.hybris.platform.servicelayer.internal.dao.DefaultGenericDao
find, find, find, find, find, getFlexibleSearchService, setFlexibleSearchService
-
Constructor Details
-
DefaultWorkflowTemplateDao
-
-
Method Details
-
findAdhocWorkflowTemplates
- Specified by:
findAdhocWorkflowTemplatesin interfaceWorkflowTemplateDao- Returns:
- special template for adhoc workflows
-
findAdhocWorkflowTemplateDummyOwner
- Specified by:
findAdhocWorkflowTemplateDummyOwnerin interfaceWorkflowTemplateDao- Returns:
- user which is used for adhoc template, null if it's missing. See project properties file for default value.
-
findWorkflowTemplatesByUser
- Specified by:
findWorkflowTemplatesByUserin interfaceWorkflowTemplateDao- Parameters:
user- to which templates belongs to- Returns:
- all workflow templates that user is owner
-
findWorkflowTemplatesVisibleForPrincipal
public List<WorkflowTemplateModel> findWorkflowTemplatesVisibleForPrincipal(PrincipalModel principal) - Specified by:
findWorkflowTemplatesVisibleForPrincipalin interfaceWorkflowTemplateDao- Parameters:
principal- to which templates is visible to- Returns:
- all workflow templates that are visible to the principal
-
findAllWorkflowTemplates
- Specified by:
findAllWorkflowTemplatesin interfaceWorkflowTemplateDao- Returns:
- all defined workflow templates
-
findWorkflowActionTemplatesByCode
- Specified by:
findWorkflowActionTemplatesByCodein interfaceWorkflowTemplateDao- Returns:
- workflow actions that match a given code
-
findWorkflowTemplatesByCode
- Specified by:
findWorkflowTemplatesByCodein interfaceWorkflowTemplateDao- Returns:
- workflow templates that match a given code
-
setUserService
-
setAdHocTemplateName
-
findWorkflowLinkTemplates
public Collection<LinkModel> findWorkflowLinkTemplates(AbstractWorkflowDecisionModel decision, AbstractWorkflowActionModel action) - Specified by:
findWorkflowLinkTemplatesin interfaceWorkflowTemplateDao- Parameters:
decision- workflow decision which is the source of the linkaction- workflow action which is target of the link- Returns:
- collection of link models
-
findWorkflowLinkTemplatesByAction
- Specified by:
findWorkflowLinkTemplatesByActionin interfaceWorkflowTemplateDao- Parameters:
action- workflow action which is target of the link- Returns:
- collection of link models
-
findWorkflowLinkTemplatesByDecision
public Collection<LinkModel> findWorkflowLinkTemplatesByDecision(AbstractWorkflowDecisionModel decision) - Specified by:
findWorkflowLinkTemplatesByDecisionin interfaceWorkflowTemplateDao- Parameters:
decision- workflow decision which is the source of the link- Returns:
- collection of link models
-