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 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 package
      assignee - the assignee of the work package
      type - the type of the work package
      status - the status of the work package
      priority - the priority of the work package
  • Method Details

    • getProject

      public String getProject()
      Getter for the project identifier.
      Returns:
      the project
    • setProject

      public void setProject(String project)
      Setter for the project.
      Parameters:
      project - see getProject().
    • 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 - see getSubject().
    • 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 - see getAssignee().
    • 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 - see getType().
    • 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 - see getStatus().
    • 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 - see getPriority().
    • 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 - see getDescription().
    • 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 - see getStartDate().
    • 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 - see getDueDate().