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

public class PathSearchRequest extends AbstractSearchRequest
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.
  • Field Details

    • TO_MANY_RESULT_LIMIT

      public static final int TO_MANY_RESULT_LIMIT
      Resolving 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

  • Method Details

    • setEvaluatePermissions

      public void setEvaluatePermissions(boolean evaluatePermissions)
    • isEvaluatePermissions

      public boolean isEvaluatePermissions()
    • createEntityBeanListFactory

      public EntityBeanListFactory createEntityBeanListFactory()