public class License extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
License.LicenseBuilder |
| Modifier and Type | Method and Description |
|---|---|
static License.LicenseBuilder |
builder() |
protected boolean |
canEqual(Object other) |
static License |
createFromCheck(License license,
com.licensespring.dto.CheckResponse checkResponse) |
long |
daysPassedSinceLastCheck() |
long |
daysRemaining() |
boolean |
equals(Object o) |
Boolean |
getActive() |
com.licensespring.LicenseData |
getData()
Server license data - both online and offline activation data is stored in this field
|
Boolean |
getEnabled() |
String |
getHardwareId()
hardware id for which this license data has been activated for
|
com.licensespring.model.LicenseIdentity |
getIdentity()
The license identity - licenseKey or username is kept in this field
|
com.licensespring.model.InstallationFile |
getInstallationFile()
Information on the location of potential installation files.
|
ZonedDateTime |
getLastCheck()
Last time the check was performed on this
|
ZonedDateTime |
getLastUsage()
Gets updated each time the application runs
|
int |
getLocalConsumptions()
Consumptions which are tracked locally.
|
Map<String,Integer> |
getLocalFeatureConsumptions()
Map which used to increase local feature consumptions.
|
int |
getMaxActivations() |
int |
getMaxConsumptions() |
com.licensespring.model.Product |
getProduct() |
Boolean |
getRemoteExpired() |
com.licensespring.internal.services.LicenseRepository |
getRepository() |
com.licensespring.internal.services.LicenseService |
getService() |
int |
getTimesActivated() |
int |
getTotalConsumptions() |
int |
hashCode() |
void |
increaseConsumption()
Increases local consumptions by 1.
|
void |
increaseConsumption(int increment)
Increases local consumptions by the parameter provided.
|
void |
increaseFeatureConsumption(String feature)
Increases by 1 the consumptions of a feature provided.
|
void |
increaseFeatureConsumption(String featureCode,
int increment)
Increases by increment the consumptions of a feature provided.
|
boolean |
isExpired()
Checks if license has expired locally
|
void |
localCheck()
performs a local check of the license.
|
void |
setActive(Boolean active) |
void |
setData(com.licensespring.LicenseData data)
Server license data - both online and offline activation data is stored in this field
|
void |
setEnabled(Boolean enabled) |
void |
setLastCheck(ZonedDateTime lastCheck)
Last time the check was performed on this
|
void |
setLastUsage(ZonedDateTime lastUsage)
Gets updated each time the application runs
|
void |
setLocalConsumptions(int localConsumptions)
Consumptions which are tracked locally.
|
void |
setLocalFeatureConsumptions(Map<String,Integer> localFeatureConsumptions)
Map which used to increase local feature consumptions.
|
void |
setRemoteExpired(Boolean remoteExpired) |
void |
setRepository(com.licensespring.internal.services.LicenseRepository repository) |
void |
setService(com.licensespring.internal.services.LicenseService service) |
void |
syncConsumptions()
The method syncs local with remote consumptions.
|
String |
toString() |
public static License createFromCheck(License license, com.licensespring.dto.CheckResponse checkResponse)
public int getMaxActivations()
public int getMaxConsumptions()
public int getTotalConsumptions()
public int getTimesActivated()
public void increaseConsumption()
public void increaseConsumption(int increment)
increment - public void increaseFeatureConsumption(String feature)
feature - feature which was consumedpublic void syncConsumptions()
public void increaseFeatureConsumption(String featureCode, int increment)
featureCode - increment - public boolean isExpired()
public long daysRemaining()
public long daysPassedSinceLastCheck()
public void localCheck()
public com.licensespring.model.Product getProduct()
public static License.LicenseBuilder builder()
public com.licensespring.LicenseData getData()
public com.licensespring.model.LicenseIdentity getIdentity()
public com.licensespring.model.InstallationFile getInstallationFile()
public ZonedDateTime getLastCheck()
public ZonedDateTime getLastUsage()
public String getHardwareId()
public int getLocalConsumptions()
public Map<String,Integer> getLocalFeatureConsumptions()
public com.licensespring.internal.services.LicenseRepository getRepository()
public com.licensespring.internal.services.LicenseService getService()
public Boolean getRemoteExpired()
public Boolean getActive()
public Boolean getEnabled()
public void setData(com.licensespring.LicenseData data)
public void setLastCheck(ZonedDateTime lastCheck)
public void setLastUsage(ZonedDateTime lastUsage)
public void setLocalConsumptions(int localConsumptions)
public void setLocalFeatureConsumptions(Map<String,Integer> localFeatureConsumptions)
public void setRepository(com.licensespring.internal.services.LicenseRepository repository)
public void setService(com.licensespring.internal.services.LicenseService service)
public void setRemoteExpired(Boolean remoteExpired)
public void setActive(Boolean active)
public void setEnabled(Boolean enabled)
protected boolean canEqual(Object other)
Copyright © 2021 Cense Data Inc.. All rights reserved.