Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
java-gitlab-api
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
沈俊林
java-gitlab-api
Commits
10a867b0
Commit
10a867b0
authored
Apr 10, 2014
by
Adam Retter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support for getting details of a Gitlab Group
parent
6f177d84
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
64 additions
and
11 deletions
+64
-11
GitlabAPI.java
src/main/java/org/gitlab/api/GitlabAPI.java
+6
-11
GitlabGroup.java
src/main/java/org/gitlab/api/models/GitlabGroup.java
+58
-0
No files found.
src/main/java/org/gitlab/api/GitlabAPI.java
View file @
10a867b0
...
...
@@ -10,17 +10,7 @@ import java.util.List;
import
org.codehaus.jackson.map.DeserializationConfig
;
import
org.codehaus.jackson.map.ObjectMapper
;
import
org.gitlab.api.http.GitlabHTTPRequestor
;
import
org.gitlab.api.models.GitlabBranch
;
import
org.gitlab.api.models.GitlabCommit
;
import
org.gitlab.api.models.GitlabIssue
;
import
org.gitlab.api.models.GitlabMergeRequest
;
import
org.gitlab.api.models.GitlabMilestone
;
import
org.gitlab.api.models.GitlabNamespace
;
import
org.gitlab.api.models.GitlabNote
;
import
org.gitlab.api.models.GitlabProject
;
import
org.gitlab.api.models.GitlabProjectHook
;
import
org.gitlab.api.models.GitlabProjectMember
;
import
org.gitlab.api.models.GitlabSession
;
import
org.gitlab.api.models.*
;
/**
* Gitlab API Wrapper class
...
...
@@ -86,6 +76,11 @@ public class GitlabAPI {
return
new
URL
(
_hostUrl
+
tailAPIUrl
);
}
public
GitlabGroup
getGroup
(
Integer
groupId
)
throws
IOException
{
String
tailUrl
=
GitlabGroup
.
URL
+
"/"
+
groupId
;
return
retrieve
().
to
(
tailUrl
,
GitlabGroup
.
class
);
}
public
GitlabProject
getProject
(
Integer
projectId
)
throws
IOException
{
String
tailUrl
=
GitlabProject
.
URL
+
"/"
+
projectId
;
return
retrieve
().
to
(
tailUrl
,
GitlabProject
.
class
);
...
...
src/main/java/org/gitlab/api/models/GitlabGroup.java
0 → 100644
View file @
10a867b0
package
org
.
gitlab
.
api
.
models
;
import
org.codehaus.jackson.annotate.JsonProperty
;
public
class
GitlabGroup
{
public
static
final
String
URL
=
"/groups"
;
private
Integer
_id
;
private
String
_name
;
private
String
_path
;
@JsonProperty
(
"ldap_cn"
)
private
String
_ldapCn
;
@JsonProperty
(
"ldap_access"
)
private
Integer
_ldapAccess
;
public
Integer
getId
()
{
return
_id
;
}
public
void
setId
(
Integer
id
)
{
_id
=
id
;
}
public
String
getName
()
{
return
_name
;
}
public
void
setName
(
String
name
)
{
_name
=
name
;
}
public
String
getPath
()
{
return
_path
;
}
public
void
setPath
(
String
path
)
{
_path
=
path
;
}
public
String
getLdapCn
()
{
return
_ldapCn
;
}
public
void
setLdapCn
(
String
ldapCn
)
{
this
.
_ldapCn
=
ldapCn
;
}
public
Integer
getLdapAccess
()
{
return
_ldapAccess
;
}
public
void
setLdapAccess
(
Integer
ldapAccess
)
{
this
.
_ldapAccess
=
ldapAccess
;
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment