Interface License
- All Superinterfaces:
BaseEntity
,Serializable
- All Known Implementing Classes:
LicenseImpl
Properties visible via NetLicensing API:
number - Unique number (across all products/licensees of a vendor) that identifies the license. Vendor can assign this number when creating a license or let NetLicensing generate one. Read-only after corresponding creation transaction status is set to closed.
name - Name for the licensed item. Set from license template on creation, if not specified explicitly.
active - If set to false, the license is disabled. License can be re-enabled, but as long as it is disabled, the license is excluded from the validation process.
price - price for the license. If more than 0, it must always be accompanied by the currency specification. Read-only, set from license template on creation.
currency - specifies currency for the license price. Check data types to discover which currencies are supported. Read-only, set from license template on creation.
hidden - If set to true, this license is not shown in NetLicensing Shop as purchased license. Set from license template on creation, if not specified explicitly.
Arbitrary additional user properties of string type may be associated with each license. The name of user property
must not be equal to any of the fixed property names listed above and must be none of id, licenseeNumber,
licenseTemplateNumber. See Property
for details.
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated.getName()
getPrice()
void
setCurrency
(Currency currency) void
void
setLicensee
(Licensee licensee) void
setLicenseTemplate
(LicenseTemplate licenseTemplate) void
void
setPrice
(BigDecimal price) Methods inherited from interface com.labs64.netlicensing.domain.entity.BaseEntity
addProperty, asMap, getActive, getNumber, getProperties, removeProperty, setActive, setNumber
-
Method Details
-
getName
String getName() -
setName
-
getPrice
BigDecimal getPrice() -
setPrice
-
getCurrency
Currency getCurrency() -
setCurrency
-
getHidden
Boolean getHidden() -
setHidden
-
getLicenseProperties
Deprecated. -
getLicensee
Licensee getLicensee() -
setLicensee
-
getLicenseTemplate
LicenseTemplate getLicenseTemplate() -
setLicenseTemplate
-