public interface LicenseService
Modifier and Type | Method and Description |
---|---|
void |
checkFeature(String featureKey)
Sprawdza czy system posiada licencję dla funkcjonalności
featureKey |
boolean |
hasFeature(String featureKey)
Sprawdza czy system posiada licencję dla funkcjonalności
featureKey |
FeatureLicense |
loadFeatureLicense(org.springframework.core.io.Resource resource)
Ładuje licencję dla funkcjonalności systemu.
|
FeatureLicense loadFeatureLicense(org.springframework.core.io.Resource resource) throws Exception
resource
- Zasób z plikiem licencyjnym.Exception
void checkFeature(String featureKey) throws LicenseInvalidException
featureKey
featureKey
- Klucz funkcjonalnościLicenseInvalidException
- Wyjątek rzucany jeżeli w systemie nie ma licencji dla
funkcjonalnościboolean hasFeature(String featureKey)
featureKey
featureKey
- Klucz funkcjonalnościCopyright © 2019 Suncode. All rights reserved.