Class WorkPackage
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<String,Object>
-
- com.xwiki.projectmanagement.openproject.model.BaseOpenProjectObject
-
- com.xwiki.projectmanagement.openproject.model.WorkPackage
-
- All Implemented Interfaces:
Serializable,Cloneable,Map<String,Object>
public class WorkPackage extends BaseOpenProjectObject
Describes a Work package related to OpenProject.- Since:
- 1.0
- Version:
- $Id$
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>
-
-
Field Summary
-
Fields inherited from class com.xwiki.projectmanagement.openproject.model.BaseOpenProjectObject
KEY_ID, KEY_NAME
-
-
Constructor Summary
Constructors Constructor Description WorkPackage()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LinkablegetAssignee()Gets the assignee of the work package, including their value and reference link.LinkablegetAuthor()Gets the author of the work package, including their value and reference link.DategetCreatedAt()Gets the creation timestamp of the work package.DategetDerivedDueDate()Gets the derived due date of the work package.DategetDerivedStartDate()Gets the derived start date of the work package.StringgetDescription()Gets the description of the work package.DategetDueDate()Gets the due date of the work package.StringgetName()IntegergetPercentageDone()Gets the percentage done for the work package.LinkablegetPriority()Gets the priority of the work package, including its value and reference link.LinkablegetProject()Gets the progress associated with the work package, including its reference.DategetStartDate()Gets the start date of the work package.LinkablegetStatus()Gets the status of the work package, including its value and reference link.StringgetSubject()Gets the subject or title of the work package.StringgetType()Gets the internal type of the work package.LinkablegetTypeOfWorkPackage()Gets the type of work package, which includes its value and reference link.DategetUpdatedAt()Gets the last updated timestamp of the work package.voidsetAssignee(Linkable assignee)Sets the assignee of the work package, including their value and reference link.voidsetAuthor(Linkable author)Sets the author of the work package, including their value and reference link.voidsetCreatedAt(Date createdAt)Sets the creation timestamp of the work package.voidsetDerivedDueDate(Date derivedDueDate)Sets the derived due date of the work package.voidsetDerivedStartDate(Date derivedStartDate)Sets the derived start date of the work package.voidsetDescription(String description)Sets the description of the work package.voidsetDueDate(Date dueDate)Sets the due date of the work package.voidsetName(String name)voidsetPercentageDone(Integer percentageDone)Sets the percentage done for the work package.voidsetPriority(Linkable priority)Sets the priority of the work package, including its value and reference link.voidsetProject(Linkable project)Sets the project associated with the work package.voidsetStartDate(Date startDate)Sets the start date of the work package.voidsetStatus(Linkable status)Sets the status of the work package, including its value and reference link.voidsetSubject(String subject)Sets the subject or title of the work package.voidsetType(String type)Sets the internal type of the work package.voidsetTypeOfWorkPackage(Linkable typeOfWorkPackage)Sets the type of work package, including its value and reference link.voidsetUpdatedAt(Date updatedAt)Sets the last updated timestamp of the work package.-
Methods inherited from class com.xwiki.projectmanagement.openproject.model.BaseOpenProjectObject
getId, getMapEntries, getSelf, putEntry, setId, setSelf
-
Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
-
-
-
Method Detail
-
getDerivedStartDate
public Date getDerivedStartDate()
Gets the derived start date of the work package.- Returns:
- the derived start date
-
setDerivedStartDate
public void setDerivedStartDate(Date derivedStartDate)
Sets the derived start date of the work package.- Parameters:
derivedStartDate- the derived start date to set
-
getDerivedDueDate
public Date getDerivedDueDate()
Gets the derived due date of the work package.- Returns:
- the derived due date
-
setDerivedDueDate
public void setDerivedDueDate(Date derivedDueDate)
Sets the derived due date of the work package.- Parameters:
derivedDueDate- the derived due date to set
-
getType
public String getType()
Gets the internal type of the work package.- Returns:
- the type
-
setType
public void setType(String type)
Sets the internal type of the work package.- Parameters:
type- the type to set
-
getSubject
public String getSubject()
Gets the subject or title of the work package.- Returns:
- the subject
-
setSubject
public void setSubject(String subject)
Sets the subject or title of the work package.- Parameters:
subject- the subject to set
-
getDescription
public String getDescription()
Gets the description of the work package.- Returns:
- the description
-
setDescription
public void setDescription(String description)
Sets the description of the work package.- Parameters:
description- the description to set
-
getStartDate
public Date getStartDate()
Gets the start date of the work package.- Returns:
- the start date
-
setStartDate
public void setStartDate(Date startDate)
Sets the start date of the work package.- Parameters:
startDate- the start date to set
-
getDueDate
public Date getDueDate()
Gets the due date of the work package.- Returns:
- the due date
-
setDueDate
public void setDueDate(Date dueDate)
Sets the due date of the work package.- Parameters:
dueDate- the due date to set
-
getCreatedAt
public Date getCreatedAt()
Gets the creation timestamp of the work package.- Returns:
- the created at date
-
setCreatedAt
public void setCreatedAt(Date createdAt)
Sets the creation timestamp of the work package.- Parameters:
createdAt- the created at date to set
-
getUpdatedAt
public Date getUpdatedAt()
Gets the last updated timestamp of the work package.- Returns:
- the updated at date
-
setUpdatedAt
public void setUpdatedAt(Date updatedAt)
Sets the last updated timestamp of the work package.- Parameters:
updatedAt- the updated at date to set
-
getTypeOfWorkPackage
public Linkable getTypeOfWorkPackage()
Gets the type of work package, which includes its value and reference link.- Returns:
- the type of work package as a
Linkable
-
setTypeOfWorkPackage
public void setTypeOfWorkPackage(Linkable typeOfWorkPackage)
Sets the type of work package, including its value and reference link.- Parameters:
typeOfWorkPackage- the type of work package to set as aLinkable
-
getPriority
public Linkable getPriority()
Gets the priority of the work package, including its value and reference link.- Returns:
- the priority as a
Linkable
-
setPriority
public void setPriority(Linkable priority)
Sets the priority of the work package, including its value and reference link.- Parameters:
priority- the priority to set as aLinkable
-
getPercentageDone
public Integer getPercentageDone()
Gets the percentage done for the work package.- Returns:
- the percentage done as an integer
-
setPercentageDone
public void setPercentageDone(Integer percentageDone)
Sets the percentage done for the work package.- Parameters:
percentageDone- the percentage to set
-
getProject
public Linkable getProject()
Gets the progress associated with the work package, including its reference.- Returns:
- the project as a
Linkable
-
setProject
public void setProject(Linkable project)
Sets the project associated with the work package.- Parameters:
project- the project to set as aLinkable
-
getStatus
public Linkable getStatus()
Gets the status of the work package, including its value and reference link.- Returns:
- the status as a
Linkable
-
setStatus
public void setStatus(Linkable status)
Sets the status of the work package, including its value and reference link.- Parameters:
status- the status to set as aLinkable
-
getAuthor
public Linkable getAuthor()
Gets the author of the work package, including their value and reference link.- Returns:
- the author as a
Linkable
-
setAuthor
public void setAuthor(Linkable author)
Sets the author of the work package, including their value and reference link.- Parameters:
author- the author to set as aLinkable
-
getAssignee
public Linkable getAssignee()
Gets the assignee of the work package, including their value and reference link.- Returns:
- the assignee as a
Linkable
-
setAssignee
public void setAssignee(Linkable assignee)
Sets the assignee of the work package, including their value and reference link.- Parameters:
assignee- the assignee to set as aLinkable
-
getName
public String getName()
- Overrides:
getNamein classBaseOpenProjectObject- Returns:
- the name of the work item project.
-
setName
public void setName(String name)
- Overrides:
setNamein classBaseOpenProjectObject- Parameters:
name- seeBaseOpenProjectObject.getName().
-
-