Interface EntitlementValidator
- All Known Implementing Classes:
DefaultEntitlementValidatorImpl
public interface EntitlementValidator
Defines the operations to perform entitlement validations.
- Author:
- joseross
-
Method Summary
Modifier and TypeMethodDescriptiondefault longProvides the client id of the current validator.Provides a general description of the current validator.default longgetId()Provides the id of the current validator.default StringProvides the build of the containing JAR file.default StringProvides the version of the containing JAR file.default StringProvides the version of the current validator.default voidvalidateEntitlement(EntitlementType entitlementType, int newAmount) Checks that an entitlement is below the value indicated in the configuration file.
-
Method Details
-
validateEntitlement
default void validateEntitlement(EntitlementType entitlementType, int newAmount) throws EntitlementException Checks that an entitlement is below the value indicated in the configuration file.- Parameters:
entitlementType- entitlement to be validatednewAmount- amount of items to be created- Throws:
EntitlementException- if the validation fails
-
getId
default long getId()Provides the id of the current validator.- Returns:
- id of the validator
-
getClientId
default long getClientId()Provides the client id of the current validator.- Returns:
- if of the client
-
getVersion
Provides the version of the current validator.- Returns:
- the version
-
getDescription
String getDescription()Provides a general description of the current validator.- Returns:
- validator description
-
getPackageVersion
Provides the version of the containing JAR file.- Returns:
- the version
-
getPackageBuild
Provides the build of the containing JAR file.- Returns:
- the build
-