Package com.xebialabs.license.service
Class RegistrationLicenseService
- java.lang.Object
-
- com.xebialabs.license.service.BaseLicenseService
-
- com.xebialabs.license.service.AbstractLicenseService
-
- com.xebialabs.license.service.RegistrationLicenseService
-
- All Implemented Interfaces:
com.xebialabs.license.service.LicenseService
public class RegistrationLicenseService extends AbstractLicenseService 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.AbstractLicenseService
allowedEditions, allowedLicenseTypes, clock, license, licenseFile, log, product, repositoryMetadataService
-
Fields inherited from class com.xebialabs.license.service.BaseLicenseService
ciCounter, ciCounterFactory
-
-
Constructor Summary
Constructors Constructor Description RegistrationLicenseService(java.lang.String licensePath, java.lang.String product, com.xebialabs.deployit.repository.RepositoryMetadataService repositoryMetadataService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected com.xebialabs.license.LicensereadLicense(java.io.File licenseFile)-
Methods inherited from class com.xebialabs.license.service.AbstractLicenseService
getLicense, getProduct, getValidPeriod, initialize, isAllowedLicenseType, isLicenseExpired, isValidEdition, logLicenseEditionError, logLicenseError, logLicenseVersionError, reload, validate, validate, validateLicenseProperties
-
Methods inherited from class com.xebialabs.license.service.BaseLicenseService
getCounter, initialize, reLoadCiCounter, rollbackTransaction, startTransaction
-
-
-
-
Constructor Detail
-
RegistrationLicenseService
public RegistrationLicenseService(java.lang.String licensePath, java.lang.String product, com.xebialabs.deployit.repository.RepositoryMetadataService repositoryMetadataService) throws com.xebialabs.license.LicenseParseException, com.xebialabs.license.LicenseViolationException- Throws:
com.xebialabs.license.LicenseParseExceptioncom.xebialabs.license.LicenseViolationException
-
-
Method Detail
-
readLicense
protected com.xebialabs.license.License readLicense(java.io.File licenseFile) throws com.xebialabs.license.LicenseParseException, com.xebialabs.license.LicenseViolationException- Specified by:
readLicensein classAbstractLicenseService- Throws:
com.xebialabs.license.LicenseParseExceptioncom.xebialabs.license.LicenseViolationException
-
-