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 instancevoidcheckUserRegistration()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 server
-
-
-
Method Detail
-
activate
void activate(org.cyclos.license.api.model.LicenseActivationParameters params) throws LicenseServerOfflineException, LicenseAuthenticationExceptionActivates a license for this Cyclos instance
-
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
-
-