T - the type of the Collection in usepublic static class PermissionCheckCollection.PermissionCheckCollectionMixin<T> extends org.springframework.aop.support.DelegatingIntroductionInterceptor implements PermissionCheckCollection<T>
PermissionCheckCollection interface to
existing collections.PermissionCheckCollection.PermissionCheckCollectionMixin<T>| Modifier and Type | Method and Description |
|---|---|
static <TT> Collection<TT> |
create(Collection<TT> 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 PermissionCheckCollection<T>public long getCutOffAfterTimeMs()
PermissionCheckCollectiongetCutOffAfterTimeMs in interface PermissionCheckCollection<T>public int getCutOffAfterCount()
PermissionCheckCollectiongetCutOffAfterCount in interface PermissionCheckCollection<T>public static final <TT> Collection<TT> create(Collection<TT> collection, int targetResultCount, long cutOffAfterTimeMs, int cutOffAfterCount)
PermissionCheckCollection from an existing CollectionTT - the type of the 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–2018 Alfresco Software. All rights reserved.