Package org.gitlab4j.api
Class NotificationSettingsApi
- java.lang.Object
-
- org.gitlab4j.api.AbstractApi
-
- org.gitlab4j.api.NotificationSettingsApi
-
- All Implemented Interfaces:
org.gitlab4j.models.Constants
public class NotificationSettingsApi extends AbstractApi
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.gitlab4j.models.Constants
org.gitlab4j.models.Constants.ActionType, org.gitlab4j.models.Constants.ApplicationScope, org.gitlab4j.models.Constants.ArchiveFormat, org.gitlab4j.models.Constants.AutoDevopsDeployStrategy, org.gitlab4j.models.Constants.BuildGitStrategy, org.gitlab4j.models.Constants.CommitBuildState, org.gitlab4j.models.Constants.ContributorOrderBy, org.gitlab4j.models.Constants.DefaultBranchProtectionLevel, org.gitlab4j.models.Constants.DeploymentOrderBy, org.gitlab4j.models.Constants.DeploymentStatus, org.gitlab4j.models.Constants.DeployTokenScope, org.gitlab4j.models.Constants.Encoding, org.gitlab4j.models.Constants.EpicOrderBy, org.gitlab4j.models.Constants.EventScope, org.gitlab4j.models.Constants.GroupOrderBy, org.gitlab4j.models.Constants.GroupSearchScope<T extends java.lang.Object>, org.gitlab4j.models.Constants.ImpersonationState, org.gitlab4j.models.Constants.IssueOrderBy, org.gitlab4j.models.Constants.IssueScope, org.gitlab4j.models.Constants.IssueState, org.gitlab4j.models.Constants.JobScope, org.gitlab4j.models.Constants.LineType, org.gitlab4j.models.Constants.MergeRequestOrderBy, org.gitlab4j.models.Constants.MergeRequestScope, org.gitlab4j.models.Constants.MergeRequestSearchIn, org.gitlab4j.models.Constants.MergeRequestState, org.gitlab4j.models.Constants.MilestoneState, org.gitlab4j.models.Constants.PackageOrderBy, org.gitlab4j.models.Constants.PackageStatus, org.gitlab4j.models.Constants.PipelineOrderBy, org.gitlab4j.models.Constants.PipelineScope, org.gitlab4j.models.Constants.PipelineSource, org.gitlab4j.models.Constants.ProjectAccessTokenScope, org.gitlab4j.models.Constants.ProjectCreationLevel, org.gitlab4j.models.Constants.ProjectOrderBy, org.gitlab4j.models.Constants.ProjectSearchScope<T extends java.lang.Object>, org.gitlab4j.models.Constants.SearchScope<T extends java.lang.Object>, org.gitlab4j.models.Constants.SortOrder, org.gitlab4j.models.Constants.SquashOption, org.gitlab4j.models.Constants.StateEvent, org.gitlab4j.models.Constants.SubgroupCreationLevel, org.gitlab4j.models.Constants.TagOrderBy, org.gitlab4j.models.Constants.TargetType, org.gitlab4j.models.Constants.TodoAction, org.gitlab4j.models.Constants.TodoState, org.gitlab4j.models.Constants.TodoType, org.gitlab4j.models.Constants.TokenType
-
-
Field Summary
-
Fields inherited from class org.gitlab4j.api.AbstractApi
gitLabApi
-
-
Constructor Summary
Constructors Constructor Description NotificationSettingsApi(GitLabApi gitLabApi)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.gitlab4j.api.models.NotificationSettings
getGlobalNotificationSettings()
Get the global notification settings.org.gitlab4j.api.models.NotificationSettings
getGroupNotificationSettings(long groupId)
Get the notification settings for a group.org.gitlab4j.api.models.NotificationSettings
getProjectNotificationSettings(long projectId)
Get the notification settings for a project.org.gitlab4j.api.models.NotificationSettings
updateGlobalNotificationSettings(org.gitlab4j.api.models.NotificationSettings settings)
Update the global notification settings.org.gitlab4j.api.models.NotificationSettings
updateGroupNotificationSettings(long groupId, org.gitlab4j.api.models.NotificationSettings settings)
Update the notification settings for a grouporg.gitlab4j.api.models.NotificationSettings
updateProjectNotificationSettings(long projectId, org.gitlab4j.api.models.NotificationSettings settings)
Update the notification settings for a project-
Methods inherited from class org.gitlab4j.api.AbstractApi
addFormParam, addFormParam, delete, delete, get, get, getApiClient, getApiVersion, getDefaultPerPage, getDefaultPerPageParam, getDefaultPerPageParam, getGroupIdOrPath, getLabelIdOrName, getNamespaceIdOrPath, getPageQueryParams, getPageQueryParams, getPerPageQueryParam, getProjectIdOrPath, getUserIdOrUsername, getWithAccepts, handle, head, isApiVersion, patch, patch, post, post, post, post, post, put, put, put, putUpload, putUpload, putWithFormData, putWithFormData, upload, upload, upload, upload, urlEncode, validate
-
-
-
-
Constructor Detail
-
NotificationSettingsApi
public NotificationSettingsApi(GitLabApi gitLabApi)
-
-
Method Detail
-
getGlobalNotificationSettings
public org.gitlab4j.api.models.NotificationSettings getGlobalNotificationSettings() throws GitLabApiException
Get the global notification settings.GitLab Endpoint: GET /notification_settings
- Returns:
- a NotificationSettings instance containing the global notification settings
- Throws:
GitLabApiException
- if any exception occurs
-
updateGlobalNotificationSettings
public org.gitlab4j.api.models.NotificationSettings updateGlobalNotificationSettings(org.gitlab4j.api.models.NotificationSettings settings) throws GitLabApiException
Update the global notification settings.GitLab Endpoint: PUT /notification_settings
- Parameters:
settings
- a NotificationSettings instance with the new settings- Returns:
- a NotificationSettings instance containing the updated global notification settings
- Throws:
GitLabApiException
- if any exception occurs
-
getGroupNotificationSettings
public org.gitlab4j.api.models.NotificationSettings getGroupNotificationSettings(long groupId) throws GitLabApiException
Get the notification settings for a group.GitLab Endpoint: GET /groups/:id/notification_settings
- Parameters:
groupId
- the group ID to get the notification settings for- Returns:
- a NotificationSettings instance containing the specified group's notification settings
- Throws:
GitLabApiException
- if any exception occurs
-
updateGroupNotificationSettings
public org.gitlab4j.api.models.NotificationSettings updateGroupNotificationSettings(long groupId, org.gitlab4j.api.models.NotificationSettings settings) throws GitLabApiException
Update the notification settings for a groupGitLab Endpoint: PUT /groups/:id/notification_settings
- Parameters:
groupId
- the group ID to update the notification settings forsettings
- a NotificationSettings instance with the new settings- Returns:
- a NotificationSettings instance containing the updated group notification settings
- Throws:
GitLabApiException
- if any exception occurs
-
getProjectNotificationSettings
public org.gitlab4j.api.models.NotificationSettings getProjectNotificationSettings(long projectId) throws GitLabApiException
Get the notification settings for a project.GitLab Endpoint: GET /projects/:id/notification_settings
- Parameters:
projectId
- the project ID to get the notification settings for- Returns:
- a NotificationSettings instance containing the specified project's notification settings
- Throws:
GitLabApiException
- if any exception occurs
-
updateProjectNotificationSettings
public org.gitlab4j.api.models.NotificationSettings updateProjectNotificationSettings(long projectId, org.gitlab4j.api.models.NotificationSettings settings) throws GitLabApiException
Update the notification settings for a projectGitLab Endpoint: PUT /projects/:id/notification_settings
- Parameters:
projectId
- the project ID to update the notification settings forsettings
- a NotificationSettings instance with the new settings- Returns:
- a NotificationSettings instance containing the updated project notification settings
- Throws:
GitLabApiException
- if any exception occurs
-
-