public interface EntitlementValidator
| Modifier and Type | Method and Description |
|---|---|
long |
getClientId()
Provides the client id of the current validator.
|
String |
getDescription()
Provides a general description of the current validator.
|
long |
getId()
Provides the id of the current validator.
|
String |
getPackageBuild()
Provides the build of the containing JAR file.
|
String |
getPackageVersion()
Provides the version of the containing JAR file.
|
String |
getVersion()
Provides the version of the current validator.
|
void |
validateEntitlement(Module module,
EntitlementType entitlementType,
int currentValue,
int newAmount)
Checks that an entitlement is below the value indicated in the configuration file.
|
void validateEntitlement(Module module, EntitlementType entitlementType, int currentValue, int newAmount) throws EntitlementException
module - module requesting the validationentitlementType - entitlement to be validatedcurrentValue - current value provided by the modulenewAmount - amount of items to be createdEntitlementException - if the validation failslong getId()
long getClientId()
String getVersion()
String getDescription()
String getPackageVersion()
String getPackageBuild()
Copyright © 2019 CrafterCMS. All rights reserved.