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, invokegetInterfaces, implementInterfacesOnObject, implementsInterface, isMethodOnIntroducedInterface, suppressInterfacepublic boolean isCutOff()
PermissionCheckedCollectionisCutOff in interface PermissionCheckedCollection<T>public int sizeUnchecked()
PermissionCheckedCollectionsizeUnchecked in interface PermissionCheckedCollection<T>public int sizeOriginal()
PermissionCheckedCollectionsizeOriginal 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 Collectioncollection - the Collection to proxycheckedSource - a collection that might implement PermissionCheckedCollectionCollection 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 CollectionTT - the type of the Collectioncollection - 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–2018 Alfresco Software. All rights reserved.