Class GitLabRepository
java.lang.Object
com.mooltiverse.oss.nyx.services.gitlab.GitLabRepository
- All Implemented Interfaces:
GitHostedRepository
A Git repository hosted on GitLab.
-
Method Summary
Modifier and TypeMethodDescriptionprotected com.mooltiverse.oss.nyx.services.gitlab.API
getAPI()
Returns the internal API reference.Returns the map of attributes this object is built onReturns the repository default branch.Returns the repository description.Returns the repository full name.Returns the repository HTTP URL.getID()
Returns the repository ID.getName()
Returns the repository name.Returns the repository SSH URL.toAttributeMap(com.fasterxml.jackson.databind.JsonNode node)
Reads all the attributes of the given object and puts them in the resulting map.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 Details
-
getDefaultBranch
Returns the repository default branch.- Specified by:
getDefaultBranch
in interfaceGitHostedRepository
- Returns:
- the repository default branch.
-
getDescription
Returns the repository description.- Specified by:
getDescription
in interfaceGitHostedRepository
- Returns:
- the repository description.
-
getFullName
Returns the repository full name.- Specified by:
getFullName
in interfaceGitHostedRepository
- Returns:
- the repository full name.
-
getHTTPURL
Returns the repository HTTP URL.- Specified by:
getHTTPURL
in interfaceGitHostedRepository
- Returns:
- the repository HTTP URL.
-
getSSHURL
Returns the repository SSH URL.- Specified by:
getSSHURL
in interfaceGitHostedRepository
- Returns:
- the repository SSH URL.
-
getID
Returns the repository ID.- Specified by:
getID
in interfaceGitHostedRepository
- Returns:
- the repository ID.
-
getName
Returns the repository name.- Specified by:
getName
in interfaceGitHostedRepository
- Returns:
- the repository name.
-
toAttributeMap
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.
-
getAttributes
Returns the map of attributes this object is built on- Returns:
- the map of attributes this object is built on
-