Class WorkflowSearchTermHelper


  • public final class WorkflowSearchTermHelper
    extends Object
    • Constructor Detail

      • WorkflowSearchTermHelper

        public WorkflowSearchTermHelper()
    • Method Detail

      • createEntitySearchTerm

        public static String createEntitySearchTerm​(Class<?> entityClass)
      • createEntitySearchTerm

        public static String createEntitySearchTerm​(de.xima.cmn.dao.interfaces.IEntity<Long> entity)
      • createEntitySearchTerm

        public static String createEntitySearchTerm​(IUUIDEntity entity)
      • createFilterForSearchTermNotExists

        public static de.xima.cmn.criteria.FilterCriterion createFilterForSearchTermNotExists​(Class<? extends AWorkflowElementSearchTerm<?>> searchTermClass,
                                                                                              String key,
                                                                                              de.xima.cmn.criteria.FilterCriterion... moreFilters)
        Creates a filter that checks that a search term with a given key does not exist.
        Parameters:
        searchTermClass - The search term class.
        key - The key of the search term to check.
        moreFilters - Additional filters for the search term to include in the check (combined with a logical AND).
        Returns:
        The filter criterion.
      • createFilterForSearchTermNotExists

        public static de.xima.cmn.criteria.FilterCriterion createFilterForSearchTermNotExists​(Class<? extends AWorkflowElementSearchTerm<?>> searchTermClass,
                                                                                              String key,
                                                                                              String value)
        Creates a filter that checks that a search term with a given key and value does not exist.
        Parameters:
        searchTermClass - The search term class.
        key - The key of the search term to check.
        value - The value the search must not have.
        Returns:
        The filter criterion.
      • createFilterForSearchTermExists

        public static de.xima.cmn.criteria.FilterCriterion createFilterForSearchTermExists​(Class<? extends AWorkflowElementSearchTerm<?>> searchTermClass,
                                                                                           String key,
                                                                                           de.xima.cmn.criteria.FilterCriterion... moreFilters)
        Creates a filter that checks that a search term with a given key does exist.
        Parameters:
        searchTermClass - The search term class.
        key - The key of the search term to check.
        moreFilters - Additional filters for the search term to include in the check (combined with a logical AND).
        Returns:
        The filter criterion.
      • getDefaultFilterCriteriaForEntities

        public static de.xima.cmn.criteria.FilterCriterion getDefaultFilterCriteriaForEntities​(Class<? extends AWorkflowElementSearchTerm<?>> searchTermClass,
                                                                                               de.xima.cmn.dao.interfaces.IEntity<Long> entity)