Interface License
-
- All Superinterfaces:
BaseEntity
,Serializable
- All Known Implementing Classes:
LicenseImpl
public interface License extends BaseEntity
License entity used internally by NetLicensing.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
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description Currency
getCurrency()
Boolean
getHidden()
Licensee
getLicensee()
Map<String,String>
getLicenseProperties()
Deprecated.LicenseTemplate
getLicenseTemplate()
String
getName()
BigDecimal
getPrice()
void
setCurrency(Currency currency)
void
setHidden(Boolean hidden)
void
setLicensee(Licensee licensee)
void
setLicenseTemplate(LicenseTemplate licenseTemplate)
void
setName(String name)
void
setPrice(BigDecimal price)
-
Methods inherited from interface com.labs64.netlicensing.domain.entity.BaseEntity
addProperty, asRequestForm, getActive, getNumber, getProperties, removeProperty, setActive, setNumber
-
-
-
-
Method Detail
-
getName
String getName()
-
setName
void setName(String name)
-
getPrice
BigDecimal getPrice()
-
setPrice
void setPrice(BigDecimal price)
-
getCurrency
Currency getCurrency()
-
setCurrency
void setCurrency(Currency currency)
-
getHidden
Boolean getHidden()
-
setHidden
void setHidden(Boolean hidden)
-
getLicenseProperties
@Deprecated Map<String,String> getLicenseProperties()
Deprecated.
-
getLicensee
Licensee getLicensee()
-
setLicensee
void setLicensee(Licensee licensee)
-
getLicenseTemplate
LicenseTemplate getLicenseTemplate()
-
setLicenseTemplate
void setLicenseTemplate(LicenseTemplate licenseTemplate)
-
-