Class LicenseKeyDataImpl
- java.lang.Object
-
- org.camunda.bpm.engine.impl.telemetry.dto.LicenseKeyDataImpl
-
- All Implemented Interfaces:
LicenseKeyData
public class LicenseKeyDataImpl extends Object implements LicenseKeyData
-
-
Field Summary
Fields Modifier and Type Field Description protected String
customer
protected Map<String,String>
features
protected Boolean
isUnlimited
protected String
raw
static String
SERIALIZED_IS_UNLIMITED
static String
SERIALIZED_VALID_UNTIL
protected String
type
protected String
validUntil
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LicenseKeyDataImpl
fromRawString(String rawLicense)
String
getCustomer()
The name of the customer this license was issued for.Map<String,String>
getFeatures()
A collection of features that are enabled through this license.String
getRaw()
The raw license data.String
getType()
Camunda uses different license types e.g., when one license includes usage of Cawemo enterprise.String
getValidUntil()
The expiry date of the license in the format 'YYYY-MM-DD'.Boolean
isUnlimited()
A flag indicating if the license is unlimited or expires.void
setCustomer(String customer)
void
setFeatures(Map<String,String> features)
void
setRaw(String raw)
void
setType(String type)
void
setUnlimited(Boolean isUnlimited)
void
setValidUntil(String validUntil)
-
-
-
Field Detail
-
SERIALIZED_VALID_UNTIL
public static final String SERIALIZED_VALID_UNTIL
- See Also:
- Constant Field Values
-
SERIALIZED_IS_UNLIMITED
public static final String SERIALIZED_IS_UNLIMITED
- See Also:
- Constant Field Values
-
customer
protected String customer
-
type
protected String type
-
validUntil
@SerializedName("valid-until") protected String validUntil
-
isUnlimited
@SerializedName("unlimited") protected Boolean isUnlimited
-
raw
protected String raw
-
-
Method Detail
-
fromRawString
public static LicenseKeyDataImpl fromRawString(String rawLicense)
-
getCustomer
public 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(String customer)
-
getType
public 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(String type)
-
getValidUntil
public 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(String validUntil)
-
isUnlimited
public 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(Boolean isUnlimited)
-
getFeatures
public Map<String,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
-
getRaw
public 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(String raw)
-
-