Class LicenseServiceImpl
java.lang.Object
net.datenwerke.rs.license.service.LicenseServiceImpl
- All Implemented Interfaces:
LicenseService
- Direct Known Subclasses:
EnterpriseLicenseServiceImpl
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionLicenseServiceImpl(PropertiesService propertiesService, ReportService reportService, PbeService pbeService) -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanbooleanbooleanbooleanbooleanvoidupdateLicense(String license) voidUpdates the license by loading it from the appropriate directory.
-
Field Details
-
EVALUATION_LICENSE
- See Also:
-
-
Constructor Details
-
LicenseServiceImpl
public LicenseServiceImpl(PropertiesService propertiesService, ReportService reportService, PbeService pbeService)
-
-
Method Details
-
checkInit
public void checkInit()- Specified by:
checkInitin interfaceLicenseService
-
isInitialized
public boolean isInitialized()- Specified by:
isInitializedin interfaceLicenseService
-
getInstallationDate
- Specified by:
getInstallationDatein interfaceLicenseService
-
getServerId
- Specified by:
getServerIdin interfaceLicenseService
-
getLicenseType
- Specified by:
getLicenseTypein interfaceLicenseService
-
isCustomLicenseType
public boolean isCustomLicenseType()- Specified by:
isCustomLicenseTypein interfaceLicenseService
-
getLicenseName
- Specified by:
getLicenseNamein interfaceLicenseService
-
getAdditionalLicenseProperties
- Specified by:
getAdditionalLicensePropertiesin interfaceLicenseService
-
getLicenseExpirationDate
- Specified by:
getLicenseExpirationDatein interfaceLicenseService
-
getUpgradesUntil
- Specified by:
getUpgradesUntilin interfaceLicenseService
-
getLicenseIssueDate
- Specified by:
getLicenseIssueDatein interfaceLicenseService
-
updateLicense
- Specified by:
updateLicensein interfaceLicenseService- Throws:
LicenseValidationFailedException
-
updateLicenseFromDir
Description copied from interface:LicenseServiceUpdates the license by loading it from the appropriate directory.If an external configuration directory is enabled (as determined by
ConfigDirService.isEnabled()), the license file is loaded directly from that path. Otherwise, it is loaded from theWEB-INF/classesdirectory.The license file must be named exactly as specified in the email, including the server ID in the file name.
- Specified by:
updateLicenseFromDirin interfaceLicenseService- Throws:
LicenseValidationFailedException- if the license validation fails
-
isEnterprise
public boolean isEnterprise()- Specified by:
isEnterprisein interfaceLicenseService
-
isEvaluation
public boolean isEvaluation()- Specified by:
isEvaluationin interfaceLicenseService
-
hasNonCommunityLicense
public boolean hasNonCommunityLicense()- Specified by:
hasNonCommunityLicensein interfaceLicenseService
-
getRsVersion
- Specified by:
getRsVersionin interfaceLicenseService
-