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:
DraftsAndPublishedBlogPostsCannedQuery,GetArchivedNodesCannedQuery,GetAuthoritiesCannedQuery,GetBlogPostsCannedQuery,GetCalendarEntriesCannedQuery,GetChildrenAuditableCannedQuery,GetChildrenCannedQuery,GetChildrenWithTargetAssocsAuditableCannedQuery,GetDiscussionTopcisWithPostsCannedQuery,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
ConstructorsModifierConstructorDescriptionprotectedAbstractCannedQueryPermissions(org.alfresco.query.CannedQueryParameters parameters, MethodSecurityBean<R> methodSecurity) -
Method Summary
Modifier and TypeMethodDescriptionapplyPostQueryPermissions(List<R> results, int requestedCount) 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.protected booleanMethods inherited from class org.alfresco.query.AbstractCannedQuery
applyPostQueryPaging, applyPostQuerySorting, execute, getParameters, isApplyPostQueryPaging, isApplyPostQuerySorting, queryAndFilter, toString
-
Constructor Details
-
AbstractCannedQueryPermissions
protected AbstractCannedQueryPermissions(org.alfresco.query.CannedQueryParameters parameters, MethodSecurityBean<R> methodSecurity)
-
-
Method Details
-
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
- Overrides:
applyPostQueryPermissionsin classorg.alfresco.query.AbstractCannedQuery<R>
-
getTotalResultCount
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>
-