Interface EntitlementUsageProvider
-
public interface EntitlementUsageProvider
Defines the operations to support entitlement usage data in a module. Each module must provide an implementation of this interface.- Author:
- joseross
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description int
doGetEntitlementUsage(EntitlementType type)
Performs the module specific operations to get the current value of the given entitlementdefault 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 moduleModule
getModule()
Identifies the current module running.List<EntitlementType>
getSupportedEntitlements()
-
-
-
Method Detail
-
getSupportedEntitlements
List<EntitlementType> getSupportedEntitlements()
-
getEntitlementUsage
default int getEntitlementUsage(EntitlementType type)
Returns the current usage for a given entitlement type in the current module- Parameters:
type
- the entitlement to check- Returns:
- the current usage
-
doGetEntitlementUsage
int doGetEntitlementUsage(EntitlementType type) throws Exception
Performs the module specific operations to get the current value of the given entitlement- Parameters:
type
- the entitlement to check- Returns:
- the current usage
- Throws:
Exception
-
getCurrentUsage
default List<Entitlement> getCurrentUsage()
Provides a list holding the current values for all entitlements supported by the current module.- Returns:
- the entitlement list
-
-