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 Modifier and Type Method Description WorkbasketSummaryasSummary()Return a summary of the current workbasket.protected booleancanEqual(Object other)WorkbasketImplcopy(String key)Duplicates this Workbasket without the id.booleanequals(Object obj)InstantgetCreated()Returns the date when the workbasket was created.InstantgetModified()Returns the date when the workbasket was modified the last time.inthashCode()voidsetCreated(Instant created)voidsetCustomAttribute(WorkbasketCustomField customField, String value)Sets the value for custom Attribute.voidsetModified(Instant modified)StringtoString()-
Methods inherited from class pro.taskana.workbasket.internal.models.WorkbasketSummaryImpl
copy, getCustom1, getCustom2, getCustom3, getCustom4, getCustomAttribute, 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, getDescription, getDomain, getId, getKey, getName, getOrgLevel1, getOrgLevel2, getOrgLevel3, getOrgLevel4, getOwner, getType
-
-
-
-
Method Detail
-
setCustomAttribute
public void setCustomAttribute(WorkbasketCustomField customField, String value)
Description copied from interface:WorkbasketSets the value for custom Attribute.- Specified by:
setCustomAttributein interfaceWorkbasket- Parameters:
customField- identifies which custom attribute is to be set.value- the value of the custom attribute to be set
-
copy
public WorkbasketImpl copy(String key)
Description copied from interface:WorkbasketDuplicates this 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 date when the workbasket was created.- Specified by:
getCreatedin interfaceWorkbasket- Returns:
- created as Instant
-
setCreated
public void setCreated(Instant created)
-
getModified
public Instant getModified()
Description copied from interface:WorkbasketReturns the date when the workbasket was modified the last time.- Specified by:
getModifiedin interfaceWorkbasket- Returns:
- modified as Instant
-
setModified
public void setModified(Instant modified)
-
asSummary
public WorkbasketSummary asSummary()
Description copied from interface:WorkbasketReturn a summary of the current workbasket.- Specified by:
asSummaryin interfaceWorkbasket- Returns:
- the WorkbasketSummary object for the current work basket
-
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
-
-