Class LicenseKeyDataImpl
- java.lang.Object
-
- org.camunda.bpm.engine.impl.telemetry.dto.LicenseKeyDataImpl
-
- All Implemented Interfaces:
LicenseKeyData
public class LicenseKeyDataImpl extends java.lang.Object implements LicenseKeyData
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
customer
protected java.util.Map<java.lang.String,java.lang.String>
features
protected java.lang.Boolean
isUnlimited
protected java.lang.String
raw
static java.lang.String
SERIALIZED_IS_UNLIMITED
static java.lang.String
SERIALIZED_VALID_UNTIL
protected java.lang.String
type
protected java.lang.String
validUntil
-
Constructor Summary
Constructors Constructor Description LicenseKeyDataImpl(java.lang.String customer, java.lang.String type, java.lang.String validUntil, java.lang.Boolean isUnlimited, java.util.Map<java.lang.String,java.lang.String> features, java.lang.String raw)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LicenseKeyDataImpl
fromRawString(java.lang.String rawLicense)
java.lang.String
getCustomer()
The name of the customer this license was issued for.java.util.Map<java.lang.String,java.lang.String>
getFeatures()
A collection of features that are enabled through this license.java.lang.String
getRaw()
The raw license data.java.lang.String
getType()
Camunda uses different license types e.g., when one license includes usage of Cawemo enterprise.java.lang.String
getValidUntil()
The expiry date of the license in the format 'YYYY-MM-DD'.java.lang.Boolean
isUnlimited()
A flag indicating if the license is unlimited or expires.void
setCustomer(java.lang.String customer)
void
setFeatures(java.util.Map<java.lang.String,java.lang.String> features)
void
setRaw(java.lang.String raw)
void
setType(java.lang.String type)
void
setUnlimited(java.lang.Boolean isUnlimited)
void
setValidUntil(java.lang.String validUntil)
-
-
-
Field Detail
-
SERIALIZED_VALID_UNTIL
public static final java.lang.String SERIALIZED_VALID_UNTIL
- See Also:
- Constant Field Values
-
SERIALIZED_IS_UNLIMITED
public static final java.lang.String SERIALIZED_IS_UNLIMITED
- See Also:
- Constant Field Values
-
customer
protected java.lang.String customer
-
type
protected java.lang.String type
-
validUntil
@SerializedName("valid-until") protected java.lang.String validUntil
-
isUnlimited
@SerializedName("unlimited") protected java.lang.Boolean isUnlimited
-
features
protected java.util.Map<java.lang.String,java.lang.String> features
-
raw
protected java.lang.String raw
-
-
Method Detail
-
fromRawString
public static LicenseKeyDataImpl fromRawString(java.lang.String rawLicense)
-
getCustomer
public java.lang.String getCustomer()
Description copied from interface:LicenseKeyData
The name of the customer this license was issued for.- Specified by:
getCustomer
in interfaceLicenseKeyData
-
setCustomer
public void setCustomer(java.lang.String customer)
-
getType
public java.lang.String getType()
Description copied from interface:LicenseKeyData
Camunda uses different license types e.g., when one license includes usage of Cawemo enterprise.- Specified by:
getType
in interfaceLicenseKeyData
-
setType
public void setType(java.lang.String type)
-
getValidUntil
public java.lang.String getValidUntil()
Description copied from interface:LicenseKeyData
The expiry date of the license in the format 'YYYY-MM-DD'.- Specified by:
getValidUntil
in interfaceLicenseKeyData
-
setValidUntil
public void setValidUntil(java.lang.String validUntil)
-
isUnlimited
public java.lang.Boolean isUnlimited()
Description copied from interface:LicenseKeyData
A flag indicating if the license is unlimited or expires.- Specified by:
isUnlimited
in interfaceLicenseKeyData
-
setUnlimited
public void setUnlimited(java.lang.Boolean isUnlimited)
-
getFeatures
public java.util.Map<java.lang.String,java.lang.String> getFeatures()
Description copied from interface:LicenseKeyData
A collection of features that are enabled through this license. Features could be Camunda BPM, Optimize or Cawemo.- Specified by:
getFeatures
in interfaceLicenseKeyData
-
setFeatures
public void setFeatures(java.util.Map<java.lang.String,java.lang.String> features)
-
getRaw
public java.lang.String getRaw()
Description copied from interface:LicenseKeyData
The raw license data. This combines all data fields also included in this class in the form which is stored in the license key String. Note, that this is not the license key as issued to the customer but only contains the plain-text part of it and not the encrypted key.- Specified by:
getRaw
in interfaceLicenseKeyData
-
setRaw
public void setRaw(java.lang.String raw)
-
-