public static class PermissionCheckCollection.PermissionCheckCollectionMixin extends org.springframework.aop.support.DelegatingIntroductionInterceptor implements PermissionCheckCollection
PermissionCheckCollection interface to
existing collections.PermissionCheckCollection.PermissionCheckCollectionMixin| Modifier and Type | Method and Description |
|---|---|
static java.util.Collection |
create(java.util.Collection collection,
int targetResultCount,
long cutOffAfterTimeMs,
int cutOffAfterCount)
Helper method to create a
PermissionCheckCollection from an existing Collection |
int |
getCutOffAfterCount()
Get the maximum number of permission checks to perform before cutting the results off
|
long |
getCutOffAfterTimeMs()
Get the maximum time for permission checks to execute before cutting the results off.
|
int |
getTargetResultCount()
Get the desired number of results.
|
doProceed, invokegetInterfaces, implementInterfacesOnObject, implementsInterface, isMethodOnIntroducedInterface, suppressInterfacepublic int getTargetResultCount()
PermissionCheckCollectiongetTargetResultCount in interface PermissionCheckCollectionpublic long getCutOffAfterTimeMs()
PermissionCheckCollectiongetCutOffAfterTimeMs in interface PermissionCheckCollectionpublic int getCutOffAfterCount()
PermissionCheckCollectiongetCutOffAfterCount in interface PermissionCheckCollectionpublic static final java.util.Collection create(java.util.Collection collection,
int targetResultCount,
long cutOffAfterTimeMs,
int cutOffAfterCount)
PermissionCheckCollection from an existing Collectioncollection - the Collection to proxytargetResultCount - the desired number of results or default to the collection sizecutOffAfterTimeMs - the number of milliseconds to wait before cut-off or zero to use the system default
time-based cut-off.cutOffAfterCount - the number of permission checks to process before cut-off or zero to use the system default
count-based cut-off.Collection of the same type but including the
PermissionCheckCollection interfaceCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.