org.alfresco.repo.security.permissions.impl.acegi
Class AbstractCannedQueryPermissions
java.lang.Object
org.alfresco.query.AbstractCannedQuery
org.alfresco.repo.security.permissions.impl.acegi.AbstractCannedQueryPermissions
- All Implemented Interfaces:
- org.alfresco.query.CannedQuery
- Direct Known Subclasses:
- DraftsAndPublishedBlogPostsCannedQuery, GetAuthoritiesCannedQuery, GetBlogPostsCannedQuery, GetCalendarEntriesCannedQuery, GetChildrenAuditableCannedQuery, GetChildrenCannedQuery, GetChildrenWithTargetAssocsAuditableCannedQuery, GetDiscussionTopcisWithPostsCannedQuery
public abstract class AbstractCannedQueryPermissions
- extends org.alfresco.query.AbstractCannedQuery
Basic support for canned query implementations - permission check
- Since:
- 4.0
Method Summary |
protected java.util.List |
applyPostQueryPermissions(java.util.List results,
int requestedCount)
|
protected org.alfresco.util.Pair |
getTotalResultCount(java.util.List 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()
By default, the is a permission checking class. |
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 |
AbstractCannedQueryPermissions
protected AbstractCannedQueryPermissions(org.alfresco.query.CannedQueryParameters parameters,
MethodSecurityBean methodSecurity)
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
- Returns:
- true always
applyPostQueryPermissions
protected java.util.List applyPostQueryPermissions(java.util.List results,
int requestedCount)
- Overrides:
applyPostQueryPermissions
in class org.alfresco.query.AbstractCannedQuery
getTotalResultCount
protected org.alfresco.util.Pair getTotalResultCount(java.util.List 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
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.