Interface Product
- All Superinterfaces:
BaseEntity
,Serializable
- All Known Implementing Classes:
ProductImpl
Properties visible via NetLicensing API:
number - Unique number that identifies the product. Vendor can assign this number when creating a product or let NetLicensing generate one. Read-only after creation of the first licensee for the product.
active - If set to false, the product is disabled. No new licensees can be registered for the product, existing licensees can not obtain new licenses.
name - Product name. Together with the version identifies the product for the end customer.
version - Product version. Convenience parameter, additional to the product name.
licenseeAutoCreate - If set to 'true', non-existing licensees will be created at first validation attempt.
description - Product description. Optional.
licensingInfo - Licensing information. Optional.
Arbitrary additional user properties of string type may be associated with each product. The name of user property must not be equal to any of the fixed property names listed above and must not be id.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addDiscount
(ProductDiscount discount) getName()
Deprecated.void
setDescription
(String description) void
setLicenseeAutoCreate
(Boolean licenseeAutoCreate) void
setLicensingInfo
(String licensingInfo) void
void
setVersion
(String version) Methods inherited from interface com.labs64.netlicensing.domain.entity.BaseEntity
addProperty, asMap, getActive, getNumber, getProperties, removeProperty, setActive, setNumber
-
Method Details
-
getName
String getName() -
setName
-
getVersion
String getVersion() -
setVersion
-
getLicenseeAutoCreate
Boolean getLicenseeAutoCreate() -
setLicenseeAutoCreate
-
getDescription
String getDescription() -
setDescription
-
getLicensingInfo
String getLicensingInfo() -
setLicensingInfo
-
getProductProperties
Deprecated. -
getProductModules
Collection<ProductModule> getProductModules() -
getLicensees
Collection<Licensee> getLicensees() -
getProductDiscounts
List<ProductDiscount> getProductDiscounts() -
addDiscount
-