Package org.gitlab4j.api.services
Class SlackService
- java.lang.Object
-
- org.gitlab4j.api.services.NotificationService
-
- org.gitlab4j.api.services.SlackService
-
- All Implemented Interfaces:
java.io.Serializable
public class SlackService extends NotificationService
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.gitlab4j.api.services.NotificationService
NotificationService.BranchesToBeNotified
-
-
Field Summary
-
Fields inherited from class org.gitlab4j.api.services.NotificationService
BRANCHES_TO_BE_NOTIFIED_PROP, CONFIDENTIAL_ISSUE_CHANNEL_PROP, CONFIDENTIAL_NOTE_CHANNEL_PROP, DESCRIPTION_PROP, ISSUE_CHANNEL_PROP, ISSUES_URL_PROP, MERGE_REQUEST_CHANNEL_PROP, NEW_ISSUE_URL_PROP, NOTE_CHANNEL_PROP, NOTIFY_ONLY_BROKEN_PIPELINES_PROP, NOTIFY_ONLY_DEFAULT_BRANCH_PROP, PIPELINE_CHANNEL_PROP, PROJECT_URL_PROP, PUSH_CHANNEL_PROP, PUSH_EVENTS_PROP, TAG_PUSH_CHANNEL_PROP, TITLE_PROP, USERNAME_PROP, WEBHOOK_PROP, WIKI_PAGE_CHANNEL_PROP
-
-
Constructor Summary
Constructors Constructor Description SlackService()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description NotificationService.BranchesToBeNotified
getBranchesToBeNotified()
java.lang.String
getConfidentialIssueChannel()
java.lang.String
getConfidentialNoteChannel()
java.lang.String
getDefaultChannel()
java.lang.String
getIssueChannel()
java.lang.String
getMergeRequestChannel()
java.lang.String
getNoteChannel()
java.lang.Boolean
getNotifyOnlyBrokenPipelines()
java.lang.Boolean
getNotifyOnlyDefaultBranch()
Deprecated.java.lang.String
getPipelineChannel()
java.lang.String
getPushChannel()
java.lang.String
getTagPushChannel()
java.lang.String
getUsername()
java.lang.String
getWebhook()
java.lang.String
getWikiPageChannel()
GitLabApiForm
servicePropertiesForm()
Get the form data for this service based on it's properties.void
setBranchesToBeNotified(NotificationService.BranchesToBeNotified branchesToBeNotified)
void
setConfidentialIssueChannel(java.lang.String confidentialIssueChannel)
void
setConfidentialNoteChannel(java.lang.String noteChannel)
void
setDefaultChannel(java.lang.String defaultChannel)
void
setIssueChannel(java.lang.String issueChannel)
void
setMergeRequestChannel(java.lang.String mergeRequestChannel)
void
setNoteChannel(java.lang.String noteChannel)
void
setNotifyOnlyBrokenPipelines(java.lang.Boolean notifyOnlyBrokenPipelines)
void
setNotifyOnlyDefaultBranch(java.lang.Boolean notifyOnlyDefaultBranch)
Deprecated.void
setPipelineChannel(java.lang.String pipelineChannel)
void
setPushChannel(java.lang.String pushChannel)
void
setTagPushChannel(java.lang.String tagPushChannel)
void
setUsername(java.lang.String username)
void
setWebhook(java.lang.String webhook)
void
setWikiPageChannel(java.lang.String wikiPageChannel)
SlackService
withBranchesToBeNotified(NotificationService.BranchesToBeNotified branchesToBeNotified)
SlackService
withConfidentialIssueChannel(java.lang.String confidentialIssueChannel)
SlackService
withConfidentialIssuesEvents(java.lang.Boolean confidentialIssuesEvents)
SlackService
withConfidentialNoteChannel(java.lang.String confidentialNoteChannel)
SlackService
withConfidentialNoteEvents(java.lang.Boolean confidentialNoteEvents)
SlackService
withDefaultChannelk(java.lang.String defaultChannel)
SlackService
withIssueChannel(java.lang.String issueChannel)
SlackService
withIssuesEvents(java.lang.Boolean issuesEvents)
SlackService
withJobEvents(java.lang.Boolean jobEvents)
SlackService
withMergeRequestChannel(java.lang.String mergeRequestChannel)
SlackService
withMergeRequestsEvents(java.lang.Boolean mergeRequestsEvents)
SlackService
withNoteChannel(java.lang.String noteChannel)
SlackService
withNoteEvents(java.lang.Boolean noteEvents)
SlackService
withNotifyOnlyBrokenPipelines(java.lang.Boolean notifyOnlyBrokenPipelines)
SlackService
withNotifyOnlyDefaultBranch(java.lang.Boolean notifyOnlyDefaultBranch)
Deprecated.SlackService
withPipelineChannel(java.lang.String pipelineChannel)
SlackService
withPipelineEvents(java.lang.Boolean pipelineEvents)
SlackService
withPushChannel(java.lang.String pushChannel)
SlackService
withPushEvents(java.lang.Boolean pushEvents)
SlackService
withTagPushChannel(java.lang.String tagPushChannel)
SlackService
withTagPushEvents(java.lang.Boolean tagPushEvents)
SlackService
withUsername(java.lang.String username)
SlackService
withWebhook(java.lang.String webhook)
SlackService
withWikiPageChannel(java.lang.String wikiPageChannel)
SlackService
withWikiPageEvents(java.lang.Boolean wikiPageEvents)
-
Methods inherited from class org.gitlab4j.api.services.NotificationService
getActive, getCommitEvents, getConfidentialIssuesEvents, getConfidentialNoteEvents, getCreatedAt, getId, getIssuesEvents, getJobEvents, getMergeRequestsEvents, getNoteEvents, getPipelineEvents, getProperties, getProperty, getProperty, getPushEvents, getSlug, getTagPushEvents, getTitle, getUpdatedAt, getWikiPageEvents, setActive, setCommitEvents, setConfidentialIssuesEvents, setConfidentialNoteEvents, setCreatedAt, setId, setIssuesEvents, setJobEvents, setMergeRequestsEvents, setNoteEvents, setPipelineEvents, setProperties, setProperty, setPushEvents, setSlug, setTagPushEvents, setTitle, setUpdatedAt, setWikiPageEvents, toString, withCommitEvents, withConfidentialIssuesEvents, withConfidentialNoteEvents, withIssuesEvents, withJobEvents, withMergeRequestsEvents, withNoteEvents, withPipelineEvents, withPushEvents, withTagPushEvents, withWikiPageEvents
-
-
-
-
Method Detail
-
servicePropertiesForm
public GitLabApiForm servicePropertiesForm()
Get the form data for this service based on it's properties.- Specified by:
servicePropertiesForm
in classNotificationService
- Returns:
- the form data for this service based on it's properties
-
withPushEvents
public SlackService withPushEvents(java.lang.Boolean pushEvents)
-
withIssuesEvents
public SlackService withIssuesEvents(java.lang.Boolean issuesEvents)
-
withConfidentialIssuesEvents
public SlackService withConfidentialIssuesEvents(java.lang.Boolean confidentialIssuesEvents)
-
withMergeRequestsEvents
public SlackService withMergeRequestsEvents(java.lang.Boolean mergeRequestsEvents)
-
withTagPushEvents
public SlackService withTagPushEvents(java.lang.Boolean tagPushEvents)
-
withNoteEvents
public SlackService withNoteEvents(java.lang.Boolean noteEvents)
-
withConfidentialNoteEvents
public SlackService withConfidentialNoteEvents(java.lang.Boolean confidentialNoteEvents)
-
withPipelineEvents
public SlackService withPipelineEvents(java.lang.Boolean pipelineEvents)
-
withWikiPageEvents
public SlackService withWikiPageEvents(java.lang.Boolean wikiPageEvents)
-
withJobEvents
public SlackService withJobEvents(java.lang.Boolean jobEvents)
-
getWebhook
public java.lang.String getWebhook()
-
setWebhook
public void setWebhook(java.lang.String webhook)
-
withWebhook
public SlackService withWebhook(java.lang.String webhook)
-
getUsername
public java.lang.String getUsername()
-
setUsername
public void setUsername(java.lang.String username)
-
withUsername
public SlackService withUsername(java.lang.String username)
-
getDefaultChannel
public java.lang.String getDefaultChannel()
-
setDefaultChannel
public void setDefaultChannel(java.lang.String defaultChannel)
-
withDefaultChannelk
public SlackService withDefaultChannelk(java.lang.String defaultChannel)
-
getNotifyOnlyBrokenPipelines
public java.lang.Boolean getNotifyOnlyBrokenPipelines()
-
setNotifyOnlyBrokenPipelines
public void setNotifyOnlyBrokenPipelines(java.lang.Boolean notifyOnlyBrokenPipelines)
-
withNotifyOnlyBrokenPipelines
public SlackService withNotifyOnlyBrokenPipelines(java.lang.Boolean notifyOnlyBrokenPipelines)
-
getNotifyOnlyDefaultBranch
@Deprecated public java.lang.Boolean getNotifyOnlyDefaultBranch()
Deprecated.
-
setNotifyOnlyDefaultBranch
@Deprecated public void setNotifyOnlyDefaultBranch(java.lang.Boolean notifyOnlyDefaultBranch)
Deprecated.- Parameters:
notifyOnlyDefaultBranch
-
-
withNotifyOnlyDefaultBranch
@Deprecated public SlackService withNotifyOnlyDefaultBranch(java.lang.Boolean notifyOnlyDefaultBranch)
Deprecated.- Parameters:
notifyOnlyDefaultBranch
-
-
getBranchesToBeNotified
public NotificationService.BranchesToBeNotified getBranchesToBeNotified()
-
setBranchesToBeNotified
public void setBranchesToBeNotified(NotificationService.BranchesToBeNotified branchesToBeNotified)
-
withBranchesToBeNotified
public SlackService withBranchesToBeNotified(NotificationService.BranchesToBeNotified branchesToBeNotified)
-
getPushChannel
public java.lang.String getPushChannel()
-
setPushChannel
public void setPushChannel(java.lang.String pushChannel)
-
withPushChannel
public SlackService withPushChannel(java.lang.String pushChannel)
-
getIssueChannel
public java.lang.String getIssueChannel()
-
setIssueChannel
public void setIssueChannel(java.lang.String issueChannel)
-
withIssueChannel
public SlackService withIssueChannel(java.lang.String issueChannel)
-
getConfidentialIssueChannel
public java.lang.String getConfidentialIssueChannel()
-
setConfidentialIssueChannel
public void setConfidentialIssueChannel(java.lang.String confidentialIssueChannel)
-
withConfidentialIssueChannel
public SlackService withConfidentialIssueChannel(java.lang.String confidentialIssueChannel)
-
getMergeRequestChannel
public java.lang.String getMergeRequestChannel()
-
setMergeRequestChannel
public void setMergeRequestChannel(java.lang.String mergeRequestChannel)
-
withMergeRequestChannel
public SlackService withMergeRequestChannel(java.lang.String mergeRequestChannel)
-
getNoteChannel
public java.lang.String getNoteChannel()
-
setNoteChannel
public void setNoteChannel(java.lang.String noteChannel)
-
withNoteChannel
public SlackService withNoteChannel(java.lang.String noteChannel)
-
getConfidentialNoteChannel
public java.lang.String getConfidentialNoteChannel()
-
setConfidentialNoteChannel
public void setConfidentialNoteChannel(java.lang.String noteChannel)
-
withConfidentialNoteChannel
public SlackService withConfidentialNoteChannel(java.lang.String confidentialNoteChannel)
-
getTagPushChannel
public java.lang.String getTagPushChannel()
-
setTagPushChannel
public void setTagPushChannel(java.lang.String tagPushChannel)
-
withTagPushChannel
public SlackService withTagPushChannel(java.lang.String tagPushChannel)
-
getPipelineChannel
public java.lang.String getPipelineChannel()
-
setPipelineChannel
public void setPipelineChannel(java.lang.String pipelineChannel)
-
withPipelineChannel
public SlackService withPipelineChannel(java.lang.String pipelineChannel)
-
getWikiPageChannel
public java.lang.String getWikiPageChannel()
-
setWikiPageChannel
public void setWikiPageChannel(java.lang.String wikiPageChannel)
-
withWikiPageChannel
public SlackService withWikiPageChannel(java.lang.String wikiPageChannel)
-
-