public class HybrisLicenceValidator
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
DEMO_LICENCE_DAYS |
| Constructor and Description |
|---|
HybrisLicenceValidator() |
| Modifier and Type | Method and Description |
|---|---|
ValidationResult |
checkLicence(Licence licence)
Checks whether passed licence file is valid.
|
java.lang.Integer |
getDaysLeft(Licence licence,
HybrisDataSource dataSource)
This method returns number of days left for licence if it is develop/demo licence, otherwise null.
|
protected HybrisLicenceCrypto |
getHybrisCrypto() |
protected HybrisLicenceDAO |
getHybrisLicenceDAO() |
boolean |
isLicenceExpiredIfDemoLicence(Licence licence,
HybrisDataSource dataSource)
This method checks whether demo/develop has expired.
|
public static final int DEMO_LICENCE_DAYS
public ValidationResult checkLicence(Licence licence) throws java.lang.IllegalStateException, java.lang.NullPointerException
licence - to checkjava.lang.IllegalStateException - in case of validation failure, exception message contains reason of validation failurejava.lang.NullPointerException - when passed licence parameter is nullprotected HybrisLicenceCrypto getHybrisCrypto()
public boolean isLicenceExpiredIfDemoLicence(Licence licence, HybrisDataSource dataSource)
licence - to checkpublic java.lang.Integer getDaysLeft(Licence licence, HybrisDataSource dataSource)
licence - to checkprotected HybrisLicenceDAO getHybrisLicenceDAO()
Copyright © 2018 SAP SE. All Rights Reserved.