Class CreateWorkPackage
- java.lang.Object
-
- com.xwiki.projectmanagement.openproject.model.CreateWorkPackage
-
public class CreateWorkPackage extends Object
Describes the payload for creating a work package in OpenProject.- Since:
- 1.1
- Version:
- $Id$
-
-
Constructor Summary
Constructors Constructor Description CreateWorkPackage()Default constructor.CreateWorkPackage(String project, String subject, String assignee, String type, String status, String priority)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAssignee()Getter for the assignee of the work package.StringgetDescription()Getter for the description of the work package.StringgetDueDate()Getter for the due date of the work package.StringgetPriority()Getter for the priority of the work package.StringgetProject()Getter for the project identifier.StringgetStartDate()Getter for the start date of the work package.StringgetStatus()Getter for the status of the work package.StringgetSubject()Getter for the subject of the work package.StringgetType()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.voidsetStatus(String status)Setter for the status of the work package.voidsetSubject(String subject)Setter for the subject.voidsetType(String type)Setter for the type of the work package.
-
-
-
Constructor Detail
-
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 Detail
-
getProject
public String getProject()
Getter for the project identifier.- Returns:
- the project
-
setProject
public void setProject(String project)
Setter for the project.- Parameters:
project- seegetProject().
-
getSubject
public String getSubject()
Getter for the subject of the work package.- Returns:
- the subject of the work package
-
setSubject
public void setSubject(String subject)
Setter for the subject.- Parameters:
subject- seegetSubject().
-
getAssignee
public String getAssignee()
Getter for the assignee of the work package.- Returns:
- the assignee of the work package
-
setAssignee
public void setAssignee(String assignee)
Setter for the assignee of the work package.- Parameters:
assignee- seegetAssignee().
-
getType
public String getType()
Getter for the type of the work package.- Returns:
- the type of the work package
-
setType
public void setType(String type)
Setter for the type of the work package.- Parameters:
type- seegetType().
-
getStatus
public String getStatus()
Getter for the status of the work package.- Returns:
- the status of the work package
-
setStatus
public void setStatus(String status)
Setter for the status of the work package.- Parameters:
status- seegetStatus().
-
getPriority
public String getPriority()
Getter for the priority of the work package.- Returns:
- the priority of the work package
-
setPriority
public void setPriority(String priority)
Setter for the priority.- Parameters:
priority- seegetPriority().
-
getDescription
public String getDescription()
Getter for the description of the work package.- Returns:
- the description of the work package
-
setDescription
public void setDescription(String description)
Setter for the description of the work package.- Parameters:
description- seegetDescription().
-
getStartDate
public String getStartDate()
Getter for the start date of the work package.- Returns:
- the start date of the work package
-
setStartDate
public void setStartDate(String startDate)
Setter for the start date of the work package.- Parameters:
startDate- seegetStartDate().
-
getDueDate
public String getDueDate()
Getter for the due date of the work package.- Returns:
- the due date of the work package
-
setDueDate
public void setDueDate(String dueDate)
Setter for the due date of the work package.- Parameters:
dueDate- seegetDueDate().
-
-