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
b9bf3e92
Unverified
Commit
b9bf3e92
authored
Nov 28, 2018
by
Greg Messner
Committed by
GitHub
Nov 28, 2018
Browse files
Added toString() implementation to model classes (#271)
parent
d5c5bd87
Changes
63
Hide whitespace changes
Inline
Side-by-side
src/main/java/org/gitlab4j/api/models/FileUpload.java
View file @
b9bf3e92
...
@@ -4,6 +4,8 @@ import javax.xml.bind.annotation.XmlAccessType;
...
@@ -4,6 +4,8 @@ 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
;
import
org.gitlab4j.api.utils.JacksonJson
;
@XmlRootElement
@XmlRootElement
@XmlAccessorType
(
XmlAccessType
.
FIELD
)
@XmlAccessorType
(
XmlAccessType
.
FIELD
)
public
class
FileUpload
{
public
class
FileUpload
{
...
@@ -35,4 +37,9 @@ public class FileUpload {
...
@@ -35,4 +37,9 @@ public class FileUpload {
public
void
setMarkdown
(
String
markdown
)
{
public
void
setMarkdown
(
String
markdown
)
{
this
.
markdown
=
markdown
;
this
.
markdown
=
markdown
;
}
}
@Override
public
String
toString
()
{
return
(
JacksonJson
.
toJsonString
(
this
));
}
}
}
src/main/java/org/gitlab4j/api/models/Group.java
View file @
b9bf3e92
...
@@ -7,6 +7,8 @@ import javax.xml.bind.annotation.XmlAccessType;
...
@@ -7,6 +7,8 @@ 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
;
import
org.gitlab4j.api.utils.JacksonJson
;
@XmlRootElement
@XmlRootElement
@XmlAccessorType
(
XmlAccessType
.
FIELD
)
@XmlAccessorType
(
XmlAccessType
.
FIELD
)
public
class
Group
{
public
class
Group
{
...
@@ -275,4 +277,9 @@ public class Group {
...
@@ -275,4 +277,9 @@ public class Group {
this
.
sharedProjects
=
sharedProjects
;
this
.
sharedProjects
=
sharedProjects
;
return
this
;
return
this
;
}
}
@Override
public
String
toString
()
{
return
(
JacksonJson
.
toJsonString
(
this
));
}
}
}
src/main/java/org/gitlab4j/api/models/HealthCheckInfo.java
View file @
b9bf3e92
...
@@ -4,6 +4,8 @@ import javax.xml.bind.annotation.XmlAccessType;
...
@@ -4,6 +4,8 @@ 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
;
import
org.gitlab4j.api.utils.JacksonJson
;
@XmlRootElement
@XmlRootElement
@XmlAccessorType
(
XmlAccessType
.
FIELD
)
@XmlAccessorType
(
XmlAccessType
.
FIELD
)
public
class
HealthCheckInfo
{
public
class
HealthCheckInfo
{
...
@@ -70,4 +72,9 @@ public class HealthCheckInfo {
...
@@ -70,4 +72,9 @@ public class HealthCheckInfo {
public
void
setGitalyCheck
(
HealthCheckItem
gitalyCheck
)
{
public
void
setGitalyCheck
(
HealthCheckItem
gitalyCheck
)
{
this
.
gitalyCheck
=
gitalyCheck
;
this
.
gitalyCheck
=
gitalyCheck
;
}
}
@Override
public
String
toString
()
{
return
(
JacksonJson
.
toJsonString
(
this
));
}
}
}
src/main/java/org/gitlab4j/api/models/HealthCheckItem.java
View file @
b9bf3e92
package
org.gitlab4j.api.models
;
package
org.gitlab4j.api.models
;
import
java.util.Map
;
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
java.util.Map
;
import
org.gitlab4j.api.utils.JacksonJson
;
@XmlAccessorType
(
XmlAccessType
.
FIELD
)
@XmlAccessorType
(
XmlAccessType
.
FIELD
)
public
class
HealthCheckItem
{
public
class
HealthCheckItem
{
...
@@ -33,4 +36,9 @@ public class HealthCheckItem {
...
@@ -33,4 +36,9 @@ public class HealthCheckItem {
public
void
setMessage
(
String
message
)
{
public
void
setMessage
(
String
message
)
{
this
.
message
=
message
;
this
.
message
=
message
;
}
}
@Override
public
String
toString
()
{
return
(
JacksonJson
.
toJsonString
(
this
));
}
}
}
src/main/java/org/gitlab4j/api/models/Identity.java
View file @
b9bf3e92
...
@@ -3,6 +3,8 @@ package org.gitlab4j.api.models;
...
@@ -3,6 +3,8 @@ package org.gitlab4j.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
org.gitlab4j.api.utils.JacksonJson
;
@XmlAccessorType
(
XmlAccessType
.
FIELD
)
@XmlAccessorType
(
XmlAccessType
.
FIELD
)
public
class
Identity
{
public
class
Identity
{
...
@@ -24,4 +26,9 @@ public class Identity {
...
@@ -24,4 +26,9 @@ public class Identity {
public
void
setExternUid
(
String
externUid
)
{
public
void
setExternUid
(
String
externUid
)
{
this
.
externUid
=
externUid
;
this
.
externUid
=
externUid
;
}
}
@Override
public
String
toString
()
{
return
(
JacksonJson
.
toJsonString
(
this
));
}
}
}
src/main/java/org/gitlab4j/api/models/ImpersonationToken.java
View file @
b9bf3e92
...
@@ -6,6 +6,7 @@ import java.util.List;
...
@@ -6,6 +6,7 @@ import java.util.List;
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
org.gitlab4j.api.utils.JacksonJson
;
import
org.gitlab4j.api.utils.JacksonJsonEnumHelper
;
import
org.gitlab4j.api.utils.JacksonJsonEnumHelper
;
import
com.fasterxml.jackson.annotation.JsonCreator
;
import
com.fasterxml.jackson.annotation.JsonCreator
;
...
@@ -118,4 +119,9 @@ public class ImpersonationToken {
...
@@ -118,4 +119,9 @@ public class ImpersonationToken {
public
void
setExpiresAt
(
Date
expiresAt
)
{
public
void
setExpiresAt
(
Date
expiresAt
)
{
this
.
expiresAt
=
expiresAt
;
this
.
expiresAt
=
expiresAt
;
}
}
@Override
public
String
toString
()
{
return
(
JacksonJson
.
toJsonString
(
this
));
}
}
}
src/main/java/org/gitlab4j/api/models/Issue.java
View file @
b9bf3e92
...
@@ -9,6 +9,7 @@ import javax.xml.bind.annotation.XmlAccessorType;
...
@@ -9,6 +9,7 @@ import javax.xml.bind.annotation.XmlAccessorType;
import
javax.xml.bind.annotation.XmlRootElement
;
import
javax.xml.bind.annotation.XmlRootElement
;
import
org.gitlab4j.api.Constants.IssueState
;
import
org.gitlab4j.api.Constants.IssueState
;
import
org.gitlab4j.api.utils.JacksonJson
;
@XmlRootElement
@XmlRootElement
@XmlAccessorType
(
XmlAccessType
.
FIELD
)
@XmlAccessorType
(
XmlAccessType
.
FIELD
)
...
@@ -221,4 +222,9 @@ public class Issue {
...
@@ -221,4 +222,9 @@ public class Issue {
public
void
setTimeStats
(
TimeStats
timeStats
)
{
public
void
setTimeStats
(
TimeStats
timeStats
)
{
this
.
timeStats
=
timeStats
;
this
.
timeStats
=
timeStats
;
}
}
@Override
public
String
toString
()
{
return
(
JacksonJson
.
toJsonString
(
this
));
}
}
}
src/main/java/org/gitlab4j/api/models/Job.java
View file @
b9bf3e92
...
@@ -7,6 +7,8 @@ import javax.xml.bind.annotation.XmlAccessType;
...
@@ -7,6 +7,8 @@ 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
;
import
org.gitlab4j.api.utils.JacksonJson
;
@XmlRootElement
@XmlRootElement
@XmlAccessorType
(
XmlAccessType
.
FIELD
)
@XmlAccessorType
(
XmlAccessType
.
FIELD
)
public
class
Job
{
public
class
Job
{
...
@@ -248,4 +250,9 @@ public class Job {
...
@@ -248,4 +250,9 @@ public class Job {
this
.
status
=
status
;
this
.
status
=
status
;
return
this
;
return
this
;
}
}
@Override
public
String
toString
()
{
return
(
JacksonJson
.
toJsonString
(
this
));
}
}
}
src/main/java/org/gitlab4j/api/models/Key.java
View file @
b9bf3e92
...
@@ -7,6 +7,8 @@ import javax.xml.bind.annotation.XmlAccessType;
...
@@ -7,6 +7,8 @@ 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
;
import
org.gitlab4j.api.utils.JacksonJson
;
@XmlRootElement
@XmlRootElement
@XmlAccessorType
(
XmlAccessType
.
FIELD
)
@XmlAccessorType
(
XmlAccessType
.
FIELD
)
public
class
Key
{
public
class
Key
{
...
@@ -56,4 +58,9 @@ public class Key {
...
@@ -56,4 +58,9 @@ public class Key {
public
void
setUser
(
User
user
)
{
public
void
setUser
(
User
user
)
{
this
.
user
=
user
;
this
.
user
=
user
;
}
}
@Override
public
String
toString
()
{
return
(
JacksonJson
.
toJsonString
(
this
));
}
}
}
src/main/java/org/gitlab4j/api/models/Label.java
View file @
b9bf3e92
...
@@ -4,6 +4,8 @@ import javax.xml.bind.annotation.XmlAccessType;
...
@@ -4,6 +4,8 @@ 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
;
import
org.gitlab4j.api.utils.JacksonJson
;
@XmlRootElement
@XmlRootElement
@XmlAccessorType
(
XmlAccessType
.
FIELD
)
@XmlAccessorType
(
XmlAccessType
.
FIELD
)
public
class
Label
{
public
class
Label
{
...
@@ -89,4 +91,9 @@ public class Label {
...
@@ -89,4 +91,9 @@ public class Label {
public
void
setPriority
(
Integer
priority
)
{
public
void
setPriority
(
Integer
priority
)
{
this
.
priority
=
priority
;
this
.
priority
=
priority
;
}
}
@Override
public
String
toString
()
{
return
(
JacksonJson
.
toJsonString
(
this
));
}
}
}
src/main/java/org/gitlab4j/api/models/LicenseTemplate.java
View file @
b9bf3e92
package
org.gitlab4j.api.models
;
package
org.gitlab4j.api.models
;
import
java.util.List
;
import
java.util.List
;
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
;
import
org.gitlab4j.api.utils.JacksonJson
;
@XmlRootElement
@XmlRootElement
@XmlAccessorType
(
XmlAccessType
.
FIELD
)
@XmlAccessorType
(
XmlAccessType
.
FIELD
)
public
class
LicenseTemplate
{
public
class
LicenseTemplate
{
...
@@ -108,4 +111,9 @@ public class LicenseTemplate {
...
@@ -108,4 +111,9 @@ public class LicenseTemplate {
public
void
setContent
(
String
content
)
{
public
void
setContent
(
String
content
)
{
this
.
content
=
content
;
this
.
content
=
content
;
}
}
@Override
public
String
toString
()
{
return
(
JacksonJson
.
toJsonString
(
this
));
}
}
}
src/main/java/org/gitlab4j/api/models/Markdown.java
View file @
b9bf3e92
...
@@ -4,6 +4,8 @@ import javax.xml.bind.annotation.XmlAccessType;
...
@@ -4,6 +4,8 @@ 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
;
import
org.gitlab4j.api.utils.JacksonJson
;
@XmlRootElement
@XmlRootElement
@XmlAccessorType
(
XmlAccessType
.
FIELD
)
@XmlAccessorType
(
XmlAccessType
.
FIELD
)
public
class
Markdown
{
public
class
Markdown
{
...
@@ -17,4 +19,9 @@ public class Markdown {
...
@@ -17,4 +19,9 @@ public class Markdown {
public
void
setHtml
(
String
html
)
{
public
void
setHtml
(
String
html
)
{
this
.
html
=
html
;
this
.
html
=
html
;
}
}
@Override
public
String
toString
()
{
return
(
JacksonJson
.
toJsonString
(
this
));
}
}
}
src/main/java/org/gitlab4j/api/models/Member.java
View file @
b9bf3e92
...
@@ -7,6 +7,8 @@ import javax.xml.bind.annotation.XmlAccessType;
...
@@ -7,6 +7,8 @@ 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
;
import
org.gitlab4j.api.utils.JacksonJson
;
@XmlRootElement
@XmlRootElement
@XmlAccessorType
(
XmlAccessType
.
FIELD
)
@XmlAccessorType
(
XmlAccessType
.
FIELD
)
public
class
Member
{
public
class
Member
{
...
@@ -90,4 +92,9 @@ public class Member {
...
@@ -90,4 +92,9 @@ public class Member {
this
.
username
=
username
;
this
.
username
=
username
;
return
this
;
return
this
;
}
}
@Override
public
String
toString
()
{
return
(
JacksonJson
.
toJsonString
(
this
));
}
}
}
src/main/java/org/gitlab4j/api/models/MergeRequest.java
View file @
b9bf3e92
...
@@ -373,4 +373,9 @@ public class MergeRequest {
...
@@ -373,4 +373,9 @@ public class MergeRequest {
public
static
final
boolean
isValid
(
MergeRequest
mergeRequest
)
{
public
static
final
boolean
isValid
(
MergeRequest
mergeRequest
)
{
return
(
mergeRequest
!=
null
&&
mergeRequest
.
getId
()
!=
null
);
return
(
mergeRequest
!=
null
&&
mergeRequest
.
getId
()
!=
null
);
}
}
@Override
public
String
toString
()
{
return
(
JacksonJson
.
toJsonString
(
this
));
}
}
}
src/main/java/org/gitlab4j/api/models/Milestone.java
View file @
b9bf3e92
...
@@ -6,6 +6,8 @@ import javax.xml.bind.annotation.XmlAccessType;
...
@@ -6,6 +6,8 @@ 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
;
import
org.gitlab4j.api.utils.JacksonJson
;
@XmlRootElement
@XmlRootElement
@XmlAccessorType
(
XmlAccessType
.
FIELD
)
@XmlAccessorType
(
XmlAccessType
.
FIELD
)
public
class
Milestone
{
public
class
Milestone
{
...
@@ -91,4 +93,9 @@ public class Milestone {
...
@@ -91,4 +93,9 @@ public class Milestone {
public
void
setUpdatedAt
(
Date
updatedAt
)
{
public
void
setUpdatedAt
(
Date
updatedAt
)
{
this
.
updatedAt
=
updatedAt
;
this
.
updatedAt
=
updatedAt
;
}
}
@Override
public
String
toString
()
{
return
(
JacksonJson
.
toJsonString
(
this
));
}
}
}
src/main/java/org/gitlab4j/api/models/Namespace.java
View file @
b9bf3e92
...
@@ -4,6 +4,8 @@ import javax.xml.bind.annotation.XmlAccessType;
...
@@ -4,6 +4,8 @@ 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
;
import
org.gitlab4j.api.utils.JacksonJson
;
@XmlRootElement
@XmlRootElement
@XmlAccessorType
(
XmlAccessType
.
FIELD
)
@XmlAccessorType
(
XmlAccessType
.
FIELD
)
public
class
Namespace
{
public
class
Namespace
{
...
@@ -78,4 +80,9 @@ public class Namespace {
...
@@ -78,4 +80,9 @@ public class Namespace {
this
.
fullPath
=
fullPath
;
this
.
fullPath
=
fullPath
;
return
this
;
return
this
;
}
}
@Override
public
String
toString
()
{
return
(
JacksonJson
.
toJsonString
(
this
));
}
}
}
src/main/java/org/gitlab4j/api/models/Note.java
View file @
b9bf3e92
...
@@ -6,6 +6,7 @@ import javax.xml.bind.annotation.XmlAccessType;
...
@@ -6,6 +6,7 @@ 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
;
import
org.gitlab4j.api.utils.JacksonJson
;
import
org.gitlab4j.api.utils.JacksonJsonEnumHelper
;
import
org.gitlab4j.api.utils.JacksonJsonEnumHelper
;
import
com.fasterxml.jackson.annotation.JsonCreator
;
import
com.fasterxml.jackson.annotation.JsonCreator
;
...
@@ -193,4 +194,9 @@ public class Note {
...
@@ -193,4 +194,9 @@ public class Note {
public
void
setUpvote
(
Boolean
upvote
)
{
public
void
setUpvote
(
Boolean
upvote
)
{
this
.
upvote
=
upvote
;
this
.
upvote
=
upvote
;
}
}
@Override
public
String
toString
()
{
return
(
JacksonJson
.
toJsonString
(
this
));
}
}
}
src/main/java/org/gitlab4j/api/models/NotificationSettings.java
View file @
b9bf3e92
...
@@ -4,6 +4,7 @@ import javax.xml.bind.annotation.XmlAccessType;
...
@@ -4,6 +4,7 @@ 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
;
import
org.gitlab4j.api.utils.JacksonJson
;
import
org.gitlab4j.api.utils.JacksonJsonEnumHelper
;
import
org.gitlab4j.api.utils.JacksonJsonEnumHelper
;
import
com.fasterxml.jackson.annotation.JsonCreator
;
import
com.fasterxml.jackson.annotation.JsonCreator
;
...
@@ -146,6 +147,11 @@ public class NotificationSettings {
...
@@ -146,6 +147,11 @@ public class NotificationSettings {
public
void
setSuccessPipeline
(
Boolean
successPipeline
)
{
public
void
setSuccessPipeline
(
Boolean
successPipeline
)
{
this
.
successPipeline
=
successPipeline
;
this
.
successPipeline
=
successPipeline
;
}
}
@Override
public
String
toString
()
{
return
(
JacksonJson
.
toJsonString
(
this
));
}
}
}
private
Level
level
;
private
Level
level
;
...
@@ -175,4 +181,9 @@ public class NotificationSettings {
...
@@ -175,4 +181,9 @@ public class NotificationSettings {
public
void
setEvents
(
Events
events
)
{
public
void
setEvents
(
Events
events
)
{
this
.
events
=
events
;
this
.
events
=
events
;
}
}
@Override
public
String
toString
()
{
return
(
JacksonJson
.
toJsonString
(
this
));
}
}
}
\ No newline at end of file
src/main/java/org/gitlab4j/api/models/Owner.java
View file @
b9bf3e92
...
@@ -6,6 +6,8 @@ import javax.xml.bind.annotation.XmlAccessType;
...
@@ -6,6 +6,8 @@ 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
;
import
org.gitlab4j.api.utils.JacksonJson
;
@XmlRootElement
@XmlRootElement
@XmlAccessorType
(
XmlAccessType
.
FIELD
)
@XmlAccessorType
(
XmlAccessType
.
FIELD
)
public
class
Owner
{
public
class
Owner
{
...
@@ -37,4 +39,9 @@ public class Owner {
...
@@ -37,4 +39,9 @@ public class Owner {
public
void
setName
(
String
name
)
{
public
void
setName
(
String
name
)
{
this
.
name
=
name
;
this
.
name
=
name
;
}
}
@Override
public
String
toString
()
{
return
(
JacksonJson
.
toJsonString
(
this
));
}
}
}
src/main/java/org/gitlab4j/api/models/Permissions.java
View file @
b9bf3e92
...
@@ -4,6 +4,8 @@ import javax.xml.bind.annotation.XmlAccessType;
...
@@ -4,6 +4,8 @@ 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
;
import
org.gitlab4j.api.utils.JacksonJson
;
@XmlRootElement
@XmlRootElement
@XmlAccessorType
(
XmlAccessType
.
FIELD
)
@XmlAccessorType
(
XmlAccessType
.
FIELD
)
public
class
Permissions
{
public
class
Permissions
{
...
@@ -26,4 +28,9 @@ public class Permissions {
...
@@ -26,4 +28,9 @@ public class Permissions {
public
void
setGroupAccess
(
ProjectAccess
groupAccess
)
{
public
void
setGroupAccess
(
ProjectAccess
groupAccess
)
{
this
.
groupAccess
=
groupAccess
;
this
.
groupAccess
=
groupAccess
;
}
}
@Override
public
String
toString
()
{
return
(
JacksonJson
.
toJsonString
(
this
));
}
}
}
Prev
1
2
3
4
Next
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