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 Stringcustomerprotected Map<String,String>featuresprotected BooleanisUnlimitedprotected Stringrawstatic StringSERIALIZED_IS_UNLIMITEDstatic StringSERIALIZED_VALID_UNTILprotected Stringtypeprotected StringvalidUntil
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LicenseKeyDataImplfromRawString(String rawLicense)StringgetCustomer()The name of the customer this license was issued for.Map<String,String>getFeatures()A collection of features that are enabled through this license.StringgetRaw()The raw license data.StringgetType()Camunda uses different license types e.g., when one license includes usage of Cawemo enterprise.StringgetValidUntil()The expiry date of the license in the format 'YYYY-MM-DD'.BooleanisUnlimited()A flag indicating if the license is unlimited or expires.voidsetCustomer(String customer)voidsetFeatures(Map<String,String> features)voidsetRaw(String raw)voidsetType(String type)voidsetUnlimited(Boolean isUnlimited)voidsetValidUntil(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:LicenseKeyDataThe name of the customer this license was issued for.- Specified by:
getCustomerin interfaceLicenseKeyData
-
setCustomer
public void setCustomer(String customer)
-
getType
public 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(String type)
-
getValidUntil
public 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(String validUntil)
-
isUnlimited
public Boolean isUnlimited()
Description copied from interface:LicenseKeyDataA flag indicating if the license is unlimited or expires.- Specified by:
isUnlimitedin interfaceLicenseKeyData
-
setUnlimited
public void setUnlimited(Boolean isUnlimited)
-
getFeatures
public Map<String,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
-
getRaw
public 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(String raw)
-
-