public final class BackOfficeLicense extends Object
Constructor and Description |
---|
BackOfficeLicense(Long id,
String status,
Integer floatingInUseDevices,
BackOfficeCustomer customer,
List<BackOfficeLicenseFeature> productFeatures,
LicenseUser[] licenseUsers,
LicenseUser licenseUser,
String orderStoreId,
int activeUpToDateDevices,
int totalActiveDevices,
BackOfficeLicenseProduct product,
ZonedDateTime createdAt,
ZonedDateTime updatedAt,
String licenseKey,
Boolean active,
Boolean enabled,
ZonedDateTime timeActivated,
ZonedDateTime timeDisabled,
Integer maxActivations,
Integer timesActivated,
String validDuration,
String validityPeriod,
com.licensespring.model.LicenseType licenseType,
Boolean enableMaintenancePeriod,
String maintenanceDuration,
String maintenancePeriod,
Boolean isTrial,
Integer maxConsumptions,
Integer totalConsumptions,
String subscriptionId,
ZonedDateTime lastCheck,
Boolean preventVm,
Boolean allowOverages,
Integer maxOverages,
Boolean resetConsumption,
String consumptionPeriod,
Integer trialDays,
Boolean isFloating,
Boolean isFloatingCloud,
Integer floatingUsers,
String note,
Integer maxLicenseUsers,
Long order,
Long orderItem,
Integer disabledUser) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
Boolean |
getActive()
Whether or not the license is actively being used.
|
int |
getActiveUpToDateDevices()
Total number of devices that are currently using this license.
|
Boolean |
getAllowOverages()
Should the SDKs and server allow consumption over max consumption parameter.
|
String |
getConsumptionPeriod()
The
resetConsumption parameter must be set
Example values: week, month or year
The field is only relevant for the LicenseType.CONSUMPTION |
ZonedDateTime |
getCreatedAt()
When the license was created.
|
BackOfficeCustomer |
getCustomer()
Customer model whom ordered the license.
|
Integer |
getDisabledUser()
Id of the user that disabled the license.
|
Boolean |
getEnabled()
If the license is enabled.
|
Boolean |
getEnableMaintenancePeriod()
Whether the maintenance period is set.
|
Integer |
getFloatingInUseDevices()
Number of devices that are currently active, if license is floating.
|
Integer |
getFloatingUsers()
How many floating users can use this.
|
Long |
getId()
16 digit license id, isn't manually generated.
|
Boolean |
getIsFloating()
Whether or not this license is of floating type.
|
Boolean |
getIsFloatingCloud()
Whether or not this license is of floating type.
|
Boolean |
getIsTrial()
Whether or not this is a trial license
|
ZonedDateTime |
getLastCheck()
Last time a device checked this license on the servers
|
String |
getLicenseKey()
LicenseKey is not null if the license is key-based.
|
com.licensespring.model.LicenseType |
getLicenseType()
Which type of license was set
|
LicenseUser |
getLicenseUser()
Legacy field.
|
LicenseUser[] |
getLicenseUsers()
List of LicenseUser models whom uses the license.
|
String |
getMaintenanceDuration()
The duration of the maintenance window (support).
|
String |
getMaintenancePeriod()
Legacy / Undocumented
|
Integer |
getMaxActivations()
Number of times this license can be activated on different devices.
|
Integer |
getMaxConsumptions()
Maximum consumptions that can be made.
|
Integer |
getMaxLicenseUsers()
Maximum number of users that can use this license.
|
Integer |
getMaxOverages()
How many additional consumptions can be made over the max consumptions.
|
String |
getNote()
Note that can be added in the LicenseSpring platform.
|
Long |
getOrder()
16 digit id of the order, can't be manually changed.
|
Long |
getOrderItem()
16 digit id of the order item this license belongs to.
|
String |
getOrderStoreId()
Store id of the order that can be manually generated.
|
Boolean |
getPreventVm()
Should activation of this license be prevented within VM environments.
|
BackOfficeLicenseProduct |
getProduct()
Product object that contains the name and the id of the product.
|
List<BackOfficeLicenseFeature> |
getProductFeatures()
List of features that are available for usage on this license.
|
Boolean |
getResetConsumption()
Should the consumptions be reset after a period.
|
String |
getStatus()
Status of the license.
|
String |
getSubscriptionId()
Id of the subscription model.
|
ZonedDateTime |
getTimeActivated()
Time when the license was activated.
|
ZonedDateTime |
getTimeDisabled()
Time when the license was disabled.
|
Integer |
getTimesActivated()
Number of times this license was activated.
|
int |
getTotalActiveDevices()
Total number of devices that have status "active".
|
Integer |
getTotalConsumptions()
Total consumptions that were made so far.
|
Integer |
getTrialDays()
Number of days when the trial expires - after activation
|
ZonedDateTime |
getUpdatedAt()
When the license was updated.
|
String |
getValidDuration()
Only
LicenseType.TIME_LIMITED or any Trial type take this field into consideration. |
String |
getValidityPeriod()
Final end date and time license is valid.
|
int |
hashCode() |
String |
toString() |
public BackOfficeLicense(Long id, String status, Integer floatingInUseDevices, BackOfficeCustomer customer, List<BackOfficeLicenseFeature> productFeatures, LicenseUser[] licenseUsers, LicenseUser licenseUser, String orderStoreId, int activeUpToDateDevices, int totalActiveDevices, BackOfficeLicenseProduct product, ZonedDateTime createdAt, ZonedDateTime updatedAt, String licenseKey, Boolean active, Boolean enabled, ZonedDateTime timeActivated, ZonedDateTime timeDisabled, Integer maxActivations, Integer timesActivated, String validDuration, String validityPeriod, com.licensespring.model.LicenseType licenseType, Boolean enableMaintenancePeriod, String maintenanceDuration, String maintenancePeriod, Boolean isTrial, Integer maxConsumptions, Integer totalConsumptions, String subscriptionId, ZonedDateTime lastCheck, Boolean preventVm, Boolean allowOverages, Integer maxOverages, Boolean resetConsumption, String consumptionPeriod, Integer trialDays, Boolean isFloating, Boolean isFloatingCloud, Integer floatingUsers, String note, Integer maxLicenseUsers, Long order, Long orderItem, Integer disabledUser)
public Long getId()
public String getStatus()
public Integer getFloatingInUseDevices()
public BackOfficeCustomer getCustomer()
public List<BackOfficeLicenseFeature> getProductFeatures()
public LicenseUser[] getLicenseUsers()
public LicenseUser getLicenseUser()
public String getOrderStoreId()
public int getActiveUpToDateDevices()
public int getTotalActiveDevices()
public BackOfficeLicenseProduct getProduct()
public ZonedDateTime getCreatedAt()
public ZonedDateTime getUpdatedAt()
public String getLicenseKey()
public Boolean getActive()
public Boolean getEnabled()
public ZonedDateTime getTimeActivated()
public ZonedDateTime getTimeDisabled()
public Integer getMaxActivations()
public Integer getTimesActivated()
public String getValidDuration()
LicenseType.TIME_LIMITED
or any Trial type take this field into consideration.
This field determines how long the license will be valid after activation.
value examples: 1y (one year) or 2m (2 months) or 3d(3 days) or 4h (4 hours) or 5min (5 minutes).
The different types of time formats cannot be mixed, so it's a number and a time formatpublic String getValidityPeriod()
LicenseType.TIME_LIMITED
.
Should not use the validDuration
if this field is used.public com.licensespring.model.LicenseType getLicenseType()
public Boolean getEnableMaintenancePeriod()
public String getMaintenanceDuration()
public String getMaintenancePeriod()
public Boolean getIsTrial()
public Integer getMaxConsumptions()
LicenseType.CONSUMPTION
public Integer getTotalConsumptions()
LicenseType.CONSUMPTION
public String getSubscriptionId()
public ZonedDateTime getLastCheck()
public Boolean getPreventVm()
public Boolean getAllowOverages()
LicenseType.CONSUMPTION
public Integer getMaxOverages()
LicenseType.CONSUMPTION
public Boolean getResetConsumption()
consumptionPeriod
has to be set if this feature is enabled.
The field is only relevant for the LicenseType.CONSUMPTION
public String getConsumptionPeriod()
resetConsumption
parameter must be set
Example values: week, month or year
The field is only relevant for the LicenseType.CONSUMPTION
public Integer getTrialDays()
public Boolean getIsFloating()
isFloatingCloud
has to be false if this field is set.public Boolean getIsFloatingCloud()
isFloating
has to be false if this field is set.public Integer getFloatingUsers()
public String getNote()
public Integer getMaxLicenseUsers()
public Long getOrder()
public Long getOrderItem()
public Integer getDisabledUser()
Copyright © 2023 Cense Data Inc.. All rights reserved.