Class CreateWorkPackage
java.lang.Object
com.xwiki.projectmanagement.openproject.model.CreateWorkPackage
Describes the payload for creating a work package in OpenProject.
- Since:
- 1.1
- Version:
- $Id$
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGetter for the assignee of the work package.Getter for the description of the work package.Getter for the due date of the work package.Getter for the priority of the work package.Getter for the project identifier.Getter for the start date of the work package.Getter for the status of the work package.Getter for the subject of the work package.getType()Getter for the type of the work package.voidsetAssignee(String assignee) Setter for the assignee of the work package.voidsetDescription(String description) Setter for the description of the work package.voidsetDueDate(String dueDate) Setter for the due date of the work package.voidsetPriority(String priority) Setter for the priority.voidsetProject(String project) Setter for the project.voidsetStartDate(String startDate) Setter for the start date of the work package.voidSetter for the status of the work package.voidsetSubject(String subject) Setter for the subject.voidSetter for the type of the work package.
-
Constructor Details
-
CreateWorkPackage
public CreateWorkPackage()Default constructor. -
CreateWorkPackage
public CreateWorkPackage(String project, String subject, String assignee, String type, String status, String priority) Constructor.- Parameters:
project- project the project identifier, e.g. the API path of the project, such as "/api/v3/projects/1"subject- the subject of the work packageassignee- the assignee of the work packagetype- the type of the work packagestatus- the status of the work packagepriority- the priority of the work package
-
-
Method Details
-
getProject
Getter for the project identifier.- Returns:
- the project
-
setProject
Setter for the project.- Parameters:
project- seegetProject().
-
getSubject
Getter for the subject of the work package.- Returns:
- the subject of the work package
-
setSubject
Setter for the subject.- Parameters:
subject- seegetSubject().
-
getAssignee
Getter for the assignee of the work package.- Returns:
- the assignee of the work package
-
setAssignee
Setter for the assignee of the work package.- Parameters:
assignee- seegetAssignee().
-
getType
Getter for the type of the work package.- Returns:
- the type of the work package
-
setType
Setter for the type of the work package.- Parameters:
type- seegetType().
-
getStatus
Getter for the status of the work package.- Returns:
- the status of the work package
-
setStatus
Setter for the status of the work package.- Parameters:
status- seegetStatus().
-
getPriority
Getter for the priority of the work package.- Returns:
- the priority of the work package
-
setPriority
Setter for the priority.- Parameters:
priority- seegetPriority().
-
getDescription
Getter for the description of the work package.- Returns:
- the description of the work package
-
setDescription
Setter for the description of the work package.- Parameters:
description- seegetDescription().
-
getStartDate
Getter for the start date of the work package.- Returns:
- the start date of the work package
-
setStartDate
Setter for the start date of the work package.- Parameters:
startDate- seegetStartDate().
-
getDueDate
Getter for the due date of the work package.- Returns:
- the due date of the work package
-
setDueDate
Setter for the due date of the work package.- Parameters:
dueDate- seegetDueDate().
-