Class PathSearchRequest
java.lang.Object
ch.tocco.nice2.rest.entity.spi.search.AbstractSearchRequest
ch.tocco.nice2.rest.entity.impl.search.PathSearchRequest
- All Implemented Interfaces:
SearchRequest
An implementation of
SearchRequest
that uses a CustomSelection to resolve the _paths directly
using the CriteriaQueryBuilder
instead of using Entity.resolve(String)
.
This strategy is much more efficient.-
Nested Class Summary
Nested classes/interfaces inherited from class ch.tocco.nice2.rest.entity.spi.search.AbstractSearchRequest
AbstractSearchRequest.AbstractBuilder
Nested classes/interfaces inherited from interface ch.tocco.nice2.rest.entity.spi.search.SearchRequest
SearchRequest.Base
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Resolving huge to-many relations can lead to OOMs. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
void
setEvaluatePermissions
(boolean evaluatePermissions) Methods inherited from class ch.tocco.nice2.rest.entity.spi.search.AbstractSearchRequest
addAdditionalCondition, getAdditionalConditions, getBase, getLimit, getOffset, getPaths, getQueryParameters, getSort, isAllKeys, setAllKeys, setBase, setLimit, setOffset, setPaths, setSort
-
Field Details
-
TO_MANY_RESULT_LIMIT
public static final int TO_MANY_RESULT_LIMITResolving huge to-many relations can lead to OOMs. Therefore, we allow only up to 5000 results in a to-many path. If 5000 results are exceeded, the related entities must be requested with their own request with proper paging params. Note: the max value we allow for the _limit parameter in our REST API is 1000.- See Also:
-
-
Constructor Details
-
PathSearchRequest
-
-
Method Details
-
setEvaluatePermissions
public void setEvaluatePermissions(boolean evaluatePermissions) -
isEvaluatePermissions
public boolean isEvaluatePermissions() -
createEntityBeanListFactory
-