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
5b171090
Commit
5b171090
authored
Nov 30, 2014
by
Tim Olshansky
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #37 from garslan/master
adding permissions for project
parents
778e8e19
2c9cd783
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
66 additions
and
0 deletions
+66
-0
.gitignore
.gitignore
+2
-0
GitlabPersmission.java
src/main/java/org/gitlab/api/models/GitlabPersmission.java
+20
-0
GitlabProject.java
src/main/java/org/gitlab/api/models/GitlabProject.java
+12
-0
GitlabProjectAccessLevel.java
.../java/org/gitlab/api/models/GitlabProjectAccessLevel.java
+32
-0
No files found.
.gitignore
View file @
5b171090
...
...
@@ -5,3 +5,5 @@ build/
target/*
*.*~
.gradle
/bin/
/target/
src/main/java/org/gitlab/api/models/GitlabPersmission.java
0 → 100644
View file @
5b171090
package
org
.
gitlab
.
api
.
models
;
import
org.codehaus.jackson.annotate.JsonProperty
;
public
class
GitlabPersmission
{
@JsonProperty
(
"project_access"
)
private
GitlabProjectAccessLevel
_projectAccess
;
@JsonProperty
(
"group_access"
)
private
GitlabProjectAccessLevel
_groupAccess
;
public
GitlabProjectAccessLevel
getProjectAccess
()
{
return
_projectAccess
;
}
public
GitlabProjectAccessLevel
getProjectGroupAccess
()
{
return
_groupAccess
;
}
}
src/main/java/org/gitlab/api/models/GitlabProject.java
View file @
5b171090
package
org
.
gitlab
.
api
.
models
;
import
java.util.Date
;
import
org.codehaus.jackson.annotate.JsonProperty
;
public
class
GitlabProject
{
...
...
@@ -63,6 +64,9 @@ public class GitlabProject {
private
GitlabNamespace
_namespace
;
@JsonProperty
(
"permissions"
)
private
GitlabPersmission
_permissions
;
public
Integer
getId
()
{
return
_id
;
}
...
...
@@ -238,4 +242,12 @@ public class GitlabProject {
public
void
setLastActivityAt
(
Date
lastActivityAt
)
{
_lastActivityAt
=
lastActivityAt
;
}
public
GitlabPersmission
getPermissions
()
{
return
_permissions
;
}
public
void
setPermissions
(
GitlabPersmission
permissions
)
{
this
.
_permissions
=
permissions
;
}
}
src/main/java/org/gitlab/api/models/GitlabProjectAccessLevel.java
0 → 100644
View file @
5b171090
package
org
.
gitlab
.
api
.
models
;
import
org.codehaus.jackson.annotate.JsonProperty
;
public
class
GitlabProjectAccessLevel
{
@JsonProperty
(
"access_level"
)
private
int
_accessLevel
;
@JsonProperty
(
"notification_level"
)
private
int
_notificationLevel
;
public
GitlabAccessLevel
getAccessLevel
()
{
return
GitlabAccessLevel
.
fromAccessValue
(
_accessLevel
);
}
public
void
setAccessLevel
(
GitlabAccessLevel
accessLevel
)
{
_accessLevel
=
accessLevel
.
accessValue
;
}
public
int
getNoficationLevel
()
{
return
_notificationLevel
;
}
public
void
setNoficationLevel
(
int
notificationLevel
)
{
this
.
_accessLevel
=
notificationLevel
;
}
}
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