public class EventsApi extends AbstractApi
Constants.ActionType, Constants.ApplicationScope, Constants.ArchiveFormat, Constants.CommitBuildState, Constants.Encoding, Constants.EpicOrderBy, Constants.GroupOrderBy, Constants.ImpersonationState, Constants.IssueOrderBy, Constants.IssueScope, Constants.IssueState, Constants.JobScope, Constants.LineType, Constants.MergeRequestOrderBy, Constants.MergeRequestScope, Constants.MergeRequestState, Constants.MilestoneState, Constants.PipelineOrderBy, Constants.PipelineScope, Constants.ProjectOrderBy, Constants.SortOrder, Constants.StateEvent, Constants.TargetType, Constants.TokenTypeNEXT_PAGE_HEADER, PAGE_HEADER, PAGE_PARAM, PER_PAGE, PER_PAGE_PARAM, PREV_PAGE_HEADER, TOTAL_HEADER, TOTAL_PAGES_HEADER| Modifier and Type | Method and Description |
|---|---|
List<Event> |
getAuthenticatedUserEvents(Constants.ActionType action,
Constants.TargetType targetType,
Date before,
Date after,
Constants.SortOrder sortOrder)
Get a list of events for the authenticated user.
|
Pager<Event> |
getAuthenticatedUserEvents(Constants.ActionType action,
Constants.TargetType targetType,
Date before,
Date after,
Constants.SortOrder sortOrder,
int itemsPerPage)
Get a list of events for the authenticated user and in the specified page range.
|
List<Event> |
getAuthenticatedUserEvents(Constants.ActionType action,
Constants.TargetType targetType,
Date before,
Date after,
Constants.SortOrder sortOrder,
int page,
int perPage)
Get a list of events for the authenticated user and in the specified page range.
|
Stream<Event> |
getAuthenticatedUserEventsStream(Constants.ActionType action,
Constants.TargetType targetType,
Date before,
Date after,
Constants.SortOrder sortOrder)
Get a Stream of events for the authenticated user.
|
List<Event> |
getProjectEvents(Integer projectIdOrPath,
Constants.ActionType action,
Constants.TargetType targetType,
Date before,
Date after,
Constants.SortOrder sortOrder,
int page,
int perPage)
Get a list of events for the specified project and in the specified page range.
|
List<Event> |
getProjectEvents(Object projectIdOrPath,
Constants.ActionType action,
Constants.TargetType targetType,
Date before,
Date after,
Constants.SortOrder sortOrder)
Get a list of events for the specified project.
|
Pager<Event> |
getProjectEvents(Object projectIdOrPath,
Constants.ActionType action,
Constants.TargetType targetType,
Date before,
Date after,
Constants.SortOrder sortOrder,
int itemsPerPage)
Get a list of events for the specified project and in the specified page range.
|
Stream<Event> |
getProjectEventsStream(Object projectIdOrPath,
Constants.ActionType action,
Constants.TargetType targetType,
Date before,
Date after,
Constants.SortOrder sortOrder)
Get a Stream of events for the specified project.
|
List<Event> |
getUserEvents(Object userIdOrUsername,
Constants.ActionType action,
Constants.TargetType targetType,
Date before,
Date after,
Constants.SortOrder sortOrder)
Get a list of events for the specified user.
|
Pager<Event> |
getUserEvents(Object userIdOrUsername,
Constants.ActionType action,
Constants.TargetType targetType,
Date before,
Date after,
Constants.SortOrder sortOrder,
int itemsPerPage)
Get a list of events for the specified user and in the specified page range.
|
List<Event> |
getUserEvents(Object userIdOrUsername,
Constants.ActionType action,
Constants.TargetType targetType,
Date before,
Date after,
Constants.SortOrder sortOrder,
int page,
int perPage)
Get a list of events for the specified user and in the specified page range.
|
Stream<Event> |
getUserEventsStream(Object userIdOrUsername,
Constants.ActionType action,
Constants.TargetType targetType,
Date before,
Date after,
Constants.SortOrder sortOrder)
Get a Stream of events for the specified user.
|
addFormParam, addFormParam, delete, delete, get, get, getApiClient, getApiVersion, getDefaultPerPage, getDefaultPerPageParam, getDefaultPerPageParam, getGroupIdOrPath, getPageQueryParams, getPageQueryParams, getPerPageQueryParam, getProjectIdOrPath, getUserIdOrUsername, getWithAccepts, handle, head, isApiVersion, post, post, post, post, post, put, put, putUpload, putUpload, putWithFormData, upload, upload, upload, urlEncode, validatepublic EventsApi(GitLabApi gitLabApi)
public List<Event> getAuthenticatedUserEvents(Constants.ActionType action, Constants.TargetType targetType, Date before, Date after, Constants.SortOrder sortOrder) throws GitLabApiException
GitLab Endpoint: GET /eventsaction - include only events of a particular action type, optionaltargetType - include only events of a particular target type, optionalbefore - include only events created before a particular date, optionalafter - include only events created after a particular date, optionalsortOrder - sort events in ASC or DESC order by created_at. Default is DESC, optionalGitLabApiException - if any exception occurspublic List<Event> getAuthenticatedUserEvents(Constants.ActionType action, Constants.TargetType targetType, Date before, Date after, Constants.SortOrder sortOrder, int page, int perPage) throws GitLabApiException
GitLab Endpoint: GET /eventsaction - include only events of a particular action type, optionaltargetType - include only events of a particular target type, optionalbefore - include only events created before a particular date, optionalafter - include only events created after a particular date, optionalsortOrder - sort events in ASC or DESC order by created_at. Default is DESC, optionalpage - the page to getperPage - the number of projects per pageGitLabApiException - if any exception occurspublic Pager<Event> getAuthenticatedUserEvents(Constants.ActionType action, Constants.TargetType targetType, Date before, Date after, Constants.SortOrder sortOrder, int itemsPerPage) throws GitLabApiException
GitLab Endpoint: GET /eventsaction - include only events of a particular action type, optionaltargetType - include only events of a particular target type, optionalbefore - include only events created before a particular date, optionalafter - include only events created after a particular date, optionalsortOrder - sort events in ASC or DESC order by created_at. Default is DESC, optionalitemsPerPage - the number of Event instances that will be fetched per pageGitLabApiException - if any exception occurspublic Stream<Event> getAuthenticatedUserEventsStream(Constants.ActionType action, Constants.TargetType targetType, Date before, Date after, Constants.SortOrder sortOrder) throws GitLabApiException
GitLab Endpoint: GET /eventsaction - include only events of a particular action type, optionaltargetType - include only events of a particular target type, optionalbefore - include only events created before a particular date, optionalafter - include only events created after a particular date, optionalsortOrder - sort events in ASC or DESC order by created_at. Default is DESC, optionalGitLabApiException - if any exception occurspublic List<Event> getUserEvents(Object userIdOrUsername, Constants.ActionType action, Constants.TargetType targetType, Date before, Date after, Constants.SortOrder sortOrder) throws GitLabApiException
GitLab Endpoint: GET /users/:userId/eventsuserIdOrUsername - the user ID, username of the user, or a User instance holding the user ID or usernameaction - include only events of a particular action type, optionaltargetType - include only events of a particular target type, optionalbefore - include only events created before a particular date, optionalafter - include only events created after a particular date, optionalsortOrder - sort events in ASC or DESC order by created_at. Default is DESC, optionalGitLabApiException - if any exception occurspublic List<Event> getUserEvents(Object userIdOrUsername, Constants.ActionType action, Constants.TargetType targetType, Date before, Date after, Constants.SortOrder sortOrder, int page, int perPage) throws GitLabApiException
GitLab Endpoint: GET /users/:userId/eventsuserIdOrUsername - the user ID, username of the user, or a User instance holding the user ID or usernameaction - include only events of a particular action type, optionaltargetType - include only events of a particular target type, optionalbefore - include only events created before a particular date, optionalafter - include only events created after a particular date, optionalsortOrder - sort events in ASC or DESC order by created_at. Default is DESC, optionalpage - the page to getperPage - the number of projects per pageGitLabApiException - if any exception occurspublic Pager<Event> getUserEvents(Object userIdOrUsername, Constants.ActionType action, Constants.TargetType targetType, Date before, Date after, Constants.SortOrder sortOrder, int itemsPerPage) throws GitLabApiException
GitLab Endpoint: GET /users/:userId/eventsuserIdOrUsername - the user ID, username of the user, or a User instance holding the user ID or usernameaction - include only events of a particular action type, optionaltargetType - include only events of a particular target type, optionalbefore - include only events created before a particular date, optionalafter - include only events created after a particular date, optionalsortOrder - sort events in ASC or DESC order by created_at. Default is DESC, optionalitemsPerPage - the number of Event instances that will be fetched per pageGitLabApiException - if any exception occurspublic Stream<Event> getUserEventsStream(Object userIdOrUsername, Constants.ActionType action, Constants.TargetType targetType, Date before, Date after, Constants.SortOrder sortOrder) throws GitLabApiException
GitLab Endpoint: GET /users/:userId/eventsuserIdOrUsername - the user ID, username of the user, or a User instance holding the user ID or usernameaction - include only events of a particular action type, optionaltargetType - include only events of a particular target type, optionalbefore - include only events created before a particular date, optionalafter - include only events created after a particular date, optionalsortOrder - sort events in ASC or DESC order by created_at. Default is DESC, optionalGitLabApiException - if any exception occurspublic List<Event> getProjectEvents(Object projectIdOrPath, Constants.ActionType action, Constants.TargetType targetType, Date before, Date after, Constants.SortOrder sortOrder) throws GitLabApiException
GitLab Endpoint: GET /:projectId/eventsprojectIdOrPath - the project in the form of an Integer(ID), String(path), or Project instanceaction - include only events of a particular action type, optionaltargetType - include only events of a particular target type, optionalbefore - include only events created before a particular date, optionalafter - include only events created after a particular date, optionalsortOrder - sort events in ASC or DESC order by created_at. Default is DESC, optionalGitLabApiException - if any exception occurspublic List<Event> getProjectEvents(Integer projectIdOrPath, Constants.ActionType action, Constants.TargetType targetType, Date before, Date after, Constants.SortOrder sortOrder, int page, int perPage) throws GitLabApiException
GitLab Endpoint: GET /projects/:projectId/eventsprojectIdOrPath - the project in the form of an Integer(ID), String(path), or Project instanceaction - include only events of a particular action type, optionaltargetType - include only events of a particular target type, optionalbefore - include only events created before a particular date, optionalafter - include only events created after a particular date, optionalsortOrder - sort events in ASC or DESC order by created_at. Default is DESC, optionalpage - the page to getperPage - the number of projects per pageGitLabApiException - if any exception occurspublic Pager<Event> getProjectEvents(Object projectIdOrPath, Constants.ActionType action, Constants.TargetType targetType, Date before, Date after, Constants.SortOrder sortOrder, int itemsPerPage) throws GitLabApiException
GitLab Endpoint: GET /projects/:projectId/eventsprojectIdOrPath - the project in the form of an Integer(ID), String(path), or Project instanceaction - include only events of a particular action type, optionaltargetType - include only events of a particular target type, optionalbefore - include only events created before a particular date, optionalafter - include only events created after a particular date, optionalsortOrder - sort events in ASC or DESC order by created_at. Default is DESC, optionalitemsPerPage - the number of Event instances that will be fetched per pageGitLabApiException - if any exception occurspublic Stream<Event> getProjectEventsStream(Object projectIdOrPath, Constants.ActionType action, Constants.TargetType targetType, Date before, Date after, Constants.SortOrder sortOrder) throws GitLabApiException
GitLab Endpoint: GET /:projectId/eventsprojectIdOrPath - the project in the form of an Integer(ID), String(path), or Project instanceaction - include only events of a particular action type, optionaltargetType - include only events of a particular target type, optionalbefore - include only events created before a particular date, optionalafter - include only events created after a particular date, optionalsortOrder - sort events in ASC or DESC order by created_at. Default is DESC, optionalGitLabApiException - if any exception occursCopyright © 2019. All rights reserved.