Class Project

java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<String,Object>
com.xwiki.projectmanagement.model.Project
All Implemented Interfaces:
Serializable, Cloneable, Map<String,Object>

public class Project extends HashMap<String,Object>
Describes a project coming from a project management platform.
Since:
1.2.0
Version:
$Id$
See Also:
  • Field Details

    • KEY_IDENTIFIER

      public static final String KEY_IDENTIFIER
      The key identifying the identifier property of the project.
      See Also:
    • KEY_NAME

      public static final String KEY_NAME
      The key identifying the name property of the project.
      See Also:
    • KEY_DESCRIPTION

      public static final String KEY_DESCRIPTION
      The key identifying the description property of the project.
      See Also:
  • Constructor Details

    • Project

      public Project()
  • Method Details

    • getIdentifier

      public Linkable getIdentifier()
      Returns:
      the identifier for this project together with a link to its location. For example, Open project and GitHub identify work packages numerically: '1001', Jira using a key: 'XWIKI-1001'.
    • setIdentifier

      public void setIdentifier(Linkable identifier)
      Parameters:
      identifier - see getIdentifier().
    • getName

      public String getName()
      Returns:
      a user facing, pretty name of the project.
    • setName

      public void setName(String name)
      Parameters:
      name - see getName()}.
    • getDescription

      public String getDescription()
      Returns:
      a text that describes this project.
    • setDescription

      public void setDescription(String description)
      Parameters:
      description - see getDescription().
    • getMapEntries

      public Map<String,Object> getMapEntries()
      Returns:
      the map.
    • putEntry

      public void putEntry(String key, Object value)
      Parameters:
      key - the key.
      value - the value.