Class BaseOpenProjectObject
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<String,Object>
-
- com.xwiki.projectmanagement.openproject.model.BaseOpenProjectObject
-
- All Implemented Interfaces:
Serializable,Cloneable,Map<String,Object>
- Direct Known Subclasses:
ColoredOpenProjectObject,Project,User,WorkPackage
public class BaseOpenProjectObject extends HashMap<String,Object>
Describes the base object for Open Project objects.- Since:
- 1.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>
-
-
Constructor Summary
Constructors Constructor Description BaseOpenProjectObject()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IntegergetId()Map<String,Object>getMapEntries()StringgetName()LinkablegetSelf()Gets the reference to itself, including their value and reference link.voidputEntry(String key, Object value)voidsetId(int id)voidsetName(String name)voidsetSelf(Linkable self)Sets the reference to itself, including their value and reference link.-
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_ID
public static final String KEY_ID
The key identifying the id property of the open project object.- See Also:
- Constant Field Values
-
KEY_NAME
public static final String KEY_NAME
The key identifying the name property of the open project object.- See Also:
- Constant Field Values
-
-
Method Detail
-
getId
public Integer getId()
- Returns:
- the id of the work item project.
-
setId
public void setId(int id)
- Parameters:
id- seegetId().
-
getName
public String getName()
- Returns:
- the name of the work item project.
-
getSelf
public Linkable getSelf()
Gets the reference to itself, including their value and reference link.- Returns:
- the assignee as a
Linkable
-
setSelf
public void setSelf(Linkable self)
Sets the reference to itself, including their value and reference link.- Parameters:
self- the self to set as aLinkable
-
-