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 1000 results in a to-many path. If 1000 results are exceeded, the related entities must be requested with their own request with proper paging params. 1000 is also the max value we allow for the _limit parameter in our REST API (which is why we chose this value here too).
      See Also:
  • Constructor Details

  • Method Details

    • setEvaluatePermissions

      public void setEvaluatePermissions(boolean evaluatePermissions)
    • isEvaluatePermissions

      public boolean isEvaluatePermissions()
    • createEntityBeanListFactory

      public EntityBeanListFactory createEntityBeanListFactory()