Package com.xebialabs.license.service
Class ResourceRegistrationLicenseService
java.lang.Object
com.xebialabs.license.service.BaseLicenseService
com.xebialabs.license.service.AbstractResourceLicenseService
com.xebialabs.license.service.ResourceRegistrationLicenseService
- All Implemented Interfaces:
com.xebialabs.license.service.LicenseService
public class ResourceRegistrationLicenseService
extends AbstractResourceLicenseService
implements com.xebialabs.license.service.LicenseService
This service have to be used in the case when you want to allow to run the server without any license
and redirect the user to the registration form.
-
Field Summary
Fields inherited from class com.xebialabs.license.service.AbstractResourceLicenseService
allowedEditions, allowedLicenseTypes, clock, license, licenseResource, log, product, repositoryMetadataServiceFields inherited from class com.xebialabs.license.service.BaseLicenseService
ciCounter, ciCounterFactory -
Constructor Summary
ConstructorsConstructorDescriptionResourceRegistrationLicenseService(com.xebialabs.deployit.io.ConfigurationResource licenseResource, String product, com.xebialabs.deployit.repository.RepositoryMetadataService repositoryMetadataService) -
Method Summary
Modifier and TypeMethodDescriptionprotected com.xebialabs.license.LicensereadLicense(com.xebialabs.deployit.io.ConfigurationResource licenseResource) Methods inherited from class com.xebialabs.license.service.AbstractResourceLicenseService
getLicense, getProduct, getValidPeriod, initialize, isAllowedLicenseType, isLicenseExpired, isValidEdition, logLicenseEditionError, logLicenseError, logLicenseVersionError, reload, validate, validate, validateLicensePropertiesMethods inherited from class com.xebialabs.license.service.BaseLicenseService
getCounter, initialize, reLoadCiCounter, rollbackTransaction, startTransactionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.xebialabs.license.service.LicenseService
getCounter, getLicense, getProduct, getValidPeriod, initialize, isLicenseExpired, reload, rollbackTransaction, startTransaction, validate, validate
-
Constructor Details
-
ResourceRegistrationLicenseService
public ResourceRegistrationLicenseService(com.xebialabs.deployit.io.ConfigurationResource licenseResource, String product, com.xebialabs.deployit.repository.RepositoryMetadataService repositoryMetadataService) throws com.xebialabs.license.LicenseParseException, com.xebialabs.license.LicenseViolationException, IOException - Throws:
com.xebialabs.license.LicenseParseExceptioncom.xebialabs.license.LicenseViolationExceptionIOException
-
-
Method Details
-
readLicense
protected com.xebialabs.license.License readLicense(com.xebialabs.deployit.io.ConfigurationResource licenseResource) throws com.xebialabs.license.LicenseParseException, com.xebialabs.license.LicenseViolationException - Specified by:
readLicensein classAbstractResourceLicenseService- Throws:
com.xebialabs.license.LicenseParseExceptioncom.xebialabs.license.LicenseViolationException
-