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.BranchesToBeNotifiedgetBranchesToBeNotified()java.lang.StringgetConfidentialIssueChannel()java.lang.StringgetConfidentialNoteChannel()java.lang.StringgetDefaultChannel()java.lang.StringgetIssueChannel()java.lang.StringgetMergeRequestChannel()java.lang.StringgetNoteChannel()java.lang.BooleangetNotifyOnlyBrokenPipelines()java.lang.BooleangetNotifyOnlyDefaultBranch()Deprecated.java.lang.StringgetPipelineChannel()java.lang.StringgetPushChannel()java.lang.StringgetTagPushChannel()java.lang.StringgetUsername()java.lang.StringgetWebhook()java.lang.StringgetWikiPageChannel()GitLabApiFormservicePropertiesForm()Get the form data for this service based on it's properties.voidsetBranchesToBeNotified(NotificationService.BranchesToBeNotified branchesToBeNotified)voidsetConfidentialIssueChannel(java.lang.String confidentialIssueChannel)voidsetConfidentialNoteChannel(java.lang.String noteChannel)voidsetDefaultChannel(java.lang.String defaultChannel)voidsetIssueChannel(java.lang.String issueChannel)voidsetMergeRequestChannel(java.lang.String mergeRequestChannel)voidsetNoteChannel(java.lang.String noteChannel)voidsetNotifyOnlyBrokenPipelines(java.lang.Boolean notifyOnlyBrokenPipelines)voidsetNotifyOnlyDefaultBranch(java.lang.Boolean notifyOnlyDefaultBranch)Deprecated.voidsetPipelineChannel(java.lang.String pipelineChannel)voidsetPushChannel(java.lang.String pushChannel)voidsetTagPushChannel(java.lang.String tagPushChannel)voidsetUsername(java.lang.String username)voidsetWebhook(java.lang.String webhook)voidsetWikiPageChannel(java.lang.String wikiPageChannel)SlackServicewithBranchesToBeNotified(NotificationService.BranchesToBeNotified branchesToBeNotified)SlackServicewithConfidentialIssueChannel(java.lang.String confidentialIssueChannel)SlackServicewithConfidentialIssuesEvents(java.lang.Boolean confidentialIssuesEvents)SlackServicewithConfidentialNoteChannel(java.lang.String confidentialNoteChannel)SlackServicewithConfidentialNoteEvents(java.lang.Boolean confidentialNoteEvents)SlackServicewithDefaultChannelk(java.lang.String defaultChannel)SlackServicewithIssueChannel(java.lang.String issueChannel)SlackServicewithIssuesEvents(java.lang.Boolean issuesEvents)SlackServicewithJobEvents(java.lang.Boolean jobEvents)SlackServicewithMergeRequestChannel(java.lang.String mergeRequestChannel)SlackServicewithMergeRequestsEvents(java.lang.Boolean mergeRequestsEvents)SlackServicewithNoteChannel(java.lang.String noteChannel)SlackServicewithNoteEvents(java.lang.Boolean noteEvents)SlackServicewithNotifyOnlyBrokenPipelines(java.lang.Boolean notifyOnlyBrokenPipelines)SlackServicewithNotifyOnlyDefaultBranch(java.lang.Boolean notifyOnlyDefaultBranch)Deprecated.SlackServicewithPipelineChannel(java.lang.String pipelineChannel)SlackServicewithPipelineEvents(java.lang.Boolean pipelineEvents)SlackServicewithPushChannel(java.lang.String pushChannel)SlackServicewithPushEvents(java.lang.Boolean pushEvents)SlackServicewithTagPushChannel(java.lang.String tagPushChannel)SlackServicewithTagPushEvents(java.lang.Boolean tagPushEvents)SlackServicewithUsername(java.lang.String username)SlackServicewithWebhook(java.lang.String webhook)SlackServicewithWikiPageChannel(java.lang.String wikiPageChannel)SlackServicewithWikiPageEvents(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:
servicePropertiesFormin 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)
-
-