public static class PermissionCheckedCollection.PermissionCheckedCollectionMixin extends org.springframework.aop.support.DelegatingIntroductionInterceptor implements PermissionCheckedCollection
PermissionCheckedCollection interface to
existing collections.PermissionCheckedCollection.PermissionCheckedCollectionMixin| Modifier and Type | Method and Description |
|---|---|
static java.util.Collection |
create(java.util.Collection collection,
boolean isCutOff,
int sizeUnchecked,
int sizeOriginal)
Helper method to create a
PermissionCheckedCollection from an existing Collection |
static java.util.Collection |
create(java.util.Collection collection,
java.util.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()
PermissionCheckedCollection#isFiltered() is true.isCutOff in interface PermissionCheckedCollectionpublic int sizeUnchecked()
PermissionCheckedCollectionsizeUnchecked in interface PermissionCheckedCollectionpublic int sizeOriginal()
PermissionCheckedCollectionsizeOriginal in interface PermissionCheckedCollectionpublic static final java.util.Collection create(java.util.Collection collection,
java.util.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.collection - the Collection to proxycheckedSource - a collection that might implement PermissionCheckedCollectionCollection of the same type but including the
PermissionCheckedCollection interfacepublic static final java.util.Collection create(java.util.Collection collection,
boolean isCutOff,
int sizeUnchecked,
int sizeOriginal)
PermissionCheckedCollection from an existing 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 - 2010 Alfresco Software, Inc. All Rights Reserved.