T
- the type of the Collection
in usepublic static class PermissionCheckedCollection.PermissionCheckedCollectionMixin<T> extends org.springframework.aop.support.DelegatingIntroductionInterceptor implements PermissionCheckedCollection<T>
PermissionCheckedCollection
interface to
existing collections.PermissionCheckedCollection.PermissionCheckedCollectionMixin<T>
Modifier and Type | Method and Description |
---|---|
static <TT> Collection<TT> |
create(Collection<TT> collection,
boolean isCutOff,
int sizeUnchecked,
int sizeOriginal)
Helper method to create a
PermissionCheckedCollection from an existing Collection |
static <TT> Collection<TT> |
create(Collection<TT> collection,
Collection<?> checkedSource)
Helper method to create a
PermissionCheckedCollection from an existing Collection
by applying the same values as present on a potentially permission-checked source. |
boolean |
isCutOff()
Check if the results have been truncated by permission check limits.
|
int |
sizeOriginal()
Get the number of objects in the original (unfiltered) collection.
|
int |
sizeUnchecked()
Get the number of objects in the original (unfiltered) collection that did
not have any permission checks.
|
doProceed, invoke
getInterfaces, implementInterfacesOnObject, implementsInterface, isMethodOnIntroducedInterface, suppressInterface
public boolean isCutOff()
PermissionCheckedCollection
isCutOff
in interface PermissionCheckedCollection<T>
public int sizeUnchecked()
PermissionCheckedCollection
sizeUnchecked
in interface PermissionCheckedCollection<T>
public int sizeOriginal()
PermissionCheckedCollection
sizeOriginal
in interface PermissionCheckedCollection<T>
public static final <TT> Collection<TT> create(Collection<TT> collection, Collection<?> checkedSource)
PermissionCheckedCollection
from an existing Collection
by applying the same values as present on a potentially permission-checked source. If the
existing checked source is NOT permission-checked, then the collection will not be
decorated.TT
- the type of the Collection
collection
- the Collection
to proxycheckedSource
- a collection that might implement PermissionCheckedCollection
Collection
of the same type but including the
PermissionCheckedCollection
interfacepublic static final <TT> Collection<TT> create(Collection<TT> collection, boolean isCutOff, int sizeUnchecked, int sizeOriginal)
PermissionCheckedCollection
from an existing Collection
TT
- the type of the Collection
collection
- the Collection
to proxyisCutOff
- true if permission checking was cut off before completionsizeUnchecked
- number of entries from the original collection that were not checkedsizeOriginal
- number of entries in the original, pre-checked collectionCollection
of the same type but including the
PermissionCheckedCollection
interfaceCopyright © 2005–2017 Alfresco Software. All rights reserved.