Interface PermissionCheckedCollection<T>
-
- All Known Implementing Classes:
PermissionCheckedCollection.PermissionCheckedCollectionMixin
public interface PermissionCheckedCollection<T>Interface for collection-based results that carry extra information about the state of permission cut-offs.- Since:
- 4.0
- Author:
- Derek Hulley
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classPermissionCheckedCollection.PermissionCheckedCollectionMixin<T>Helper 'introduction' to allow simple addition of thePermissionCheckedCollectioninterface to existing collections.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanisCutOff()Check if the results have been truncated by permission check limits.intsizeOriginal()Get the number of objects in the original (unfiltered) collection.intsizeUnchecked()Get the number of objects in the original (unfiltered) collection that did not have any permission checks.
-
-
-
Method Detail
-
isCutOff
boolean isCutOff()
Check if the results have been truncated by permission check limits.- Returns:
- true - if the results (usually a collection) have been cut off by permission check limits
-
sizeUnchecked
int sizeUnchecked()
Get the number of objects in the original (unfiltered) collection that did not have any permission checks.- Returns:
- number of entries from the original collection that were not checked
-
sizeOriginal
int sizeOriginal()
Get the number of objects in the original (unfiltered) collection.- Returns:
- number of entries in the original, pre-checked collection
-
-