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 Classification.protected booleancanEqual(Object other)ClassificationImplcopy(String key)Duplicates the Classification without the id.booleanequals(Object obj)StringgetApplicationEntryPoint()Returns the applicationEntryPoint of the Classification.InstantgetCreated()Returns the time when the Classification was created.StringgetDescription()Returns the description of the Classification.BooleangetIsValidInDomain()Returns whether the Classification is currently valid in the used domain.InstantgetModified()Returns the time when the Classification was modified the last time.inthashCode()voidsetApplicationEntryPoint(String applicationEntryPoint)Sets the logical name of the associated applicationEntryPoint of the Classification.voidsetCreated(Instant created)voidsetCustomAttribute(ClassificationCustomField customField, String value)Deprecated.voidsetCustomField(ClassificationCustomField customField, String value)Sets the value for ClassificationCustomField.voidsetDescription(String description)Sets/Changes the description of the Classification.voidsetIsValidInDomain(Boolean isValidInDomain)Sets/Changes 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:ClassificationSummaryReturns the applicationEntryPoint of the Classification.- Specified by:
getApplicationEntryPointin interfaceClassification- Specified by:
getApplicationEntryPointin interfaceClassificationSummary- Overrides:
getApplicationEntryPointin classClassificationSummaryImpl- Returns:
- applicationEntryPoint
-
setApplicationEntryPoint
public void setApplicationEntryPoint(String applicationEntryPoint)
Description copied from interface:ClassificationSets the logical name of the associated applicationEntryPoint of the Classification.- Specified by:
setApplicationEntryPointin interfaceClassification- Overrides:
setApplicationEntryPointin classClassificationSummaryImpl- Parameters:
applicationEntryPoint- the applicationEntryPoint
-
copy
public ClassificationImpl copy(String key)
Description copied from interface:ClassificationDuplicates the 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:ClassificationReturns whether the Classification is currently valid in the used domain.- Specified by:
getIsValidInDomainin interfaceClassification- Returns:
- isValidInDomain
-
setIsValidInDomain
public void setIsValidInDomain(Boolean isValidInDomain)
Description copied from interface:ClassificationSets/Changes 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:ClassificationReturns the time when the Classification was created.- Specified by:
getCreatedin interfaceClassification- Returns:
- the time of creation as Instant
-
setCreated
public void setCreated(Instant created)
-
getModified
public Instant getModified()
Description copied from interface:ClassificationReturns the time when the Classification was modified the last time.- Specified by:
getModifiedin interfaceClassification- Returns:
- the time of last modification as Instant
-
setModified
public void setModified(Instant modified)
-
getDescription
public String getDescription()
Description copied from interface:ClassificationReturns the description of the Classification.- Specified by:
getDescriptionin interfaceClassification- Returns:
- description
-
setDescription
public void setDescription(String description)
Description copied from interface:ClassificationSets/Changes the description of the Classification.- 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 the specified ClassificationCustomField.- Specified by:
setCustomAttributein interfaceClassification- Parameters:
customField- the ClassificationCustomField identifies which custom attribute is to be setvalue- the value of the ClassificationCustomField to be set
-
setCustomField
public void setCustomField(ClassificationCustomField customField, String value)
Description copied from interface:ClassificationSets the value for ClassificationCustomField.- Specified by:
setCustomFieldin interfaceClassification- Parameters:
customField- identifies which ClassificationCustomField is to be setvalue- the value of the ClassificationCustomField to be set
-
asSummary
public ClassificationSummary asSummary()
Description copied from interface:ClassificationReturn a summary of the Classification.- Specified by:
asSummaryin interfaceClassification- Returns:
- the ClassificationSummary object for the current Classification
-
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
-
-