Class AbstractCannedQueryPermissions<R>
- java.lang.Object
-
- org.alfresco.query.AbstractCannedQuery<R>
-
- org.alfresco.repo.security.permissions.impl.acegi.AbstractCannedQueryPermissions<R>
-
- All Implemented Interfaces:
org.alfresco.query.CannedQuery<R>
- Direct Known Subclasses:
GetArchivedNodesCannedQuery,GetAuthoritiesCannedQuery,GetCalendarEntriesCannedQuery,GetChildrenAuditableCannedQuery,GetChildrenCannedQuery,GetChildrenWithTargetAssocsAuditableCannedQuery,GetDownloadsCannedQuery,GetNodesWithAspectCannedQuery,SiteContainersCannedQuery
public abstract class AbstractCannedQueryPermissions<R> extends org.alfresco.query.AbstractCannedQuery<R>Basic support for canned query implementations - permission check- Since:
- 4.0
- Author:
- janv
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractCannedQueryPermissions(org.alfresco.query.CannedQueryParameters parameters, MethodSecurityBean<R> methodSecurity)
-
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 booleanisApplyPostQueryPermissions()
-
-
-
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:
isApplyPostQueryPermissionsin classorg.alfresco.query.AbstractCannedQuery<R>- Returns:
- true always
-
applyPostQueryPermissions
protected java.util.List<R> applyPostQueryPermissions(java.util.List<R> results, int requestedCount)
- Overrides:
applyPostQueryPermissionsin classorg.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:
getTotalResultCountin classorg.alfresco.query.AbstractCannedQuery<R>
-
-