public class EventsApi extends AbstractApi
Constants.ActionType, Constants.ApplicationScope, Constants.ArchiveFormat, Constants.AutoDevopsDeployStrategy, Constants.BuildGitStrategy, Constants.CommitBuildState, Constants.ContributorOrderBy, Constants.DefaultBranchProtectionLevel, Constants.DeploymentOrderBy, Constants.DeploymentStatus, Constants.DeployTokenScope, Constants.Encoding, Constants.EpicOrderBy, Constants.EventScope, Constants.GroupOrderBy, Constants.GroupSearchScope, Constants.ImpersonationState, Constants.IssueOrderBy, Constants.IssueScope, Constants.IssueState, Constants.JobScope, Constants.LineType, Constants.MergeRequestOrderBy, Constants.MergeRequestScope, Constants.MergeRequestSearchIn, Constants.MergeRequestState, Constants.MilestoneState, Constants.PackageOrderBy, Constants.PackageStatus, Constants.PipelineOrderBy, Constants.PipelineScope, Constants.ProjectAccessTokenScope, Constants.ProjectCreationLevel, Constants.ProjectOrderBy, Constants.ProjectSearchScope, Constants.SearchScope, Constants.SortOrder, Constants.SquashOption, Constants.StateEvent, Constants.SubgroupCreationLevel, Constants.TagOrderBy, Constants.TargetType, Constants.TodoAction, Constants.TodoState, Constants.TodoType, Constants.TokenType
gitLabApi
NEXT_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 |
---|---|
java.util.List<Event> |
getAllAuthenticatedUserEvents(Constants.ActionType action,
Constants.TargetType targetType,
java.util.Date before,
java.util.Date after,
Constants.SortOrder sortOrder)
Get a list of all events for the authenticated user, across all of the user's projects.
|
java.util.stream.Stream<Event> |
getAllAuthenticatedUserEventsStream(Constants.ActionType action,
Constants.TargetType targetType,
java.util.Date before,
java.util.Date after,
Constants.SortOrder sortOrder)
Get a Stream of all events for the authenticated user, across all of the user's projects.
|
java.util.List<Event> |
getAuthenticatedUserEvents(Constants.ActionType action,
Constants.TargetType targetType,
java.util.Date before,
java.util.Date after,
Constants.SortOrder sortOrder)
Get a list of events for the authenticated user.
|
Pager<Event> |
getAuthenticatedUserEvents(Constants.ActionType action,
Constants.TargetType targetType,
java.util.Date before,
java.util.Date after,
Constants.SortOrder sortOrder,
int itemsPerPage)
Get a list of events for the authenticated user and in the specified page range.
|
Pager<Event> |
getAuthenticatedUserEvents(Constants.ActionType action,
Constants.TargetType targetType,
java.util.Date before,
java.util.Date after,
Constants.SortOrder sortOrder,
int itemsPerPage,
Constants.EventScope scope)
Get a list of events for the authenticated user and in the specified page range.
|
java.util.List<Event> |
getAuthenticatedUserEvents(Constants.ActionType action,
Constants.TargetType targetType,
java.util.Date before,
java.util.Date after,
Constants.SortOrder sortOrder,
int page,
int perPage)
Get a list of events for the authenticated user and in the specified page range.
|
java.util.List<Event> |
getAuthenticatedUserEvents(Constants.ActionType action,
Constants.TargetType targetType,
java.util.Date before,
java.util.Date after,
Constants.SortOrder sortOrder,
int page,
int perPage,
Constants.EventScope scope)
Get a list of events for the authenticated user and in the specified page range.
|
java.util.stream.Stream<Event> |
getAuthenticatedUserEventsStream(Constants.ActionType action,
Constants.TargetType targetType,
java.util.Date before,
java.util.Date after,
Constants.SortOrder sortOrder)
Get a Stream of events for the authenticated user.
|
java.util.List<Event> |
getProjectEvents(java.lang.Object projectIdOrPath,
Constants.ActionType action,
Constants.TargetType targetType,
java.util.Date before,
java.util.Date after,
Constants.SortOrder sortOrder)
Get a list of events for the specified project.
|
Pager<Event> |
getProjectEvents(java.lang.Object projectIdOrPath,
Constants.ActionType action,
Constants.TargetType targetType,
java.util.Date before,
java.util.Date after,
Constants.SortOrder sortOrder,
int itemsPerPage)
Get a list of events for the specified project and in the specified page range.
|
java.util.List<Event> |
getProjectEvents(java.lang.Object projectIdOrPath,
Constants.ActionType action,
Constants.TargetType targetType,
java.util.Date before,
java.util.Date after,
Constants.SortOrder sortOrder,
int page,
int perPage)
Get a list of events for the specified project and in the specified page range.
|
java.util.stream.Stream<Event> |
getProjectEventsStream(java.lang.Object projectIdOrPath,
Constants.ActionType action,
Constants.TargetType targetType,
java.util.Date before,
java.util.Date after,
Constants.SortOrder sortOrder)
Get a Stream of events for the specified project.
|
java.util.List<Event> |
getUserEvents(java.lang.Object userIdOrUsername,
Constants.ActionType action,
Constants.TargetType targetType,
java.util.Date before,
java.util.Date after,
Constants.SortOrder sortOrder)
Get a list of events for the specified user.
|
Pager<Event> |
getUserEvents(java.lang.Object userIdOrUsername,
Constants.ActionType action,
Constants.TargetType targetType,
java.util.Date before,
java.util.Date after,
Constants.SortOrder sortOrder,
int itemsPerPage)
Get a list of events for the specified user and in the specified page range.
|
java.util.List<Event> |
getUserEvents(java.lang.Object userIdOrUsername,
Constants.ActionType action,
Constants.TargetType targetType,
java.util.Date before,
java.util.Date after,
Constants.SortOrder sortOrder,
int page,
int perPage)
Get a list of events for the specified user and in the specified page range.
|
java.util.stream.Stream<Event> |
getUserEventsStream(java.lang.Object userIdOrUsername,
Constants.ActionType action,
Constants.TargetType targetType,
java.util.Date before,
java.util.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, getLabelIdOrName, getPageQueryParams, getPageQueryParams, getPerPageQueryParam, getProjectIdOrPath, getUserIdOrUsername, getWithAccepts, handle, head, isApiVersion, patch, patch, post, post, post, post, post, put, put, put, putUpload, putUpload, putWithFormData, upload, upload, upload, upload, urlEncode, validate
public EventsApi(GitLabApi gitLabApi)
public java.util.List<Event> getAuthenticatedUserEvents(Constants.ActionType action, Constants.TargetType targetType, java.util.Date before, java.util.Date after, Constants.SortOrder sortOrder) throws GitLabApiException
GitLab Endpoint: GET /events
action
- 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 java.util.List<Event> getAllAuthenticatedUserEvents(Constants.ActionType action, Constants.TargetType targetType, java.util.Date before, java.util.Date after, Constants.SortOrder sortOrder) throws GitLabApiException
GitLab Endpoint: GET /events
action
- 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 java.util.List<Event> getAuthenticatedUserEvents(Constants.ActionType action, Constants.TargetType targetType, java.util.Date before, java.util.Date after, Constants.SortOrder sortOrder, int page, int perPage) throws GitLabApiException
GitLab Endpoint: GET /events
action
- 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 java.util.List<Event> getAuthenticatedUserEvents(Constants.ActionType action, Constants.TargetType targetType, java.util.Date before, java.util.Date after, Constants.SortOrder sortOrder, int page, int perPage, Constants.EventScope scope) throws GitLabApiException
GitLab Endpoint: GET /events
action
- 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 pagescope
- include all events across a user’s projects, optionalGitLabApiException
- if any exception occurspublic Pager<Event> getAuthenticatedUserEvents(Constants.ActionType action, Constants.TargetType targetType, java.util.Date before, java.util.Date after, Constants.SortOrder sortOrder, int itemsPerPage) throws GitLabApiException
GitLab Endpoint: GET /events
action
- 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 Pager<Event> getAuthenticatedUserEvents(Constants.ActionType action, Constants.TargetType targetType, java.util.Date before, java.util.Date after, Constants.SortOrder sortOrder, int itemsPerPage, Constants.EventScope scope) throws GitLabApiException
GitLab Endpoint: GET /events
action
- 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 pagescope
- include all events across a user’s projects, optionalGitLabApiException
- if any exception occurspublic java.util.stream.Stream<Event> getAuthenticatedUserEventsStream(Constants.ActionType action, Constants.TargetType targetType, java.util.Date before, java.util.Date after, Constants.SortOrder sortOrder) throws GitLabApiException
GitLab Endpoint: GET /events
action
- 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 java.util.stream.Stream<Event> getAllAuthenticatedUserEventsStream(Constants.ActionType action, Constants.TargetType targetType, java.util.Date before, java.util.Date after, Constants.SortOrder sortOrder) throws GitLabApiException
GitLab Endpoint: GET /events
action
- 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 java.util.List<Event> getUserEvents(java.lang.Object userIdOrUsername, Constants.ActionType action, Constants.TargetType targetType, java.util.Date before, java.util.Date after, Constants.SortOrder sortOrder) throws GitLabApiException
GitLab Endpoint: GET /users/:userId/events
userIdOrUsername
- 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 java.util.List<Event> getUserEvents(java.lang.Object userIdOrUsername, Constants.ActionType action, Constants.TargetType targetType, java.util.Date before, java.util.Date after, Constants.SortOrder sortOrder, int page, int perPage) throws GitLabApiException
GitLab Endpoint: GET /users/:userId/events
userIdOrUsername
- 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(java.lang.Object userIdOrUsername, Constants.ActionType action, Constants.TargetType targetType, java.util.Date before, java.util.Date after, Constants.SortOrder sortOrder, int itemsPerPage) throws GitLabApiException
GitLab Endpoint: GET /users/:userId/events
userIdOrUsername
- 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 java.util.stream.Stream<Event> getUserEventsStream(java.lang.Object userIdOrUsername, Constants.ActionType action, Constants.TargetType targetType, java.util.Date before, java.util.Date after, Constants.SortOrder sortOrder) throws GitLabApiException
GitLab Endpoint: GET /users/:userId/events
userIdOrUsername
- 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 java.util.List<Event> getProjectEvents(java.lang.Object projectIdOrPath, Constants.ActionType action, Constants.TargetType targetType, java.util.Date before, java.util.Date after, Constants.SortOrder sortOrder) throws GitLabApiException
GitLab Endpoint: GET /:projectId/events
projectIdOrPath
- the project in the form of an Long(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 java.util.List<Event> getProjectEvents(java.lang.Object projectIdOrPath, Constants.ActionType action, Constants.TargetType targetType, java.util.Date before, java.util.Date after, Constants.SortOrder sortOrder, int page, int perPage) throws GitLabApiException
GitLab Endpoint: GET /projects/:projectId/events
projectIdOrPath
- the project in the form of an Long(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(java.lang.Object projectIdOrPath, Constants.ActionType action, Constants.TargetType targetType, java.util.Date before, java.util.Date after, Constants.SortOrder sortOrder, int itemsPerPage) throws GitLabApiException
GitLab Endpoint: GET /projects/:projectId/events
projectIdOrPath
- the project in the form of an Long(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 java.util.stream.Stream<Event> getProjectEventsStream(java.lang.Object projectIdOrPath, Constants.ActionType action, Constants.TargetType targetType, java.util.Date before, java.util.Date after, Constants.SortOrder sortOrder) throws GitLabApiException
GitLab Endpoint: GET /:projectId/events
projectIdOrPath
- the project in the form of an Long(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 occurs