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:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>
-
-
Field Summary
Fields Modifier and Type Field Description static StringKEY_DESCRIPTIONThe key identifying the description property of the project.static StringKEY_IDENTIFIERThe key identifying the identifier property of the project.static StringKEY_NAMEThe key identifying the name property of the project.
-
Constructor Summary
Constructors Constructor Description Project()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDescription()LinkablegetIdentifier()Map<String,Object>getMapEntries()StringgetName()voidputEntry(String key, Object value)voidsetDescription(String description)voidsetIdentifier(Linkable identifier)voidsetName(String name)-
Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
-
-
-
Field Detail
-
KEY_IDENTIFIER
public static final String KEY_IDENTIFIER
The key identifying the identifier property of the project.- See Also:
- Constant Field Values
-
KEY_NAME
public static final String KEY_NAME
The key identifying the name property of the project.- See Also:
- Constant Field Values
-
KEY_DESCRIPTION
public static final String KEY_DESCRIPTION
The key identifying the description property of the project.- See Also:
- Constant Field Values
-
-
Method Detail
-
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- seegetIdentifier().
-
getName
public String getName()
- Returns:
- a user facing, pretty name of the project.
-
getDescription
public String getDescription()
- Returns:
- a text that describes this project.
-
setDescription
public void setDescription(String description)
- Parameters:
description- seegetDescription().
-
-