Interface LicenseTemplate
- All Superinterfaces:
BaseEntity,Serializable
- All Known Implementing Classes:
LicenseTemplateImpl
Properties visible via NetLicensing API:
number - Unique number (across all products of a vendor) that identifies the license template. Vendor can assign this number when creating a license template or let NetLicensing generate one. Read-only after creation of the first license from this license template.
active - If set to false, the license template is disabled. Licensee can not obtain any new licenses off this license template.
name - Name for the licensed item.
licenseType - type of licenses created from this license template. Supported types: "FEATURE", "TIMEVOLUME", "FLOATING", "QUANTITY".
price - price for the license. If more than 0, it must always be accompanied by the currency specification.
currency - specifies currency for the license price. Check data types to discover which currencies are supported.
automatic - If set to true, every new licensee automatically gets one license out of this license template on creation. Automatic licenses must have their price set to 0.
hidden - If set to true, this license template is not shown in NetLicensing Shop as offered for purchase.
hideLicenses - If set to true, licenses from this license template are not visible to the end customer, but participate in validation.
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated.getName()getPrice()voidsetAutomatic(Boolean automatic) voidsetCurrency(Currency currency) voidvoidsetHideLicenses(Boolean hideLicenses) voidsetLicenseType(LicenseType licenseType) voidvoidsetPrice(BigDecimal price) voidsetProductModule(ProductModule productModule) Methods inherited from interface com.labs64.netlicensing.domain.entity.BaseEntity
addProperty, asMap, getActive, getNumber, getProperties, removeProperty, setActive, setNumber
-
Method Details
-
getName
String getName() -
setName
-
getLicenseType
LicenseType getLicenseType() -
setLicenseType
-
getPrice
BigDecimal getPrice() -
setPrice
-
getCurrency
Currency getCurrency() -
setCurrency
-
getAutomatic
Boolean getAutomatic() -
setAutomatic
-
getHidden
Boolean getHidden() -
setHidden
-
getHideLicenses
Boolean getHideLicenses() -
setHideLicenses
-
getLicenseTemplateProperties
Deprecated. -
getProductModule
ProductModule getProductModule() -
setProductModule
-
getLicenses
Collection<License> getLicenses()
-