forked from gitlab4j/gitlab4j-api
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathTeamMemberSystemHookEvent.java
155 lines (121 loc) · 3.57 KB
/
TeamMemberSystemHookEvent.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
package org.gitlab4j.api.systemhooks;
import java.util.Date;
import org.gitlab4j.api.models.Visibility;
import org.gitlab4j.api.utils.JacksonJson;
public class TeamMemberSystemHookEvent extends AbstractSystemHookEvent {
private static final long serialVersionUID = 1L;
public static final String NEW_TEAM_MEMBER_EVENT = "user_add_to_team";
public static final String TEAM_MEMBER_REMOVED_EVENT = "user_remove_from_team";
private Date createdAt;
private Date updatedAt;
private String eventName;
@Deprecated
private String projectAccess;
private String accessLevel;
private String projectName;
private String projectPath;
private Long projectId;
private String projectPathWithNamespace;
private String userEmail;
private String userName;
private String userUsername;
private Long userId;
private Visibility projectVisibility;
public Date getCreatedAt() {
return createdAt;
}
public void setCreatedAt(Date createdAt) {
this.createdAt = createdAt;
}
public Date getUpdatedAt() {
return updatedAt;
}
public void setUpdatedAt(Date updatedAt) {
this.updatedAt = updatedAt;
}
@Override
public String getEventName() {
return this.eventName;
}
public void setEventName(String eventName) {
this.eventName = eventName;
}
/**
* No longer used. Probably replaced by {@link #getAccessLevel()}
*/
@Deprecated
public String getProjectAccess() {
return projectAccess;
}
/**
* No longer used. Probably replaced by {@link #setAccessLevel(String)}
*/
@Deprecated
public void setProjectAccess(String projectAccess) {
this.projectAccess = projectAccess;
}
public String getAccessLevel() {
return accessLevel;
}
public void setAccessLevel(String accessLevel) {
this.accessLevel = accessLevel;
}
public String getProjectName() {
return projectName;
}
public void setProjectName(String projectName) {
this.projectName = projectName;
}
public String getProjectPath() {
return projectPath;
}
public void setProjectPath(String projectPath) {
this.projectPath = projectPath;
}
public Long getProjectId() {
return projectId;
}
public void setProjectId(Long projectId) {
this.projectId = projectId;
}
public String getProjectPathWithNamespace() {
return projectPathWithNamespace;
}
public void setProjectPathWithNamespace(String projectPathWithNamespace) {
this.projectPathWithNamespace = projectPathWithNamespace;
}
public String getUserEmail() {
return userEmail;
}
public void setUserEmail(String userEmail) {
this.userEmail = userEmail;
}
public String getUserName() {
return userName;
}
public void setUserName(String userName) {
this.userName = userName;
}
public String getUserUsername() {
return userUsername;
}
public void setUserUsername(String userUsername) {
this.userUsername = userUsername;
}
public Long getUserId() {
return userId;
}
public void setUserId(Long userId) {
this.userId = userId;
}
public Visibility getProjectVisibility() {
return projectVisibility;
}
public void setProjectVisibility(Visibility projectVisibility) {
this.projectVisibility = projectVisibility;
}
@Override
public String toString() {
return (JacksonJson.toJsonString(this));
}
}