public interface EntitlementValidator
| Modifier and Type | Method and Description |
|---|---|
default long |
getClientId()
Provides the client id of the current validator.
|
String |
getDescription()
Provides a general description of the current validator.
|
default long |
getId()
Provides the id of the current validator.
|
default String |
getPackageBuild()
Provides the build of the containing JAR file.
|
default String |
getPackageVersion()
Provides the version of the containing JAR file.
|
default String |
getVersion()
Provides the version of the current validator.
|
default void |
validateEntitlement(Module module,
EntitlementType entitlementType,
int currentValue,
int newAmount)
Checks that an entitlement is below the value indicated in the configuration file.
|
default 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 failsdefault long getId()
default long getClientId()
default String getVersion()
String getDescription()
default String getPackageVersion()
default String getPackageBuild()
Copyright © 2019 CrafterCMS. All rights reserved.