public final class OrderLicense extends Object
Modifier and Type | Class and Description |
---|---|
static class |
OrderLicense.OrderLicenseBuilder |
Modifier and Type | Method and Description |
---|---|
static OrderLicense.OrderLicenseBuilder |
builder() |
boolean |
equals(Object o) |
String |
getConsumptionPeriod()
Period after which the consumptions are reset to 0.
|
Integer |
getFloatingUsers()
How many floating users can use this.
|
String |
getKey()
License key, use the generateLicenseKeys method on LicenseSpringManager to generate unique
keys.
|
LicenseType |
getLicenseType()
Type of license - value can be either trial, perpetual, consumption or time-limited
|
String |
getMaintenanceDuration()
duration of license maintenance period - value examples: 1y (one year) or 2m (2 months) or 3d
(3 days).
|
Integer |
getMaxActivations()
Maximum times the license can be activated on different devices (default is 1)
|
Integer |
getMaxConsumptions()
Maximum consumptions of the license for CONSUMPTION type of licenses.
|
Integer |
getMaxOverages()
Maximum amount of overages over the max consumption limit.
|
List<Feature> |
getProductFeatures()
List of available features assigned to this license.
|
List<UserBasedLicense> |
getUsers()
User fields for which the license is being generated.
|
String |
getValidDuration()
Duration is used for time-limited licenses.
|
ZonedDateTime |
getValidityPeriod()
Final end date and time license is valid.
|
int |
hashCode() |
boolean |
isAllowOverages()
Allows for overages for CONSUMPTION type of license, allowing more consumptions than
maxConsumptions.
|
boolean |
isEnableMaintenancePeriod()
Whether license should consider maintenance duration, used in pair with maintenance_duration
|
boolean |
isFloating()
Whether or not this license is of floating type.
|
boolean |
isFloatingCloud()
Whether or not this license is of floating type.
|
boolean |
isPreventVm()
Prevent license activation on VM environments for the license.
|
boolean |
isResetConsumption()
Consumptions can be auto-reset on a period by setting this field with the consumptionPeriod
defined.
|
boolean |
isTrial()
Trial licenses are temporary licenses which have validity duration defined on the global level
(product) or on the validityPeriod field.
|
String |
toString() |
public static OrderLicense.OrderLicenseBuilder builder()
public List<UserBasedLicense> getUsers()
public String getKey()
public Integer getMaxActivations()
public String getValidDuration()
public boolean isEnableMaintenancePeriod()
public String getMaintenanceDuration()
public LicenseType getLicenseType()
public ZonedDateTime getValidityPeriod()
public List<Feature> getProductFeatures()
public boolean isTrial()
public Integer getMaxConsumptions()
public boolean isAllowOverages()
public Integer getMaxOverages()
public boolean isResetConsumption()
public String getConsumptionPeriod()
public boolean isPreventVm()
public boolean isFloating()
isFloatingCloud
has to be false if
this field is set.public boolean isFloatingCloud()
isFloating
has to be false if this
field is set.public Integer getFloatingUsers()
Copyright © 2025 Cense Data Inc.. All rights reserved.