Package de.espirit.firstspirit.license
Interface LicenseService
public interface LicenseService
Service for accessing license features and modules.
May be requested via
SpecialistsBroker:final LicenseService licenseService = SpecialistsBroker.requireSpecialist(SpecialistType).getService(LicenseService.class);- Since:
- 4.2.200
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionintReturns maximum available number of CaaS slots.Returns expiration date of license.booleanisFeatureLicensed(String featureCode) Returnstrueif a feature code is licensed,falseotherwise.booleanisModuleLicensed(String moduleName) Returnstrueif a module is licensed,falseotherwise.
-
Method Details
-
isModuleLicensed
Returnstrueif a module is licensed,falseotherwise.- Parameters:
moduleName- The name of the module- Returns:
- True if this module is licensed
- Since:
- 4.2.200
-
isFeatureLicensed
Returnstrueif a feature code is licensed,falseotherwise.- Parameters:
featureCode- The feature code- Returns:
- True is this feature code is licensed
- Since:
- 4.2.200
-
getLicenseExpirationDate
Returns expiration date of license. May be empty if no license-file exists (server will be shut down within 1 hour).- Returns:
- the date of expiration, or empty if no license-file exists.
- Since:
- 5.2.180703
-
getCaasSlots
int getCaasSlots()Returns maximum available number of CaaS slots. Returns0for unlimited slots and-1if CaaS is not licensed.- Returns:
- positive number of CaaS slots,
0for unlimited slots and-1if CaaS is not licensed. - Since:
- 5.2.180703
-