Package de.xima.fc.helper
Class WorkflowSearchTermHelper
- java.lang.Object
-
- de.xima.fc.helper.WorkflowSearchTermHelper
-
public final class WorkflowSearchTermHelper extends Object
-
-
Constructor Summary
Constructors Constructor Description WorkflowSearchTermHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
createEntitySearchTerm(de.xima.cmn.dao.interfaces.IEntity<Long> entity)
static String
createEntitySearchTerm(IUUIDEntity entity)
static String
createEntitySearchTerm(IEntityReference ref)
static String
createEntitySearchTerm(Class<?> entityClass)
static Map<String,List<String>>
createEntitySearchTerms(IEntityReference reference)
static Map<String,List<String>>
createEntitySearchTerms(Iterable<? extends IEntityReference> references)
static Map<String,List<String>>
createEntitySearchTerms(String searchTermName, IEntityReference reference)
static Map<String,List<String>>
createEntitySearchTerms(String searchTermName, Iterable<? extends IEntityReference> references)
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.static de.xima.cmn.criteria.FilterCriterion
createFilterForSearchTermExists(Class<? extends AWorkflowElementSearchTerm<?>> searchTermClass, String key, String value)
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.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.static Map<String,List<String>>
createSearchTerms(String searchTermName, String searchTermValue)
static List<String>
createUuidEntitySearchTerms(Iterable<? extends IEntityReference> references)
static void
doPutEntitySearchTerm(Map<String,List<String>> searchTerms, IMultiFileProviding multiFile)
static void
doPutEntitySearchTerm(Map<String,List<String>> searchTerms, ISingleFileProviding singleFile)
static void
doPutEntitySearchTerm(Map<String,List<String>> searchTerms, IEntityReference value)
static void
doPutEntitySearchTerms(Map<String,List<String>> searchTerms, Iterable<? extends IEntityReference> references)
static Map<String,List<String>>
extractDefaultSearchTerms(IExtractSearchTermsParams<?> params)
static de.xima.cmn.criteria.FilterCriterion
getDefaultFilterCriteriaForEntities(Class<? extends AWorkflowElementSearchTerm<?>> searchTermClass, de.xima.cmn.dao.interfaces.IEntity<Long> entity)
-
-
-
Method Detail
-
createEntitySearchTerm
public static String createEntitySearchTerm(de.xima.cmn.dao.interfaces.IEntity<Long> entity)
-
createEntitySearchTerm
public static String createEntitySearchTerm(IEntityReference ref)
-
createEntitySearchTerm
public static String createEntitySearchTerm(IUUIDEntity entity)
-
createEntitySearchTerms
public static Map<String,List<String>> createEntitySearchTerms(IEntityReference reference)
-
createEntitySearchTerms
public static Map<String,List<String>> createEntitySearchTerms(Iterable<? extends IEntityReference> references)
-
createEntitySearchTerms
public static Map<String,List<String>> createEntitySearchTerms(String searchTermName, IEntityReference reference)
-
createEntitySearchTerms
public static Map<String,List<String>> createEntitySearchTerms(String searchTermName, Iterable<? extends IEntityReference> references)
-
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.
-
createFilterForSearchTermExists
public static de.xima.cmn.criteria.FilterCriterion createFilterForSearchTermExists(Class<? extends AWorkflowElementSearchTerm<?>> searchTermClass, String key, String value)
-
createSearchTerms
public static Map<String,List<String>> createSearchTerms(String searchTermName, String searchTermValue)
-
createUuidEntitySearchTerms
public static List<String> createUuidEntitySearchTerms(Iterable<? extends IEntityReference> references)
-
doPutEntitySearchTerm
public static void doPutEntitySearchTerm(Map<String,List<String>> searchTerms, IEntityReference value)
-
doPutEntitySearchTerm
public static void doPutEntitySearchTerm(Map<String,List<String>> searchTerms, IMultiFileProviding multiFile)
-
doPutEntitySearchTerm
public static void doPutEntitySearchTerm(Map<String,List<String>> searchTerms, ISingleFileProviding singleFile)
-
doPutEntitySearchTerms
public static void doPutEntitySearchTerms(Map<String,List<String>> searchTerms, Iterable<? extends IEntityReference> references)
-
extractDefaultSearchTerms
public static Map<String,List<String>> extractDefaultSearchTerms(IExtractSearchTermsParams<?> params)
-
getDefaultFilterCriteriaForEntities
public static de.xima.cmn.criteria.FilterCriterion getDefaultFilterCriteriaForEntities(Class<? extends AWorkflowElementSearchTerm<?>> searchTermClass, de.xima.cmn.dao.interfaces.IEntity<Long> entity)
-
-