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, invoke
getInterfaces, implementInterfacesOnObject, implementsInterface, isMethodOnIntroducedInterface, suppressInterface
public int getTargetResultCount()
PermissionCheckCollection
getTargetResultCount
in interface PermissionCheckCollection<T>
public long getCutOffAfterTimeMs()
PermissionCheckCollection
getCutOffAfterTimeMs
in interface PermissionCheckCollection<T>
public int getCutOffAfterCount()
PermissionCheckCollection
getCutOffAfterCount
in interface PermissionCheckCollection<T>
public static final <TT> Collection<TT> create(Collection<TT> collection, int targetResultCount, long cutOffAfterTimeMs, int cutOffAfterCount)
PermissionCheckCollection
from an existing Collection
TT
- the type of the Collection
collection
- 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–2017 Alfresco Software. All rights reserved.