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:
  • Constructor Details

    • WorkPackage

      public WorkPackage()
  • Method Details

    • 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 a Linkable
    • 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 a Linkable
    • 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 a Linkable
    • 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 a Linkable
    • 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 a Linkable
    • 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 a Linkable
    • getName

      public String getName()
      Overrides:
      getName in class BaseOpenProjectObject
      Returns:
      the name of the work item project.
    • setName

      public void setName(String name)
      Overrides:
      setName in class BaseOpenProjectObject
      Parameters:
      name - see BaseOpenProjectObject.getName().