Class DefaultCMSWorkflowDao

    • Constructor Detail

      • DefaultCMSWorkflowDao

        public DefaultCMSWorkflowDao()
    • Method Detail

      • findAllWorkflowsByAttachedItems

        public java.util.List<WorkflowModel> findAllWorkflowsByAttachedItems​(java.util.List<? extends CMSItemModel> items,
                                                                             java.util.Set<CronJobStatus> statuses)
        Description copied from interface: CMSWorkflowDao
        This method finds all the WorkflowModel, with the specified workflow statuses, to which the given items are attached to. If the items are not attached to any workflow for the given statuses, the list will be empty.
        Specified by:
        findAllWorkflowsByAttachedItems in interface CMSWorkflowDao
        Parameters:
        items - - the CMS Items for which to find the workflows they are attached to.
        statuses - - the workflow statuses used to filter the result
        Returns:
        the list of WorkflowModel to which the given pages are attached to; never null.
      • buildFindWorkflowsByAttachedItemsQuery

        protected java.lang.String buildFindWorkflowsByAttachedItemsQuery​(java.util.List<? extends CMSItemModel> items,
                                                                          java.util.Set<CronJobStatus> statuses,
                                                                          java.util.Map<java.lang.String,​java.lang.Object> queryParameters)
        Builds the query string to search for workflows containing the given CMS items and matching the provided workflow statuses.
        Parameters:
        items - - the CMS Items for which to find the workflows they are attached to.
        statuses - - the workflow statuses used to filter the result
        queryParameters - - the query parameter values to be applied to the query
        Returns:
        the query string