Interface Workbasket
- All Superinterfaces:
WorkbasketSummary
- All Known Implementing Classes:
WorkbasketImpl
Workbasket entity interface.
-
Method Summary
Modifier and TypeMethodDescriptionReturns a summary of the current Workbasket.Duplicates the Workbasket without the id.Returns the time when the Workbasket was created.Returns the time when the Workbasket was modified last time.booleanChecks if the Workbasket is marked for deletion.voidsetCustomAttribute(WorkbasketCustomField customField, String value) Deprecated.Use setCustomField(WorkbasketCustomField, String) insteadvoidsetCustomField(WorkbasketCustomField customField, String value) Sets the value for the specified WorkbasketCustomField.voidsetDescription(String description) Sets the description of the Workbasket.voidsetMarkedForDeletion(boolean markedForDeletion) Sets the value for markedForDeletion flag.voidSets the name of the Workbasket.voidsetOrgLevel1(String orgLevel1) Sets the value for orgLevel1 attribute.voidsetOrgLevel2(String orgLevel2) Sets the value for orgLevel2 attribute.voidsetOrgLevel3(String orgLevel3) Sets the value for orgLevel3 attribute.voidsetOrgLevel4(String orgLevel4) Sets the value for orgLevel4 attribute.voidSets the owner of the Workbasket.voidsetType(WorkbasketType type) Sets the type of the Workbasket.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 Details
-
setName
Sets the name of the Workbasket.- Parameters:
workbasketName- the name of the Workbasket
-
setDescription
Sets the description of the Workbasket.- Parameters:
description- the description of the Workbasket
-
setType
Sets the type of the Workbasket.- Parameters:
type- the type of the Workbasket
-
setCustomAttribute
Deprecated.Use setCustomField(WorkbasketCustomField, String) insteadSets the value of the specified WorkbasketCustomField.- Parameters:
customField- identifies which WorkbasketCustomField is to be setvalue- the value of the WorkbasketCustomField to be set
-
setCustomField
Sets the value for the specified WorkbasketCustomField.- Parameters:
customField- identifies which WorkbasketCustomField is to be set.value- the value of the WorkbasketCustomField to be set
-
setOrgLevel1
Sets the value for orgLevel1 attribute.- Parameters:
orgLevel1- the orgLevel1 property of the Workbasket
-
setOrgLevel2
Sets the value for orgLevel2 attribute.- Parameters:
orgLevel2- the orgLevel2 property of the Workbasket
-
setOrgLevel3
Sets the value for orgLevel3 attribute.- Parameters:
orgLevel3- the orgLevel3 property of the Workbasket
-
setOrgLevel4
Sets the value for orgLevel4 attribute.- Parameters:
orgLevel4- the orgLevel4 of the Workbasket
-
isMarkedForDeletion
boolean isMarkedForDeletion()Checks if the Workbasket is marked for deletion.- Specified by:
isMarkedForDeletionin interfaceWorkbasketSummary- Returns:
- the markedForDeletion flag
-
setMarkedForDeletion
void setMarkedForDeletion(boolean markedForDeletion) Sets the value for markedForDeletion flag.- Parameters:
markedForDeletion- the markedForDeletion flag of the Workbasket
-
copy
Duplicates the Workbasket without the id.- Parameters:
key- for the new Workbasket- Returns:
- a copy of this Workbasket
-
setOwner
Sets the owner of the Workbasket.- Parameters:
owner- the id of the owner of the current Workbasket
-
getCreated
Instant getCreated()Returns the time when the Workbasket was created.- Returns:
- the created Instant
-
getModified
Instant getModified()Returns the time when the Workbasket was modified last time.- Returns:
- the modified Instant
-
asSummary
WorkbasketSummary asSummary()Returns a summary of the current Workbasket.- Returns:
- the WorkbasketSummary object for the current Workbasket
-