Package org.cyclos.impl.system
Interface LicenseHandler
-
- All Known Subinterfaces:
LicenseHandlerImplementor
- All Known Implementing Classes:
LicenseHandlerImpl
public interface LicenseHandlerContains methods to handle the Cyclos license
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidactivate(org.cyclos.license.api.model.LicenseActivationParameters params)Activates a license for this Cyclos instancevoidcheckNewVouchers(int count)Checks whether the given number of vouchers can be activated, returning normally if so, or throwing aValidationExceptionotherwisevoidcheckUserRegistration()Checks whether a new user can be created, returning normally if so, or throwing aValidationExceptionotherwiseorg.cyclos.license.api.model.LicenseDetailsgetDetails()Returns the current license detailsbooleanisSet()Returns whether there's a license set in this cyclos instancevoidreportInconsistentBalance(BalanceInconsistencyParameters params)Reports a balance inconsistency to the license servervoidreportInconsistentDbSchema(DbSchemaInconsistencyParameters params)Reports a database schema inconsistency to the license server
-
-
-
Method Detail
-
activate
void activate(org.cyclos.license.api.model.LicenseActivationParameters params) throws LicenseServerOfflineException, LicenseAuthenticationExceptionActivates a license for this Cyclos instance
-
checkNewVouchers
void checkNewVouchers(int count)
Checks whether the given number of vouchers can be activated, returning normally if so, or throwing aValidationExceptionotherwise
-
checkUserRegistration
void checkUserRegistration()
Checks whether a new user can be created, returning normally if so, or throwing aValidationExceptionotherwise
-
getDetails
org.cyclos.license.api.model.LicenseDetails getDetails()
Returns the current license details
-
isSet
boolean isSet()
Returns whether there's a license set in this cyclos instance
-
reportInconsistentBalance
void reportInconsistentBalance(BalanceInconsistencyParameters params) throws LicenseServerOfflineException
Reports a balance inconsistency to the license server- Throws:
LicenseServerOfflineException
-
reportInconsistentDbSchema
void reportInconsistentDbSchema(DbSchemaInconsistencyParameters params) throws LicenseServerOfflineException
Reports a database schema inconsistency to the license server- Throws:
LicenseServerOfflineException
-
-