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
4c4349fa
Commit
4c4349fa
authored
Jul 08, 2019
by
Greg Messner
Browse files
Initial commit (#401).
parent
3404b187
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/org/gitlab4j/api/services/MattermostService.java
0 → 100644
View file @
4c4349fa
package
org.gitlab4j.api.services
;
import
com.fasterxml.jackson.annotation.JsonIgnore
;
public
class
MattermostService
extends
NotificationService
{
private
String
defaultChannel
;
public
MattermostService
withPushEvents
(
Boolean
pushEvents
)
{
return
withPushEvents
(
pushEvents
,
this
);
}
public
MattermostService
withIssuesEvents
(
Boolean
issuesEvents
)
{
return
withIssuesEvents
(
issuesEvents
,
this
);
}
public
MattermostService
withConfidentialIssuesEvents
(
Boolean
confidentialIssuesEvents
)
{
return
withConfidentialIssuesEvents
(
confidentialIssuesEvents
,
this
);
}
public
MattermostService
withMergeRequestsEvents
(
Boolean
mergeRequestsEvents
)
{
return
withMergeRequestsEvents
(
mergeRequestsEvents
,
this
);
}
public
MattermostService
withTagPushEvents
(
Boolean
tagPushEvents
)
{
return
withTagPushEvents
(
tagPushEvents
,
this
);
}
public
MattermostService
withNoteEvents
(
Boolean
noteEvents
)
{
return
withNoteEvents
(
noteEvents
,
this
);
}
public
MattermostService
withConfidentialNoteEvents
(
Boolean
confidentialNoteEvents
)
{
return
withConfidentialNoteEvents
(
confidentialNoteEvents
,
this
);
}
public
MattermostService
withPipelineEvents
(
Boolean
pipelineEvents
)
{
return
withPipelineEvents
(
pipelineEvents
,
this
);
}
public
MattermostService
withWikiPageEvents
(
Boolean
wikiPageEvents
)
{
return
withWikiPageEvents
(
wikiPageEvents
,
this
);
}
public
MattermostService
withJobEvents
(
Boolean
jobEvents
)
{
return
withPipelineEvents
(
jobEvents
,
this
);
}
@JsonIgnore
public
String
getWebhook
()
{
return
((
String
)
getProperty
(
WEBHOOK_PROP
));
}
public
void
setWebhook
(
String
webhook
)
{
setProperty
(
WEBHOOK_PROP
,
webhook
);
}
public
MattermostService
withWebhook
(
String
webhook
)
{
setWebhook
(
webhook
);
return
(
this
);
}
@JsonIgnore
public
String
getUsername
()
{
return
((
String
)
getProperty
(
USERNAME_PROP
));
}
public
void
setUsername
(
String
username
)
{
setProperty
(
USERNAME_PROP
,
username
);
}
public
MattermostService
withUsername
(
String
username
)
{
setUsername
(
username
);
return
(
this
);
}
@JsonIgnore
public
String
getDefaultChannel
()
{
return
(
defaultChannel
);
}
public
void
setDefaultChannel
(
String
defaultChannel
)
{
this
.
defaultChannel
=
defaultChannel
;
}
public
MattermostService
withDefaultChannelk
(
String
defaultChannel
)
{
this
.
defaultChannel
=
defaultChannel
;
return
(
this
);
}
@JsonIgnore
public
Boolean
getNotifyOnlyBrokenPipelines
()
{
return
((
Boolean
)
getProperty
(
NOTIFY_ONLY_BROKEN_PIPELINES_PROP
,
Boolean
.
FALSE
));
}
public
void
setNotifyOnlyBrokenPipelines
(
Boolean
notifyOnlyBrokenPipelines
)
{
setProperty
(
NOTIFY_ONLY_BROKEN_PIPELINES_PROP
,
notifyOnlyBrokenPipelines
);
}
public
MattermostService
withNotifyOnlyBrokenPipelines
(
Boolean
notifyOnlyBrokenPipelines
)
{
setNotifyOnlyBrokenPipelines
(
notifyOnlyBrokenPipelines
);
return
(
this
);
}
@JsonIgnore
public
Boolean
getNotifyOnlyDefaultBranch
()
{
return
((
Boolean
)
getProperty
(
NOTIFY_ONLY_DEFAULT_BRANCH_PROP
,
Boolean
.
FALSE
));
}
public
void
setNotifyOnlyDefaultBranch
(
Boolean
notifyOnlyDefaultBranch
)
{
setProperty
(
NOTIFY_ONLY_DEFAULT_BRANCH_PROP
,
notifyOnlyDefaultBranch
);
}
public
MattermostService
withNotifyOnlyDefaultBranch
(
Boolean
notifyOnlyDefaultBranch
)
{
setNotifyOnlyDefaultBranch
(
notifyOnlyDefaultBranch
);
return
(
this
);
}
@JsonIgnore
public
String
getPushChannel
()
{
return
((
String
)
getProperty
(
PUSH_CHANNEL_PROP
));
}
public
void
setPushChannel
(
String
pushChannel
)
{
setProperty
(
PUSH_CHANNEL_PROP
,
pushChannel
);
}
public
MattermostService
withPushChannel
(
String
pushChannel
)
{
setPushChannel
(
pushChannel
);
return
(
this
);
}
@JsonIgnore
public
String
getIssueChannel
()
{
return
((
String
)
getProperty
(
ISSUE_CHANNEL_PROP
));
}
public
void
setIssueChannel
(
String
issueChannel
)
{
setProperty
(
ISSUE_CHANNEL_PROP
,
issueChannel
);
}
public
MattermostService
withIssueChannel
(
String
issueChannel
)
{
setIssueChannel
(
issueChannel
);
return
(
this
);
}
@JsonIgnore
public
String
getConfidentialIssueChannel
()
{
return
((
String
)
getProperty
(
CONFIDENTIAL_ISSUE_CHANNEL_PROP
));
}
public
void
setConfidentialIssueChannel
(
String
confidentialIssueChannel
)
{
setProperty
(
CONFIDENTIAL_ISSUE_CHANNEL_PROP
,
confidentialIssueChannel
);
}
public
MattermostService
withConfidentialIssueChannel
(
String
confidentialIssueChannel
)
{
setConfidentialIssueChannel
(
confidentialIssueChannel
);
return
(
this
);
}
@JsonIgnore
public
String
getMergeRequestChannel
()
{
return
((
String
)
getProperty
(
MERGE_REQUEST_CHANNEL_PROP
));
}
public
void
setMergeRequestChannel
(
String
mergeRequestChannel
)
{
setProperty
(
MERGE_REQUEST_CHANNEL_PROP
,
mergeRequestChannel
);
}
public
MattermostService
withMergeRequestChannel
(
String
mergeRequestChannel
)
{
setMergeRequestChannel
(
mergeRequestChannel
);
return
(
this
);
}
@JsonIgnore
public
String
getNoteChannel
()
{
return
((
String
)
getProperty
(
NOTE_CHANNEL_PROP
));
}
public
void
setNoteChannel
(
String
noteChannel
)
{
setProperty
(
NOTE_CHANNEL_PROP
,
noteChannel
);
}
public
MattermostService
withNoteChannel
(
String
noteChannel
)
{
setNoteChannel
(
noteChannel
);
return
(
this
);
}
@JsonIgnore
public
String
getConfidentialNoteChannel
()
{
return
((
String
)
getProperty
(
CONFIDENTIAL_NOTE_CHANNEL_PROP
));
}
public
void
setConfidentialNoteChannel
(
String
noteChannel
)
{
setProperty
(
NOTE_CHANNEL_PROP
,
noteChannel
);
}
public
MattermostService
withConfidentialNoteChannel
(
String
confidentialNoteChannel
)
{
setConfidentialNoteChannel
(
confidentialNoteChannel
);
return
(
this
);
}
@JsonIgnore
public
String
getTagPushChannel
()
{
return
((
String
)
getProperty
(
TAG_PUSH_CHANNEL_PROP
));
}
public
void
setTagPushChannel
(
String
tagPushChannel
)
{
setProperty
(
TAG_PUSH_CHANNEL_PROP
,
tagPushChannel
);
}
public
MattermostService
withTagPushChannel
(
String
tagPushChannel
)
{
setTagPushChannel
(
tagPushChannel
);
return
(
this
);
}
@JsonIgnore
public
String
getPipelineChannel
()
{
return
((
String
)
getProperty
(
PIPELINE_CHANNEL_PROP
));
}
public
void
setPipelineChannel
(
String
pipelineChannel
)
{
setProperty
(
PIPELINE_CHANNEL_PROP
,
pipelineChannel
);
}
public
MattermostService
withPipelineChannel
(
String
pipelineChannel
)
{
setPipelineChannel
(
pipelineChannel
);
return
(
this
);
}
@JsonIgnore
public
String
getWikiPageChannel
()
{
return
((
String
)
getProperty
(
WIKI_PAGE_CHANNEL_PROP
));
}
public
void
setWikiPageChannel
(
String
wikiPageChannel
)
{
setProperty
(
WIKI_PAGE_CHANNEL_PROP
,
wikiPageChannel
);
}
public
MattermostService
withWikiPageChannel
(
String
wikiPageChannel
)
{
setWikiPageChannel
(
wikiPageChannel
);
return
(
this
);
}
}
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