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>
Describes a Work package related to OpenProject.
- Since:
- 1.0
- Version:
- $Id$
- See Also:
-
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 -
Method Summary
Modifier and TypeMethodDescriptionGets the assignee of the work package, including their value and reference link.Gets the author of the work package, including their value and reference link.Gets the creation timestamp of the work package.Gets the derived due date of the work package.Gets the derived start date of the work package.Gets the description of the work package.Gets the due date of the work package.getName()Gets the percentage done for the work package.Gets the priority of the work package, including its value and reference link.Gets the progress associated with the work package, including its reference.Gets the start date of the work package.Gets the status of the work package, including its value and reference link.Gets the subject or title of the work package.getType()Gets the internal type of the work package.Gets the type of work package, which includes its value and reference link.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.voidSets 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.voidvoidsetPercentageDone(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.voidSets the status of the work package, including its value and reference link.voidsetSubject(String subject) Sets the subject or title of the work package.voidSets 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, setSelfMethods 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, valuesMethods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
Constructor Details
-
WorkPackage
public WorkPackage()
-
-
Method Details
-
getDerivedStartDate
Gets the derived start date of the work package.- Returns:
- the derived start date
-
setDerivedStartDate
Sets the derived start date of the work package.- Parameters:
derivedStartDate- the derived start date to set
-
getDerivedDueDate
Gets the derived due date of the work package.- Returns:
- the derived due date
-
setDerivedDueDate
Sets the derived due date of the work package.- Parameters:
derivedDueDate- the derived due date to set
-
getType
Gets the internal type of the work package.- Returns:
- the type
-
setType
Sets the internal type of the work package.- Parameters:
type- the type to set
-
getSubject
Gets the subject or title of the work package.- Returns:
- the subject
-
setSubject
Sets the subject or title of the work package.- Parameters:
subject- the subject to set
-
getDescription
Gets the description of the work package.- Returns:
- the description
-
setDescription
Sets the description of the work package.- Parameters:
description- the description to set
-
getStartDate
Gets the start date of the work package.- Returns:
- the start date
-
setStartDate
Sets the start date of the work package.- Parameters:
startDate- the start date to set
-
getDueDate
Gets the due date of the work package.- Returns:
- the due date
-
setDueDate
Sets the due date of the work package.- Parameters:
dueDate- the due date to set
-
getCreatedAt
Gets the creation timestamp of the work package.- Returns:
- the created at date
-
setCreatedAt
Sets the creation timestamp of the work package.- Parameters:
createdAt- the created at date to set
-
getUpdatedAt
Gets the last updated timestamp of the work package.- Returns:
- the updated at date
-
setUpdatedAt
Sets the last updated timestamp of the work package.- Parameters:
updatedAt- the updated at date to set
-
getTypeOfWorkPackage
Gets the type of work package, which includes its value and reference link.- Returns:
- the type of work package as a
Linkable
-
setTypeOfWorkPackage
Sets the type of work package, including its value and reference link.- Parameters:
typeOfWorkPackage- the type of work package to set as aLinkable
-
getPriority
Gets the priority of the work package, including its value and reference link.- Returns:
- the priority as a
Linkable
-
setPriority
Sets the priority of the work package, including its value and reference link.- Parameters:
priority- the priority to set as aLinkable
-
getPercentageDone
Gets the percentage done for the work package.- Returns:
- the percentage done as an integer
-
setPercentageDone
Sets the percentage done for the work package.- Parameters:
percentageDone- the percentage to set
-
getProject
Gets the progress associated with the work package, including its reference.- Returns:
- the project as a
Linkable
-
setProject
Sets the project associated with the work package.- Parameters:
project- the project to set as aLinkable
-
getStatus
Gets the status of the work package, including its value and reference link.- Returns:
- the status as a
Linkable
-
setStatus
Sets the status of the work package, including its value and reference link.- Parameters:
status- the status to set as aLinkable
-
getAuthor
Gets the author of the work package, including their value and reference link.- Returns:
- the author as a
Linkable
-
setAuthor
Sets the author of the work package, including their value and reference link.- Parameters:
author- the author to set as aLinkable
-
getAssignee
Gets the assignee of the work package, including their value and reference link.- Returns:
- the assignee as a
Linkable
-
setAssignee
Sets the assignee of the work package, including their value and reference link.- Parameters:
assignee- the assignee to set as aLinkable
-
getName
- Overrides:
getNamein classBaseOpenProjectObject- Returns:
- the name of the work item project.
-
setName
- Overrides:
setNamein classBaseOpenProjectObject- Parameters:
name- seeBaseOpenProjectObject.getName().
-