public interface EntitlementUsageProvider
| Modifier and Type | Method and Description |
|---|---|
int |
doGetEntitlementUsage(EntitlementType type)
Performs the module specific operations to get the current value of the given entitlement
|
default List<Entitlement> |
getCurrentUsage()
Provides a list holding the current values for all entitlements supported by the current module.
|
default int |
getEntitlementUsage(EntitlementType type)
Returns the current usage for a given entitlement type in the current module
|
Module |
getModule()
Identifies the current module running.
|
List<EntitlementType> |
getSupportedEntitlements() |
List<EntitlementType> getSupportedEntitlements()
default int getEntitlementUsage(EntitlementType type)
type - the entitlement to checkint doGetEntitlementUsage(EntitlementType type) throws Exception
type - the entitlement to checkExceptiondefault List<Entitlement> getCurrentUsage()
Copyright © 2022 CrafterCMS. All rights reserved.