| Modifier and Type | Field and Description |
|---|---|
protected EntitlementType |
EntitlementExceededException.entitlementType
The entitlement that was being validated.
|
protected EntitlementType |
UnsupportedEntitlementException.entitlementType
The requested entitlement.
|
| Modifier and Type | Method and Description |
|---|---|
EntitlementType |
EntitlementExceededException.getEntitlementType() |
EntitlementType |
UnsupportedEntitlementException.getEntitlementType() |
| Modifier and Type | Method and Description |
|---|---|
void |
UnsupportedEntitlementException.setEntitlementType(EntitlementType entitlementType) |
| Constructor and Description |
|---|
EntitlementExceededException(Module module,
EntitlementType entitlementType,
Number entitlementValue,
Number currentValue) |
UnsupportedEntitlementException(Module module,
EntitlementType entitlementType) |
| Modifier and Type | Field and Description |
|---|---|
protected EntitlementType |
Entitlement.type |
| Modifier and Type | Method and Description |
|---|---|
EntitlementType |
Entitlement.getType() |
static EntitlementType |
EntitlementType.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EntitlementType[] |
EntitlementType.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Entitlement.setType(EntitlementType type) |
| Modifier and Type | Method and Description |
|---|---|
List<EntitlementType> |
EntitlementUsageProvider.getSupportedEntitlements() |
| Modifier and Type | Method and Description |
|---|---|
int |
EntitlementUsageProvider.doGetEntitlementUsage(EntitlementType type)
Performs the module specific operations to get the current value of the given entitlement
|
default int |
EntitlementUsageProvider.getEntitlementUsage(EntitlementType type)
Returns the current usage for a given entitlement type in the current module
|
| Modifier and Type | Method and Description |
|---|---|
default void |
EntitlementValidator.validateEntitlement(EntitlementType entitlementType,
int newAmount)
Checks that an entitlement is below the value indicated in the configuration file.
|
Copyright © 2022 CrafterCMS. All rights reserved.