Class GitLabUser
- java.lang.Object
-
- com.mooltiverse.oss.nyx.services.gitlab.GitLabUser
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgeFullName()Returns the full name for the user on this service.protected com.mooltiverse.oss.nyx.services.gitlab.APIgetAPI()Returns the internal API reference.Map<String,Object>getAttributes()Returns the map of attributes this object is built onStringgetID()Returns the ID for the user on this service.StringgetUserName()Returns the name for the user on this service.protected static Map<String,Object>toAttributeMap(com.fasterxml.jackson.databind.JsonNode node)Reads all the attributes of the given object and puts them in the resulting map.protected static List<Map<String,Object>>toAttributeMaps(com.fasterxml.jackson.databind.JsonNode node)Reads all the attributes of the given object immediate children and puts them in the resulting maps, one map for each child.
-
-
-
Method Detail
-
getID
public String getID()
Returns the ID for the user on this service.
-
getUserName
public String getUserName()
Returns the name for the user on this service.- Specified by:
getUserNamein interfaceUser- Returns:
- the name for the user on this service.
-
geFullName
public String geFullName()
Returns the full name for the user on this service.- Specified by:
geFullNamein interfaceUser- Returns:
- the full name for the user on this service.
-
toAttributeMap
protected static Map<String,Object> toAttributeMap(com.fasterxml.jackson.databind.JsonNode node)
Reads all the attributes of the given object and puts them in the resulting map.- Parameters:
node- the node to read the attributes from- Returns:
- the map with all the attributes from the given node
- Throws:
NullPointerException- if the given node isnull
-
toAttributeMaps
protected static List<Map<String,Object>> toAttributeMaps(com.fasterxml.jackson.databind.JsonNode node)
Reads all the attributes of the given object immediate children and puts them in the resulting maps, one map for each child.- Parameters:
node- the node to read the attributes from- Returns:
- the maps with all the attributes from the immediate children of the given node
- Throws:
NullPointerException- if the given node isnull
-
getAPI
protected com.mooltiverse.oss.nyx.services.gitlab.API getAPI()
Returns the internal API reference.- Returns:
- the internal API reference.
-
-