public interface CachedDataManager
PermissionHolder.
All calls will account for inheritance, as well as any default data provided by the platform. This calls are heavily cached and are therefore fast.
| Modifier and Type | Interface and Description |
|---|---|
static interface |
CachedDataManager.Container<T extends CachedData>
Manages a specific type of
cached data within
a CachedDataManager instance. |
| Modifier and Type | Method and Description |
|---|---|
@NonNull CachedMetaData |
getMetaData(@NonNull QueryOptions queryOptions)
Gets MetaData from the cache, given a specified context.
|
@NonNull CachedPermissionData |
getPermissionData(@NonNull QueryOptions queryOptions)
Gets PermissionData from the cache, given a specified context.
|
void |
invalidate()
Invalidates all cached
CachedPermissionData and CachedMetaData
instances. |
void |
invalidatePermissionCalculators()
Invalidates all of the underlying Permission calculators.
|
@NonNull CachedDataManager.Container<CachedMetaData> |
metaData()
Gets the manager for
CachedMetaData. |
@NonNull CachedDataManager.Container<CachedPermissionData> |
permissionData()
Gets the manager for
CachedPermissionData. |
@NonNull CachedDataManager.Container<CachedPermissionData> permissionData()
CachedPermissionData.@NonNull CachedDataManager.Container<CachedMetaData> metaData()
CachedMetaData.@NonNull CachedPermissionData getPermissionData(@NonNull QueryOptions queryOptions)
queryOptions - the query optionsNullPointerException - if contexts is null@NonNull CachedMetaData getMetaData(@NonNull QueryOptions queryOptions)
queryOptions - the query optionsNullPointerException - if contexts is nullvoid invalidate()
CachedPermissionData and CachedMetaData
instances.void invalidatePermissionCalculators()
Can be called to allow for an update in defaults.