Class AbstractCannedQueryPermissions<R>

    • 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 List<R> applyPostQueryPermissions​(List<R> results,
                                                    int requestedCount)
        Overrides:
        applyPostQueryPermissions in class org.alfresco.query.AbstractCannedQuery<R>
      • getTotalResultCount

        protected org.alfresco.util.Pair<Integer,​Integer> getTotalResultCount​(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>