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(EntitlementType entitlementType,
int newAmount)
Checks that an entitlement is below the value indicated in the configuration file.
|
default void validateEntitlement(EntitlementType entitlementType, int newAmount) throws EntitlementException
entitlementType - entitlement to be validatednewAmount - 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 © 2023 CrafterCMS. All rights reserved.