Class EnterpriseLicenseServiceImpl
java.lang.Object
net.datenwerke.rs.license.service.LicenseServiceImpl
net.datenwerke.rsenterprise.license.service.EnterpriseLicenseServiceImpl
- All Implemented Interfaces:
LicenseService
-
Field Summary
Fields inherited from class net.datenwerke.rs.license.service.LicenseServiceImpl
EVALUATION_LICENSE -
Constructor Summary
ConstructorsConstructorDescriptionEnterpriseLicenseServiceImpl(PropertiesService propertiesService, ReportService reportService, PbeService pbeService, <any> configDirServiceProvider, <any> servletContextProvider) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanbooleanbooleanvoidupdateLicense(String license) voidUpdates the license by loading it from the appropriate directory.Methods inherited from class net.datenwerke.rs.license.service.LicenseServiceImpl
checkInit, getInstallationDate, getRsVersion, getServerId, isInitialized
-
Constructor Details
-
EnterpriseLicenseServiceImpl
public EnterpriseLicenseServiceImpl(PropertiesService propertiesService, ReportService reportService, PbeService pbeService, <any> configDirServiceProvider, <any> servletContextProvider)
-
-
Method Details
-
isEnterprise
public boolean isEnterprise()- Specified by:
isEnterprisein interfaceLicenseService- Overrides:
isEnterprisein classLicenseServiceImpl
-
isEvaluation
public boolean isEvaluation()- Specified by:
isEvaluationin interfaceLicenseService- Overrides:
isEvaluationin classLicenseServiceImpl
-
hasNonCommunityLicense
public boolean hasNonCommunityLicense()- Specified by:
hasNonCommunityLicensein interfaceLicenseService- Overrides:
hasNonCommunityLicensein classLicenseServiceImpl
-
getLicenseName
- Specified by:
getLicenseNamein interfaceLicenseService- Overrides:
getLicenseNamein classLicenseServiceImpl
-
getLicenseType
- Specified by:
getLicenseTypein interfaceLicenseService- Overrides:
getLicenseTypein classLicenseServiceImpl
-
isCustomLicenseType
public boolean isCustomLicenseType()- Specified by:
isCustomLicenseTypein interfaceLicenseService- Overrides:
isCustomLicenseTypein classLicenseServiceImpl
-
getLicenseIssueDate
- Specified by:
getLicenseIssueDatein interfaceLicenseService- Overrides:
getLicenseIssueDatein classLicenseServiceImpl
-
getLicenseExpirationDate
- Specified by:
getLicenseExpirationDatein interfaceLicenseService- Overrides:
getLicenseExpirationDatein classLicenseServiceImpl
-
getUpgradesUntil
- Specified by:
getUpgradesUntilin interfaceLicenseService- Overrides:
getUpgradesUntilin classLicenseServiceImpl
-
getAdditionalLicenseProperties
- Specified by:
getAdditionalLicensePropertiesin interfaceLicenseService- Overrides:
getAdditionalLicensePropertiesin classLicenseServiceImpl
-
updateLicense
- Specified by:
updateLicensein interfaceLicenseService- Overrides:
updateLicensein classLicenseServiceImpl- 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- Overrides:
updateLicenseFromDirin classLicenseServiceImpl- Throws:
LicenseValidationFailedException- if the license validation fails
-