Class ClassificationImpl
- java.lang.Object
-
- pro.taskana.classification.internal.models.ClassificationSummaryImpl
-
- pro.taskana.classification.internal.models.ClassificationImpl
-
- All Implemented Interfaces:
Classification,ClassificationSummary
public class ClassificationImpl extends ClassificationSummaryImpl implements Classification
Classification entity.
-
-
Constructor Summary
Constructors Constructor Description ClassificationImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ClassificationSummaryasSummary()Return a summary of the current Classification.protected booleancanEqual(Object other)ClassificationImplcopy(String key)Duplicates this Classification without the id.booleanequals(Object obj)StringgetApplicationEntryPoint()Gets the application entry point of the classification.InstantgetCreated()Get the timestamp when this classification was as created.StringgetDescription()Get the description of a classification.BooleangetIsValidInDomain()Get a flag if the classification if currently valid in the used domain.InstantgetModified()Get the timestamp when this classification was as modified the last time.inthashCode()voidsetApplicationEntryPoint(String applicationEntryPoint)Set the logical name of the associated application entry point.voidsetCreated(Instant created)voidsetCustomAttribute(ClassificationCustomField customField, String value)Deprecated.voidsetCustomField(ClassificationCustomField customField, String value)Sets the value for custom field.voidsetDescription(String description)Set/Change the classification description.voidsetIsValidInDomain(Boolean isValidInDomain)Set/Change the flag which marks the classification as valid/invalid in the currently used domain.voidsetModified(Instant modified)StringtoString()-
Methods inherited from class pro.taskana.classification.internal.models.ClassificationSummaryImpl
copy, getCategory, getCustom1, getCustom2, getCustom3, getCustom4, getCustom5, getCustom6, getCustom7, getCustom8, getCustomAttribute, getCustomField, getDomain, getId, getKey, getName, getParentId, getParentKey, getPriority, getServiceLevel, getType, setCategory, setCustom1, setCustom2, setCustom3, setCustom4, setCustom5, setCustom6, setCustom7, setCustom8, setDomain, setId, setKey, setName, setParentId, setParentKey, setPriority, setServiceLevel, setType
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface pro.taskana.classification.api.models.Classification
getDomain, setCategory, setName, setParentId, setParentKey, setPriority, setServiceLevel
-
Methods inherited from interface pro.taskana.classification.api.models.ClassificationSummary
copy, getCategory, getCustomAttribute, getCustomField, getId, getKey, getName, getParentId, getParentKey, getPriority, getServiceLevel, getType
-
-
-
-
Method Detail
-
getApplicationEntryPoint
public String getApplicationEntryPoint()
Description copied from interface:ClassificationSummaryGets the application entry point of the classification.- Specified by:
getApplicationEntryPointin interfaceClassification- Specified by:
getApplicationEntryPointin interfaceClassificationSummary- Overrides:
getApplicationEntryPointin classClassificationSummaryImpl- Returns:
- the application entry point
-
setApplicationEntryPoint
public void setApplicationEntryPoint(String applicationEntryPoint)
Description copied from interface:ClassificationSet the logical name of the associated application entry point.- Specified by:
setApplicationEntryPointin interfaceClassification- Overrides:
setApplicationEntryPointin classClassificationSummaryImpl- Parameters:
applicationEntryPoint- The application entry point
-
canEqual
protected boolean canEqual(Object other)
- Overrides:
canEqualin classClassificationSummaryImpl
-
hashCode
public int hashCode()
- Overrides:
hashCodein classClassificationSummaryImpl
-
equals
public boolean equals(Object obj)
- Overrides:
equalsin classClassificationSummaryImpl
-
toString
public String toString()
- Overrides:
toStringin classClassificationSummaryImpl
-
copy
public ClassificationImpl copy(String key)
Description copied from interface:ClassificationDuplicates this Classification without the id.- Specified by:
copyin interfaceClassification- Parameters:
key- for the new Classification- Returns:
- a copy of this Classification
-
getIsValidInDomain
public Boolean getIsValidInDomain()
Description copied from interface:ClassificationGet a flag if the classification if currently valid in the used domain.- Specified by:
getIsValidInDomainin interfaceClassification- Returns:
- isValidInDomain - flag
-
setIsValidInDomain
public void setIsValidInDomain(Boolean isValidInDomain)
Description copied from interface:ClassificationSet/Change the flag which marks the classification as valid/invalid in the currently used domain.- Specified by:
setIsValidInDomainin interfaceClassification- Parameters:
isValidInDomain- - flag
-
getCreated
public Instant getCreated()
Description copied from interface:ClassificationGet the timestamp when this classification was as created.- Specified by:
getCreatedin interfaceClassification- Returns:
- created as instant
-
setCreated
public void setCreated(Instant created)
-
getModified
public Instant getModified()
Description copied from interface:ClassificationGet the timestamp when this classification was as modified the last time.- Specified by:
getModifiedin interfaceClassification- Returns:
- modified as instant
-
setModified
public void setModified(Instant modified)
-
getDescription
public String getDescription()
Description copied from interface:ClassificationGet the description of a classification.- Specified by:
getDescriptionin interfaceClassification- Returns:
- description
-
setDescription
public void setDescription(String description)
Description copied from interface:ClassificationSet/Change the classification description.- Specified by:
setDescriptionin interfaceClassification- Parameters:
description- the description of the Classification
-
setCustomAttribute
@Deprecated public void setCustomAttribute(ClassificationCustomField customField, String value)
Deprecated.Description copied from interface:ClassificationSets the value for custom Attribute.- Specified by:
setCustomAttributein interfaceClassification- Parameters:
customField- identifies which custom attribute is to be set.value- the value of the custom attribute to be set
-
setCustomField
public void setCustomField(ClassificationCustomField customField, String value)
Description copied from interface:ClassificationSets the value for custom field.- Specified by:
setCustomFieldin interfaceClassification- Parameters:
customField- identifies which custom field is to be set.value- the value of the custom field to be set
-
asSummary
public ClassificationSummary asSummary()
Description copied from interface:ClassificationReturn a summary of the current Classification.- Specified by:
asSummaryin interfaceClassification- Returns:
- the ClassificationSummary object for the current classification
-
-