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 TypeMethodDescriptionint
Returns maximum available number of CaaS slots.Returns expiration date of license.boolean
isFeatureLicensed
(String featureCode) Returnstrue
if a feature code is licensed,false
otherwise.boolean
isModuleLicensed
(String moduleName) Returnstrue
if a module is licensed,false
otherwise.
-
Method Details
-
isModuleLicensed
Returnstrue
if a module is licensed,false
otherwise.- Parameters:
moduleName
- The name of the module- Returns:
- True if this module is licensed
- Since:
- 4.2.200
-
isFeatureLicensed
Returnstrue
if a feature code is licensed,false
otherwise.- 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. Returns0
for unlimited slots and-1
if CaaS is not licensed.- Returns:
- positive number of CaaS slots,
0
for unlimited slots and-1
if CaaS is not licensed. - Since:
- 5.2.180703
-