Interface InternalSearchService
- All Known Implementing Classes:
InternalSearchServiceImpl
public interface InternalSearchService
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
static class
-
Method Summary
Modifier and TypeMethodDescriptionvoid
applyDefaultOrdering
(Query qu, @Nullable InternalSearchService.OrderItem[] order, String entityName, @Nullable FormIdentifier formIdentifier) Applies the given order if any (usingapplyOrderItems(Query, OrderItem[], String, FormIdentifier)
, otherwise sorts by last mod if the entity supports it, otherwise by default entity sorting rule.void
applyOrderItems
(Query query, @Nullable InternalSearchService.OrderItem[] order, String entityName, @Nullable FormIdentifier formIdentifier) For convenience, iforder
isnull
this method just returns.createSearchQuery
(SearchRequest request) createSearchQueryString
(SearchRequest request) getEntityList
(String entityName, String[] pks, @Nullable InternalSearchService.OrderItem[] order, SearchService.SearchParameters searchParameters) Loads an EntityList based on a list of PKs.queryForRelation
(String entityName, RelatedToInfo relatedTo, @Nullable InternalSearchService.OrderItem[] order)
-
Method Details
-
applyOrderItems
void applyOrderItems(Query query, @Nullable @Nullable InternalSearchService.OrderItem[] order, String entityName, @Nullable @Nullable FormIdentifier formIdentifier) throws PersistException For convenience, iforder
isnull
this method just returns. If not, the order items are applied to the query.- Throws:
PersistException
-
createSearchQueryString
String createSearchQueryString(SearchRequest request) throws RpcExecutionException, PersistException -
createSearchQuery
-
applyDefaultOrdering
void applyDefaultOrdering(Query qu, @Nullable @Nullable InternalSearchService.OrderItem[] order, String entityName, @Nullable @Nullable FormIdentifier formIdentifier) throws PersistException Applies the given order if any (usingapplyOrderItems(Query, OrderItem[], String, FormIdentifier)
, otherwise sorts by last mod if the entity supports it, otherwise by default entity sorting rule.- Throws:
PersistException
-
getEntityList
EntityListResult getEntityList(String entityName, String[] pks, @Nullable @Nullable InternalSearchService.OrderItem[] order, SearchService.SearchParameters searchParameters) Loads an EntityList based on a list of PKs.- Parameters:
pks
- May be empty.- Returns:
- The entities are ordered the same way as the pks.
-
queryForRelation
RelationQuery queryForRelation(String entityName, RelatedToInfo relatedTo, @Nullable @Nullable InternalSearchService.OrderItem[] order) throws PersistException - Throws:
PersistException
-