Class AbstractCannedQueryPermissions<R>

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.util.List<R> applyPostQueryPermissions​(java.util.List<R> results, int requestedCount)  
      protected org.alfresco.util.Pair<java.lang.Integer,​java.lang.Integer> getTotalResultCount​(java.util.List<R> results)
      Overrides the default implementation to check for the permission data that will allow a good guess as to the maximum number of results in the event of a permission-based cut-off.
      protected boolean isApplyPostQueryPermissions()
      • Methods inherited from class org.alfresco.query.AbstractCannedQuery

        applyPostQueryPaging, applyPostQuerySorting, execute, getParameters, isApplyPostQueryPaging, isApplyPostQuerySorting, queryAndFilter, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • AbstractCannedQueryPermissions

        protected AbstractCannedQueryPermissions​(org.alfresco.query.CannedQueryParameters parameters,
                                                 MethodSecurityBean<R> methodSecurity)
    • Method Detail

      • isApplyPostQueryPermissions

        protected boolean isApplyPostQueryPermissions()

        By default, the is a permission checking class. Override the method if you wish to switch the behaviour at runtime.

        Overrides:
        isApplyPostQueryPermissions in class org.alfresco.query.AbstractCannedQuery<R>
        Returns:
        true always
      • applyPostQueryPermissions

        protected java.util.List<R> applyPostQueryPermissions​(java.util.List<R> results,
                                                              int requestedCount)
        Overrides:
        applyPostQueryPermissions in class org.alfresco.query.AbstractCannedQuery<R>
      • getTotalResultCount

        protected org.alfresco.util.Pair<java.lang.Integer,​java.lang.Integer> getTotalResultCount​(java.util.List<R> results)
        Overrides the default implementation to check for the permission data that will allow a good guess as to the maximum number of results in the event of a permission-based cut-off.
        Overrides:
        getTotalResultCount in class org.alfresco.query.AbstractCannedQuery<R>