Interface ISearchTermHandler
- All Known Subinterfaces:
IExtractSearchTermsParams<Model>, IGetFilterCriteriaForEntitiesParams, IGetFilterCriteriaForObjectsParams, ITriggerFilterCriteriaForEventParams
- All Known Implementing Classes:
ExtractSearchTermsParams, FilterCriteriaForEventParams, GetFilterCriteriaForEntitiesParams, GetFilterCriteriaForObjectsParams
public interface ISearchTermHandler
Provides basic convenience methods for working with search terms of workflow elements. These methods are optional,
but make sure you keep to the default conventions.
- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
-
Method Summary
Modifier and TypeMethodDescriptiondefault StringentitySearchTerm(de.xima.cmn.dao.interfaces.IEntity<Long> entity) Deprecated.default StringentitySearchTerm(IEntityReference reference) Deprecated.default StringentitySearchTerm(Class<? extends IUUIDEntity> entityClass) Deprecated.entitySearchTerms(IEntityReference reference) Deprecated.entitySearchTerms(Iterable<? extends IEntityReference> references) Deprecated.entitySearchTerms(String searchTermName, IEntityReference reference) Deprecated.entitySearchTerms(String searchTermName, Iterable<? extends IEntityReference> references) Deprecated.idList(Iterable<? extends IObjectReference> references) default de.xima.cmn.criteria.FilterCriterionnodeSearchTermExists(String key, de.xima.cmn.criteria.FilterCriterion... moreFilters) default de.xima.cmn.criteria.FilterCriterionnodeSearchTermExists(String key, String value) default de.xima.cmn.criteria.FilterCriterionnodeSearchTermNotExists(String key, de.xima.cmn.criteria.FilterCriterion... moreFilters) default de.xima.cmn.criteria.FilterCriterionnodeSearchTermNotExists(String key, String value) default StringobjectSearchTerm(IObjectReference reference) Helper method for the default search term name used to store references to objects.objectSearchTerms(IObjectReference reference) Helper method for the default search term name used to store references to objects.objectSearchTerms(Iterable<? extends IObjectReference> references) Helper method for the default search term name used to store references to objects.objectSearchTerms(String searchTermName, IObjectReference reference) Helper method for the default search term name used to store references to objects.objectSearchTerms(String searchTermName, Iterable<? extends IObjectReference> references) Helper method for the default search term name used to store references to objects.default voidputEntitySearchTerm(Map<String, List<String>> searchTerms, IMultiFileProviding multiFile) Helper method that adds the search term for the referenced entities to the given map.default voidputEntitySearchTerm(Map<String, List<String>> searchTerms, ISingleFileProviding singleFile) Helper method that adds the search term for the referenced entities to the given map.default voidputEntitySearchTerm(Map<String, List<String>> searchTerms, IEntityReference reference) Deprecated.default voidputEntitySearchTerms(Map<String, List<String>> searchTerms, Iterable<? extends IEntityReference> references) Deprecated.default voidputObjectSearchTerm(Map<String, List<String>> searchTerms, IObjectReference reference) Helper method that adds the search term for a referenced object to the given map.default voidputObjectSearchTerms(Map<String, List<String>> searchTerms, Iterable<? extends IObjectReference> references) Helper method that adds the search terms for a referenced objects to the given map.searchTerms(String searchTermName, String searchTermValue) default de.xima.cmn.criteria.FilterCriteriontriggerSearchTermExists(String key, de.xima.cmn.criteria.FilterCriterion... moreFilters) default de.xima.cmn.criteria.FilterCriteriontriggerSearchTermExists(String key, String value) default de.xima.cmn.criteria.FilterCriteriontriggerSearchTermNotExists(String key, de.xima.cmn.criteria.FilterCriterion... moreFilters) default de.xima.cmn.criteria.FilterCriteriontriggerSearchTermNotExists(String key, String value) uuidList(Iterable<? extends IEntityReference> references) Deprecated.UseidList(Iterable).
-
Method Details
-
entitySearchTerm
Deprecated.Helper method for the default search term name used to store references to entities.- Parameters:
entityClass- Type of the referenced entity.- Returns:
- The name of the search term for an entity reference of the given type.
-
entitySearchTerm
Deprecated.Helper method for the default search term name used to store references to entities.- Parameters:
entity- Referenced entity.- Returns:
- The name of the search term for an entity reference for the given entity.
-
entitySearchTerm
Deprecated.Helper method for the default search term name used to store references to entities.- Parameters:
reference- Referenced entity.- Returns:
- The name of the search term for the given entity reference.
-
entitySearchTerms
Deprecated.Helper method for the default search term name used to store references to entities.- Parameters:
reference- Referenced entity.- Returns:
- A new modifiable map prefilled with the search term form the given entity reference.
-
entitySearchTerms
@Deprecated default Map<String, List<String>> entitySearchTerms(Iterable<? extends IEntityReference> references) Deprecated.Helper method for the default search term name used to store references to entities.- Parameters:
references- Referenced entities.- Returns:
- A new modifiable map prefilled with the search terms form the given entity references.
-
entitySearchTerms
@Deprecated default Map<String, List<String>> entitySearchTerms(String searchTermName, IEntityReference reference) Deprecated.Helper method for the default search term name used to store references to entities.- Parameters:
searchTermName- Custom name for the search term.reference- Referenced entity name.- Returns:
- A new modifiable map prefilled with the search term for the given entity reference.
-
entitySearchTerms
@Deprecated default Map<String, List<String>> entitySearchTerms(String searchTermName, Iterable<? extends IEntityReference> references) Deprecated.Helper method for the default search term name used to store references to entities.- Parameters:
searchTermName- Custom name for the search term.references- Referenced entities.- Returns:
- A new modifiable map prefilled with the search terms form the given entity references.
-
idList
- Parameters:
references- Object references to process.- Returns:
- A list of stringified IDs of the given object references.
-
nodeSearchTermExists
default de.xima.cmn.criteria.FilterCriterion nodeSearchTermExists(String key, de.xima.cmn.criteria.FilterCriterion... moreFilters) - Parameters:
key- Key to match.moreFilters- Additional filters to chain viaANDto the created filter. The filters must be relative to the node search term entity.- Returns:
- A new filter criterion for checking whether a node search term with the given key exists.
-
nodeSearchTermExists
-
nodeSearchTermNotExists
default de.xima.cmn.criteria.FilterCriterion nodeSearchTermNotExists(String key, de.xima.cmn.criteria.FilterCriterion... moreFilters) - Parameters:
key- Key to match.moreFilters- Additional filters to chain viaANDto the created filter. The filters must be relative to the node search term entity.- Returns:
- A new filter criterion for checking whether no node search term with the given key exists.
-
nodeSearchTermNotExists
-
objectSearchTerm
Helper method for the default search term name used to store references to objects.- Parameters:
reference- Referenced object.- Returns:
- The name of the search term for the given object reference.
-
objectSearchTerms
Helper method for the default search term name used to store references to objects.- Parameters:
reference- Referenced object.- Returns:
- A new modifiable map prefilled with the search term form the given object reference.
-
objectSearchTerms
default Map<String, List<String>> objectSearchTerms(Iterable<? extends IObjectReference> references) Helper method for the default search term name used to store references to objects.- Parameters:
references- Referenced objects.- Returns:
- A new modifiable map prefilled with the search terms form the given object references.
-
objectSearchTerms
default Map<String, List<String>> objectSearchTerms(String searchTermName, IObjectReference reference) Helper method for the default search term name used to store references to objects.- Parameters:
searchTermName- Custom name for the search term.reference- Referenced object name.- Returns:
- A new modifiable map prefilled with the search term for the given object reference.
-
objectSearchTerms
default Map<String, List<String>> objectSearchTerms(String searchTermName, Iterable<? extends IObjectReference> references) Helper method for the default search term name used to store references to objects.- Parameters:
searchTermName- Custom name for the search term.references- Referenced objects.- Returns:
- A new modifiable map prefilled with the search terms form the given objects references.
-
putEntitySearchTerm
@Deprecated default void putEntitySearchTerm(Map<String, List<String>> searchTerms, IEntityReference reference) Deprecated.Helper method that adds the search term for a referenced entity to the given map.- Parameters:
searchTerms- Map of search terms to modify.reference- Referenced entity.
-
putEntitySearchTerm
default void putEntitySearchTerm(Map<String, List<String>> searchTerms, IMultiFileProviding multiFile) Helper method that adds the search term for the referenced entities to the given map.- Parameters:
searchTerms- Map of search terms to modify.multiFile- Multi file with referenced entities.
-
putEntitySearchTerm
default void putEntitySearchTerm(Map<String, List<String>> searchTerms, ISingleFileProviding singleFile) Helper method that adds the search term for the referenced entities to the given map.- Parameters:
searchTerms- Map of search terms to modify.singleFile- Single file with referenced entities.
-
putEntitySearchTerms
@Deprecated default void putEntitySearchTerms(Map<String, List<String>> searchTerms, Iterable<? extends IEntityReference> references) Deprecated.Helper method that adds the search terms for a referenced entities to the given map.- Parameters:
searchTerms- Map of search terms to modify.references- Referenced entities.
-
putObjectSearchTerm
Helper method that adds the search term for a referenced object to the given map.- Parameters:
searchTerms- Map of search terms to modify.reference- Referenced object.
-
putObjectSearchTerms
-
searchTerms
-
triggerSearchTermExists
default de.xima.cmn.criteria.FilterCriterion triggerSearchTermExists(String key, de.xima.cmn.criteria.FilterCriterion... moreFilters) - Parameters:
key- Key to match.moreFilters- Additional filters to chain viaANDto the created filter. The filters must be relative to the trigger search term entity.- Returns:
- A new filter criterion for checking whether a trigger search term with the given key exists.
-
triggerSearchTermExists
-
triggerSearchTermNotExists
default de.xima.cmn.criteria.FilterCriterion triggerSearchTermNotExists(String key, de.xima.cmn.criteria.FilterCriterion... moreFilters) - Parameters:
key- Key to match.moreFilters- Additional filters to chain viaANDto the created filter. The filters must be relative to the trigger search term entity.- Returns:
- A new filter criterion for checking whether no trigger search term with the given key exists.
-
triggerSearchTermNotExists
-
uuidList
Deprecated.UseidList(Iterable).- Parameters:
references- Entity references to process.- Returns:
- A list of stringified UUIDs of the given entity references.
-
objectSearchTerm(IObjectReference).