Class WorkbasketImpl
- java.lang.Object
-
- pro.taskana.workbasket.internal.models.WorkbasketSummaryImpl
-
- pro.taskana.workbasket.internal.models.WorkbasketImpl
-
- All Implemented Interfaces:
Workbasket,WorkbasketSummary
public class WorkbasketImpl extends WorkbasketSummaryImpl implements Workbasket
Workbasket entity.
-
-
Constructor Summary
Constructors Constructor Description WorkbasketImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description WorkbasketSummaryasSummary()Returns a summary of the current Workbasket.protected booleancanEqual(Object other)WorkbasketImplcopy(String key)Duplicates the Workbasket without the id.booleanequals(Object obj)InstantgetCreated()Returns the time when the Workbasket was created.InstantgetModified()Returns the time when the Workbasket was modified last time.inthashCode()voidsetCreated(Instant created)voidsetCustomAttribute(WorkbasketCustomField customField, String value)Deprecated.voidsetCustomField(WorkbasketCustomField customField, String value)Sets the value for the specified WorkbasketCustomField.voidsetModified(Instant modified)StringtoString()-
Methods inherited from class pro.taskana.workbasket.internal.models.WorkbasketSummaryImpl
copy, getCustom1, getCustom2, getCustom3, getCustom4, getCustomAttribute, getCustomField, getDescription, getDomain, getId, getKey, getName, getOrgLevel1, getOrgLevel2, getOrgLevel3, getOrgLevel4, getOwner, getType, isMarkedForDeletion, setCustom1, setCustom2, setCustom3, setCustom4, setDescription, setDomain, setId, setKey, setMarkedForDeletion, setName, setOrgLevel1, setOrgLevel2, setOrgLevel3, setOrgLevel4, setOwner, setType
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface pro.taskana.workbasket.api.models.Workbasket
isMarkedForDeletion, setDescription, setMarkedForDeletion, setName, setOrgLevel1, setOrgLevel2, setOrgLevel3, setOrgLevel4, setOwner, setType
-
Methods inherited from interface pro.taskana.workbasket.api.models.WorkbasketSummary
copy, getCustomAttribute, getCustomField, getDescription, getDomain, getId, getKey, getName, getOrgLevel1, getOrgLevel2, getOrgLevel3, getOrgLevel4, getOwner, getType
-
-
-
-
Method Detail
-
setCustomAttribute
@Deprecated public void setCustomAttribute(WorkbasketCustomField customField, String value)
Deprecated.Description copied from interface:WorkbasketSets the value of the specified WorkbasketCustomField.- Specified by:
setCustomAttributein interfaceWorkbasket- Parameters:
customField- identifies which WorkbasketCustomField is to be setvalue- the value of the WorkbasketCustomField to be set
-
setCustomField
public void setCustomField(WorkbasketCustomField customField, String value)
Description copied from interface:WorkbasketSets the value for the specified WorkbasketCustomField.- Specified by:
setCustomFieldin interfaceWorkbasket- Parameters:
customField- identifies which WorkbasketCustomField is to be set.value- the value of the WorkbasketCustomField to be set
-
copy
public WorkbasketImpl copy(String key)
Description copied from interface:WorkbasketDuplicates the Workbasket without the id.- Specified by:
copyin interfaceWorkbasket- Parameters:
key- for the new Workbasket- Returns:
- a copy of this Workbasket
-
getCreated
public Instant getCreated()
Description copied from interface:WorkbasketReturns the time when the Workbasket was created.- Specified by:
getCreatedin interfaceWorkbasket- Returns:
- the created Instant
-
setCreated
public void setCreated(Instant created)
-
getModified
public Instant getModified()
Description copied from interface:WorkbasketReturns the time when the Workbasket was modified last time.- Specified by:
getModifiedin interfaceWorkbasket- Returns:
- the modified Instant
-
setModified
public void setModified(Instant modified)
-
asSummary
public WorkbasketSummary asSummary()
Description copied from interface:WorkbasketReturns a summary of the current Workbasket.- Specified by:
asSummaryin interfaceWorkbasket- Returns:
- the WorkbasketSummary object for the current Workbasket
-
canEqual
protected boolean canEqual(Object other)
- Overrides:
canEqualin classWorkbasketSummaryImpl
-
hashCode
public int hashCode()
- Overrides:
hashCodein classWorkbasketSummaryImpl
-
equals
public boolean equals(Object obj)
- Overrides:
equalsin classWorkbasketSummaryImpl
-
toString
public String toString()
- Overrides:
toStringin classWorkbasketSummaryImpl
-
-