Interface LicenseDetails
-
- All Superinterfaces:
java.io.Serializable
- All Known Subinterfaces:
ModuleLicense
- All Known Implementing Classes:
LicenseDetailsImpl
public interface LicenseDetails extends java.io.Serializable
Represents the licensing details for a specific module
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
DETAIL_KEY_EDITION
Common keyname for edition detailsstatic java.lang.String
DETAIL_KEY_EXPIRATION
Common keyname for an expiration date restrictionstatic java.lang.String
DETAIL_KEY_MIN_BUILD
Common keyname for a minimum build-number restrictionstatic java.lang.String
REDUNDANT_BACKUP
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default boolean
checkFlag(java.lang.String key)
default java.util.Optional<java.util.Date>
getExpirationDate()
java.lang.String
getLicenseDetail(java.lang.String key)
The value of the LicenseRestriction with the given name.java.util.List<LicenseRestriction>
getLicenseDetails()
Returns all of the license details as a listjava.lang.String
getModuleId()
Get the module id this license applies to.int
getVersion()
The major version number that this license is good fordefault boolean
isPlatformDetails()
-
-
-
Field Detail
-
DETAIL_KEY_EXPIRATION
static final java.lang.String DETAIL_KEY_EXPIRATION
Common keyname for an expiration date restriction- See Also:
- Constant Field Values
-
DETAIL_KEY_MIN_BUILD
static final java.lang.String DETAIL_KEY_MIN_BUILD
Common keyname for a minimum build-number restriction- See Also:
- Constant Field Values
-
DETAIL_KEY_EDITION
static final java.lang.String DETAIL_KEY_EDITION
Common keyname for edition details- See Also:
- Constant Field Values
-
REDUNDANT_BACKUP
static final java.lang.String REDUNDANT_BACKUP
- See Also:
- Constant Field Values
-
-
Method Detail
-
getVersion
int getVersion()
The major version number that this license is good for
-
getLicenseDetail
@Nullable java.lang.String getLicenseDetail(java.lang.String key)
The value of the LicenseRestriction with the given name.- Returns:
- null if no license restriction with name==key is found.
-
getLicenseDetails
java.util.List<LicenseRestriction> getLicenseDetails()
Returns all of the license details as a list
-
getModuleId
java.lang.String getModuleId()
Get the module id this license applies to.- Returns:
- the module id this license applies to.
-
isPlatformDetails
default boolean isPlatformDetails()
-
checkFlag
default boolean checkFlag(java.lang.String key)
-
getExpirationDate
default java.util.Optional<java.util.Date> getExpirationDate()
-
-