Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
佳 邓
Gitlab4j Api
Commits
1d5d936c
Commit
1d5d936c
authored
Feb 05, 2017
by
Greg Messner
Browse files
Initial check-in.
parent
11c3abbb
Changes
11
Hide whitespace changes
Inline
Side-by-side
src/main/java/com/messners/gitlab/api/models/AccessLevel.java
0 → 100644
View file @
1d5d936c
package
com.messners.gitlab.api.models
;
import
java.util.HashMap
;
import
java.util.Map
;
import
com.fasterxml.jackson.annotation.JsonCreator
;
import
com.fasterxml.jackson.annotation.JsonValue
;
public
enum
AccessLevel
{
GUEST
(
10
),
REPORTER
(
20
),
DEVELOPER
(
30
),
MASTER
(
40
),
OWNER
(
50
);
public
final
int
value
;
AccessLevel
(
int
value
)
{
this
.
value
=
value
;
}
private
static
Map
<
Integer
,
AccessLevel
>
valuesMap
=
new
HashMap
<
Integer
,
AccessLevel
>(
5
);
static
{
for
(
AccessLevel
accessLevel
:
AccessLevel
.
values
())
valuesMap
.
put
(
accessLevel
.
value
,
accessLevel
);
}
@JsonCreator
public
static
AccessLevel
forValue
(
Integer
value
)
{
return
valuesMap
.
get
(
value
);
}
@JsonValue
public
Integer
toValue
()
{
return
(
value
);
}
}
src/main/java/com/messners/gitlab/api/models/Changes.java
0 → 100644
View file @
1d5d936c
package
com.messners.gitlab.api.models
;
import
com.fasterxml.jackson.annotation.JsonInclude
;
import
com.fasterxml.jackson.annotation.JsonProperty
;
public
class
Changes
{
@JsonInclude
(
JsonInclude
.
Include
.
ALWAYS
)
@JsonProperty
(
"a_mode"
)
private
String
a_mode
;
@JsonInclude
(
JsonInclude
.
Include
.
ALWAYS
)
@JsonProperty
(
"b_mode"
)
private
String
b_mode
;
private
Boolean
deletedFile
;
private
String
diff
;
private
Boolean
newFile
;
private
String
newPath
;
private
String
oldPath
;
private
Boolean
renamedFile
;
@JsonInclude
(
JsonInclude
.
Include
.
ALWAYS
)
@JsonProperty
(
"a_mode"
)
public
String
getAMode
()
{
return
a_mode
;
}
public
void
setAMode
(
String
a_mode
)
{
this
.
a_mode
=
a_mode
;
}
@JsonInclude
(
JsonInclude
.
Include
.
ALWAYS
)
@JsonProperty
(
"b_mode"
)
public
String
getBMode
()
{
return
b_mode
;
}
public
void
setBMode
(
String
b_mode
)
{
this
.
b_mode
=
b_mode
;
}
public
Boolean
getDeletedFile
()
{
return
deletedFile
;
}
public
void
setDeletedFile
(
Boolean
deletedFile
)
{
this
.
deletedFile
=
deletedFile
;
}
public
String
getDiff
()
{
return
diff
;
}
public
void
setDiff
(
String
diff
)
{
this
.
diff
=
diff
;
}
public
Boolean
getNewFile
()
{
return
newFile
;
}
public
void
setNewFile
(
Boolean
newFile
)
{
this
.
newFile
=
newFile
;
}
public
String
getNewPath
()
{
return
newPath
;
}
public
void
setNewPath
(
String
newPath
)
{
this
.
newPath
=
newPath
;
}
public
String
getOldPath
()
{
return
oldPath
;
}
public
void
setOldPath
(
String
oldPath
)
{
this
.
oldPath
=
oldPath
;
}
public
Boolean
getRenamedFile
()
{
return
renamedFile
;
}
public
void
setRenamedFile
(
Boolean
renamedFile
)
{
this
.
renamedFile
=
renamedFile
;
}
}
src/main/java/com/messners/gitlab/api/models/CommitStats.java
0 → 100644
View file @
1d5d936c
package
com.messners.gitlab.api.models
;
import
javax.xml.bind.annotation.XmlAccessType
;
import
javax.xml.bind.annotation.XmlAccessorType
;
@XmlAccessorType
(
XmlAccessType
.
FIELD
)
public
class
CommitStats
{
private
Integer
additions
;
private
Integer
deletions
;
private
Integer
total
;
public
Integer
getAdditions
()
{
return
additions
;
}
public
void
setAdditions
(
Integer
additions
)
{
this
.
additions
=
additions
;
}
public
Integer
getDeletions
()
{
return
deletions
;
}
public
void
setDeletions
(
Integer
deletions
)
{
this
.
deletions
=
deletions
;
}
public
Integer
getTotal
()
{
return
total
;
}
public
void
setTotal
(
Integer
total
)
{
this
.
total
=
total
;
}
}
src/main/java/com/messners/gitlab/api/models/Committer.java
deleted
100644 → 0
View file @
11c3abbb
package
com.messners.gitlab.api.models
;
import
javax.xml.bind.annotation.XmlRootElement
;
@XmlRootElement
public
class
Committer
extends
AbstractUser
{
}
src/main/java/com/messners/gitlab/api/models/Identity.java
0 → 100644
View file @
1d5d936c
package
com.messners.gitlab.api.models
;
import
javax.xml.bind.annotation.XmlAccessType
;
import
javax.xml.bind.annotation.XmlAccessorType
;
@XmlAccessorType
(
XmlAccessType
.
FIELD
)
public
class
Identity
{
private
String
provider
;
private
String
externUid
;
public
String
getProvider
()
{
return
provider
;
}
public
void
setProvider
(
String
provider
)
{
this
.
provider
=
provider
;
}
public
String
getExternUid
()
{
return
externUid
;
}
public
void
setExternUid
(
String
externUid
)
{
this
.
externUid
=
externUid
;
}
}
src/main/java/com/messners/gitlab/api/models/
M
er
geRequestComment
.java
→
src/main/java/com/messners/gitlab/api/models/
P
er
missions
.java
View file @
1d5d936c
package
com.messners.gitlab.api.models
;
package
com.messners.gitlab.api.models
;
import
javax.xml.bind.annotation.XmlAccessType
;
import
javax.xml.bind.annotation.XmlAccessType
;
import
javax.xml.bind.annotation.XmlAccessorType
;
import
javax.xml.bind.annotation.XmlAccessorType
;
import
javax.xml.bind.annotation.XmlRootElement
;
import
javax.xml.bind.annotation.XmlRootElement
;
@XmlRootElement
@XmlRootElement
@XmlAccessorType
(
XmlAccessType
.
FIELD
)
@XmlAccessorType
(
XmlAccessType
.
FIELD
)
public
class
Permissions
{
public
class
MergeRequestComment
{
private
ProjectAccess
projectAccess
;
private
Author
author
;
private
ProjectAccess
groupAccess
;
private
String
note
;
public
ProjectAccess
getProjectAccess
()
{
public
Author
getAuthor
()
{
return
projectAccess
;
return
this
.
author
;
}
}
public
ProjectAccess
getGroupAccess
()
{
public
void
setAuthor
(
Author
author
)
{
return
groupAccess
;
this
.
author
=
author
;
}
}
}
public
String
getNote
()
{
return
this
.
note
;
}
public
void
setNote
(
String
note
)
{
this
.
note
=
note
;
}
}
src/main/java/com/messners/gitlab/api/models/ProjectAccess.java
0 → 100644
View file @
1d5d936c
package
com.messners.gitlab.api.models
;
import
javax.xml.bind.annotation.XmlAccessType
;
import
javax.xml.bind.annotation.XmlAccessorType
;
@XmlAccessorType
(
XmlAccessType
.
FIELD
)
public
class
ProjectAccess
{
private
AccessLevel
accessLevel
;
private
int
notificationLevel
;
public
AccessLevel
getAccessLevel
()
{
return
(
accessLevel
);
}
public
void
setAccessLevel
(
AccessLevel
accessLevel
)
{
this
.
accessLevel
=
accessLevel
;
}
public
int
getNotificationLevel
()
{
return
(
notificationLevel
);
}
public
void
setNotificationLevel
(
int
notificationLevel
)
{
this
.
notificationLevel
=
notificationLevel
;
}
}
src/main/java/com/messners/gitlab/api/models/ProjectSharedGroup.java
0 → 100644
View file @
1d5d936c
package
com.messners.gitlab.api.models
;
import
javax.xml.bind.annotation.XmlAccessType
;
import
javax.xml.bind.annotation.XmlAccessorType
;
@XmlAccessorType
(
XmlAccessType
.
FIELD
)
public
class
ProjectSharedGroup
{
private
Integer
groupId
;
private
String
groupName
;
private
AccessLevel
groupAccessLevel
;
public
int
getGroupId
()
{
return
groupId
;
}
public
void
setGroupId
(
int
groupId
)
{
this
.
groupId
=
groupId
;
}
public
String
getGroupName
()
{
return
groupName
;
}
public
void
setGroupName
(
String
groupName
)
{
this
.
groupName
=
groupName
;
}
public
AccessLevel
getGroupAccessLevel
()
{
return
(
groupAccessLevel
);
}
public
void
setGroupAccessLevel
(
AccessLevel
accessLevel
)
{
this
.
groupAccessLevel
=
accessLevel
;
}
}
src/main/java/com/messners/gitlab/api/models/
Parent
.java
→
src/main/java/com/messners/gitlab/api/models/
Release
.java
View file @
1d5d936c
package
com.messners.gitlab.api.models
;
package
com.messners.gitlab.api.models
;
import
javax.xml.bind.annotation.XmlAccessType
;
import
javax.xml.bind.annotation.XmlAccessType
;
import
javax.xml.bind.annotation.XmlAccessorType
;
import
javax.xml.bind.annotation.XmlAccessorType
;
import
javax.xml.bind.annotation.XmlRootElement
;
import
javax.xml.bind.annotation.XmlRootElement
;
@XmlRootElement
@XmlRootElement
@XmlAccessorType
(
XmlAccessType
.
FIELD
)
@XmlAccessorType
(
XmlAccessType
.
FIELD
)
public
class
Parent
{
public
class
Release
{
private
String
id
;
private
String
tagName
;
private
String
description
;
public
String
getId
()
{
return
this
.
id
;
public
String
getTagName
()
{
}
return
tagName
;
}
public
void
setId
(
String
id
)
{
this
.
id
=
id
;
public
void
setTagName
(
String
tagName
)
{
}
this
.
tagName
=
tagName
;
}
}
\ No newline at end of file
public
String
getDescription
()
{
return
description
;
}
public
void
setDescription
(
String
description
)
{
this
.
description
=
description
;
}
}
src/main/java/com/messners/gitlab/api/webhook/IssueEvent.java
0 → 100644
View file @
1d5d936c
package
com.messners.gitlab.api.webhook
;
import
javax.xml.bind.annotation.XmlAccessType
;
import
javax.xml.bind.annotation.XmlAccessorType
;
@XmlAccessorType
(
XmlAccessType
.
FIELD
)
public
class
IssueEvent
extends
EventObject
{
public
static
final
String
OBJECT_KIND
=
"issue"
;
private
EventObjectAttributes
objectAttributes
;
public
EventObjectAttributes
getObjectAttributes
()
{
return
this
.
objectAttributes
;
}
public
void
setObjectAttributes
(
EventObjectAttributes
objectAttributes
)
{
this
.
objectAttributes
=
objectAttributes
;
}
}
src/main/java/com/messners/gitlab/api/webhook/MergeRequestEvent.java
0 → 100644
View file @
1d5d936c
package
com.messners.gitlab.api.webhook
;
import
javax.xml.bind.annotation.XmlAccessType
;
import
javax.xml.bind.annotation.XmlAccessorType
;
@XmlAccessorType
(
XmlAccessType
.
FIELD
)
public
class
MergeRequestEvent
extends
EventObject
{
public
static
final
String
OBJECT_KIND
=
"merge_request"
;
private
EventObjectAttributes
objectAttributes
;
public
EventObjectAttributes
getObjectAttributes
()
{
return
this
.
objectAttributes
;
}
public
void
setObjectAttributes
(
EventObjectAttributes
objectAttributes
)
{
this
.
objectAttributes
=
objectAttributes
;
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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