Constants
public class EventsApi extends AbstractApi
Constants.ActionType, Constants.GroupOrderBy, Constants.ImpersonationState, Constants.IssueScope, Constants.IssueState, Constants.JobScope, Constants.LineType, Constants.MergeRequestState, Constants.MilestoneState, Constants.PipelineOrderBy, Constants.PipelineScope, Constants.ProjectOrderBy, Constants.SortOrder, Constants.StateEvent, Constants.TargetType, Constants.TokenType
NEXT_PAGE_HEADER, PAGE_HEADER, PAGE_PARAM, PER_PAGE, PER_PAGE_PARAM, PREV_PAGE_HEADER, TOTAL_HEADER, TOTAL_PAGES_HEADER
Modifier and Type | Method | 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.
|
List<Event> |
getProjectEvents(Integer projectId,
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(Integer projectId,
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.
|
List<Event> |
getProjectEvents(Integer projectId,
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> |
getUserEvents(Integer userId,
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(Integer userId,
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(Integer userId,
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.
|
addFormParam, addFormParam, delete, delete, get, get, getApiClient, getApiVersion, getDefaultPerPage, getDefaultPerPageParam, getPageQueryParams, getWithAccepts, handle, isApiVersion, post, post, post, post, put, put, putWithFormData, urlEncode, validate
public EventsApi(GitLabApi gitLabApi)
public List<Event> getAuthenticatedUserEvents(Constants.ActionType action, Constants.TargetType targetType, Date before, Date after, Constants.SortOrder sortOrder) throws GitLabApiException
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 List<Event> getAuthenticatedUserEvents(Constants.ActionType action, Constants.TargetType targetType, Date before, Date after, Constants.SortOrder sortOrder, int page, int perPage) throws GitLabApiException
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 Pager<Event> getAuthenticatedUserEvents(Constants.ActionType action, Constants.TargetType targetType, Date before, Date after, Constants.SortOrder sortOrder, int itemsPerPage) throws GitLabApiException
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 List<Event> getUserEvents(Integer userId, Constants.ActionType action, Constants.TargetType targetType, Date before, Date after, Constants.SortOrder sortOrder) throws GitLabApiException
userId
- the user ID to get the events for, requiredaction
- 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(Integer userId, Constants.ActionType action, Constants.TargetType targetType, Date before, Date after, Constants.SortOrder sortOrder, int page, int perPage) throws GitLabApiException
userId
- the user ID to get the events for, requiredaction
- 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(Integer userId, Constants.ActionType action, Constants.TargetType targetType, Date before, Date after, Constants.SortOrder sortOrder, int itemsPerPage) throws GitLabApiException
userId
- the user ID to get the events for, requiredaction
- 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 List<Event> getProjectEvents(Integer projectId, Constants.ActionType action, Constants.TargetType targetType, Date before, Date after, Constants.SortOrder sortOrder) throws GitLabApiException
projectId
- the project ID to get the events for, requiredaction
- 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 projectId, Constants.ActionType action, Constants.TargetType targetType, Date before, Date after, Constants.SortOrder sortOrder, int page, int perPage) throws GitLabApiException
projectId
- the project ID to get the events for, requiredaction
- 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(Integer projectId, Constants.ActionType action, Constants.TargetType targetType, Date before, Date after, Constants.SortOrder sortOrder, int itemsPerPage) throws GitLabApiException
projectId
- the project ID to get the events for, requiredaction
- 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 occursCopyright © 2018. All rights reserved.