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.Stringcustomerprotected java.util.Map<java.lang.String,java.lang.String>featuresprotected java.lang.BooleanisUnlimitedprotected java.lang.Stringrawstatic java.lang.StringSERIALIZED_IS_UNLIMITEDstatic java.lang.StringSERIALIZED_VALID_UNTILprotected java.lang.Stringtypeprotected java.lang.StringvalidUntil
-
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 LicenseKeyDataImplfromRawString(java.lang.String rawLicense)java.lang.StringgetCustomer()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.StringgetRaw()The raw license data.java.lang.StringgetType()Camunda uses different license types e.g., when one license includes usage of Cawemo enterprise.java.lang.StringgetValidUntil()The expiry date of the license in the format 'YYYY-MM-DD'.java.lang.BooleanisUnlimited()A flag indicating if the license is unlimited or expires.voidsetCustomer(java.lang.String customer)voidsetFeatures(java.util.Map<java.lang.String,java.lang.String> features)voidsetRaw(java.lang.String raw)voidsetType(java.lang.String type)voidsetUnlimited(java.lang.Boolean isUnlimited)voidsetValidUntil(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:LicenseKeyDataThe name of the customer this license was issued for.- Specified by:
getCustomerin interfaceLicenseKeyData
-
setCustomer
public void setCustomer(java.lang.String customer)
-
getType
public java.lang.String getType()
Description copied from interface:LicenseKeyDataCamunda uses different license types e.g., when one license includes usage of Cawemo enterprise.- Specified by:
getTypein interfaceLicenseKeyData
-
setType
public void setType(java.lang.String type)
-
getValidUntil
public java.lang.String getValidUntil()
Description copied from interface:LicenseKeyDataThe expiry date of the license in the format 'YYYY-MM-DD'.- Specified by:
getValidUntilin interfaceLicenseKeyData
-
setValidUntil
public void setValidUntil(java.lang.String validUntil)
-
isUnlimited
public java.lang.Boolean isUnlimited()
Description copied from interface:LicenseKeyDataA flag indicating if the license is unlimited or expires.- Specified by:
isUnlimitedin 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:LicenseKeyDataA collection of features that are enabled through this license. Features could be Camunda BPM, Optimize or Cawemo.- Specified by:
getFeaturesin 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:LicenseKeyDataThe 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:
getRawin interfaceLicenseKeyData
-
setRaw
public void setRaw(java.lang.String raw)
-
-