Class EventsApi

  • All Implemented Interfaces:
    org.gitlab4j.models.Constants

    public class EventsApi
    extends AbstractApi
    This class implements the client side API for the GitLab events calls.
    • 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 interface org.gitlab4j.models.Constants

        NEXT_PAGE_HEADER, PAGE_HEADER, PAGE_PARAM, PER_PAGE, PER_PAGE_PARAM, PREV_PAGE_HEADER, TOTAL_HEADER, TOTAL_PAGES_HEADER
    • Constructor Summary

      Constructors 
      Constructor Description
      EventsApi​(GitLabApi gitLabApi)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<org.gitlab4j.api.models.Event> getAllAuthenticatedUserEvents​(org.gitlab4j.models.Constants.ActionType action, org.gitlab4j.models.Constants.TargetType targetType, java.util.Date before, java.util.Date after, org.gitlab4j.models.Constants.SortOrder sortOrder)
      Get a list of all events for the authenticated user, across all of the user's projects.
      java.util.stream.Stream<org.gitlab4j.api.models.Event> getAllAuthenticatedUserEventsStream​(org.gitlab4j.models.Constants.ActionType action, org.gitlab4j.models.Constants.TargetType targetType, java.util.Date before, java.util.Date after, org.gitlab4j.models.Constants.SortOrder sortOrder)
      Get a Stream of all events for the authenticated user, across all of the user's projects.
      java.util.List<org.gitlab4j.api.models.Event> getAuthenticatedUserEvents​(org.gitlab4j.models.Constants.ActionType action, org.gitlab4j.models.Constants.TargetType targetType, java.util.Date before, java.util.Date after, org.gitlab4j.models.Constants.SortOrder sortOrder)
      Get a list of events for the authenticated user.
      Pager<org.gitlab4j.api.models.Event> getAuthenticatedUserEvents​(org.gitlab4j.models.Constants.ActionType action, org.gitlab4j.models.Constants.TargetType targetType, java.util.Date before, java.util.Date after, org.gitlab4j.models.Constants.SortOrder sortOrder, int itemsPerPage)
      Get a list of events for the authenticated user and in the specified page range.
      java.util.List<org.gitlab4j.api.models.Event> getAuthenticatedUserEvents​(org.gitlab4j.models.Constants.ActionType action, org.gitlab4j.models.Constants.TargetType targetType, java.util.Date before, java.util.Date after, org.gitlab4j.models.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<org.gitlab4j.api.models.Event> getAuthenticatedUserEvents​(org.gitlab4j.models.Constants.ActionType action, org.gitlab4j.models.Constants.TargetType targetType, java.util.Date before, java.util.Date after, org.gitlab4j.models.Constants.SortOrder sortOrder, int page, int perPage, org.gitlab4j.models.Constants.EventScope scope)
      Get a list of events for the authenticated user and in the specified page range.
      Pager<org.gitlab4j.api.models.Event> getAuthenticatedUserEvents​(org.gitlab4j.models.Constants.ActionType action, org.gitlab4j.models.Constants.TargetType targetType, java.util.Date before, java.util.Date after, org.gitlab4j.models.Constants.SortOrder sortOrder, int itemsPerPage, org.gitlab4j.models.Constants.EventScope scope)
      Get a list of events for the authenticated user and in the specified page range.
      java.util.stream.Stream<org.gitlab4j.api.models.Event> getAuthenticatedUserEventsStream​(org.gitlab4j.models.Constants.ActionType action, org.gitlab4j.models.Constants.TargetType targetType, java.util.Date before, java.util.Date after, org.gitlab4j.models.Constants.SortOrder sortOrder)
      Get a Stream of events for the authenticated user.
      java.util.List<org.gitlab4j.api.models.Event> getProjectEvents​(java.lang.Object projectIdOrPath, org.gitlab4j.models.Constants.ActionType action, org.gitlab4j.models.Constants.TargetType targetType, java.util.Date before, java.util.Date after, org.gitlab4j.models.Constants.SortOrder sortOrder)
      Get a list of events for the specified project.
      Pager<org.gitlab4j.api.models.Event> getProjectEvents​(java.lang.Object projectIdOrPath, org.gitlab4j.models.Constants.ActionType action, org.gitlab4j.models.Constants.TargetType targetType, java.util.Date before, java.util.Date after, org.gitlab4j.models.Constants.SortOrder sortOrder, int itemsPerPage)
      Get a list of events for the specified project and in the specified page range.
      java.util.List<org.gitlab4j.api.models.Event> getProjectEvents​(java.lang.Object projectIdOrPath, org.gitlab4j.models.Constants.ActionType action, org.gitlab4j.models.Constants.TargetType targetType, java.util.Date before, java.util.Date after, org.gitlab4j.models.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<org.gitlab4j.api.models.Event> getProjectEventsStream​(java.lang.Object projectIdOrPath, org.gitlab4j.models.Constants.ActionType action, org.gitlab4j.models.Constants.TargetType targetType, java.util.Date before, java.util.Date after, org.gitlab4j.models.Constants.SortOrder sortOrder)
      Get a Stream of events for the specified project.
      java.util.List<org.gitlab4j.api.models.Event> getUserEvents​(java.lang.Object userIdOrUsername, org.gitlab4j.models.Constants.ActionType action, org.gitlab4j.models.Constants.TargetType targetType, java.util.Date before, java.util.Date after, org.gitlab4j.models.Constants.SortOrder sortOrder)
      Get a list of events for the specified user.
      Pager<org.gitlab4j.api.models.Event> getUserEvents​(java.lang.Object userIdOrUsername, org.gitlab4j.models.Constants.ActionType action, org.gitlab4j.models.Constants.TargetType targetType, java.util.Date before, java.util.Date after, org.gitlab4j.models.Constants.SortOrder sortOrder, int itemsPerPage)
      Get a list of events for the specified user and in the specified page range.
      java.util.List<org.gitlab4j.api.models.Event> getUserEvents​(java.lang.Object userIdOrUsername, org.gitlab4j.models.Constants.ActionType action, org.gitlab4j.models.Constants.TargetType targetType, java.util.Date before, java.util.Date after, org.gitlab4j.models.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<org.gitlab4j.api.models.Event> getUserEventsStream​(java.lang.Object userIdOrUsername, org.gitlab4j.models.Constants.ActionType action, org.gitlab4j.models.Constants.TargetType targetType, java.util.Date before, java.util.Date after, org.gitlab4j.models.Constants.SortOrder sortOrder)
      Get a Stream of events for the specified user.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • EventsApi

        public EventsApi​(GitLabApi gitLabApi)
    • Method Detail

      • getAuthenticatedUserEvents

        public java.util.List<org.gitlab4j.api.models.Event> getAuthenticatedUserEvents​(org.gitlab4j.models.Constants.ActionType action,
                                                                                        org.gitlab4j.models.Constants.TargetType targetType,
                                                                                        java.util.Date before,
                                                                                        java.util.Date after,
                                                                                        org.gitlab4j.models.Constants.SortOrder sortOrder)
                                                                                 throws GitLabApiException
        Get a list of events for the authenticated user.
        GitLab Endpoint: GET /events
        Parameters:
        action - include only events of a particular action type, optional
        targetType - include only events of a particular target type, optional
        before - include only events created before a particular date, optional
        after - include only events created after a particular date, optional
        sortOrder - sort events in ASC or DESC order by created_at. Default is DESC, optional
        Returns:
        a list of events for the authenticated user and matching the supplied parameters
        Throws:
        GitLabApiException - if any exception occurs
      • getAllAuthenticatedUserEvents

        public java.util.List<org.gitlab4j.api.models.Event> getAllAuthenticatedUserEvents​(org.gitlab4j.models.Constants.ActionType action,
                                                                                           org.gitlab4j.models.Constants.TargetType targetType,
                                                                                           java.util.Date before,
                                                                                           java.util.Date after,
                                                                                           org.gitlab4j.models.Constants.SortOrder sortOrder)
                                                                                    throws GitLabApiException
        Get a list of all events for the authenticated user, across all of the user's projects.
        GitLab Endpoint: GET /events
        Parameters:
        action - include only events of a particular action type, optional
        targetType - include only events of a particular target type, optional
        before - include only events created before a particular date, optional
        after - include only events created after a particular date, optional
        sortOrder - sort events in ASC or DESC order by created_at. Default is DESC, optional
        Returns:
        a list of events for the authenticated user and matching the supplied parameters
        Throws:
        GitLabApiException - if any exception occurs
      • getAuthenticatedUserEvents

        public java.util.List<org.gitlab4j.api.models.Event> getAuthenticatedUserEvents​(org.gitlab4j.models.Constants.ActionType action,
                                                                                        org.gitlab4j.models.Constants.TargetType targetType,
                                                                                        java.util.Date before,
                                                                                        java.util.Date after,
                                                                                        org.gitlab4j.models.Constants.SortOrder sortOrder,
                                                                                        int page,
                                                                                        int perPage)
                                                                                 throws GitLabApiException
        Get a list of events for the authenticated user and in the specified page range.
        GitLab Endpoint: GET /events
        Parameters:
        action - include only events of a particular action type, optional
        targetType - include only events of a particular target type, optional
        before - include only events created before a particular date, optional
        after - include only events created after a particular date, optional
        sortOrder - sort events in ASC or DESC order by created_at. Default is DESC, optional
        page - the page to get
        perPage - the number of projects per page
        Returns:
        a list of events for the authenticated user and matching the supplied parameters
        Throws:
        GitLabApiException - if any exception occurs
      • getAuthenticatedUserEvents

        public java.util.List<org.gitlab4j.api.models.Event> getAuthenticatedUserEvents​(org.gitlab4j.models.Constants.ActionType action,
                                                                                        org.gitlab4j.models.Constants.TargetType targetType,
                                                                                        java.util.Date before,
                                                                                        java.util.Date after,
                                                                                        org.gitlab4j.models.Constants.SortOrder sortOrder,
                                                                                        int page,
                                                                                        int perPage,
                                                                                        org.gitlab4j.models.Constants.EventScope scope)
                                                                                 throws GitLabApiException
        Get a list of events for the authenticated user and in the specified page range.
        GitLab Endpoint: GET /events
        Parameters:
        action - include only events of a particular action type, optional
        targetType - include only events of a particular target type, optional
        before - include only events created before a particular date, optional
        after - include only events created after a particular date, optional
        sortOrder - sort events in ASC or DESC order by created_at. Default is DESC, optional
        page - the page to get
        perPage - the number of projects per page
        scope - include all events across a user’s projects, optional
        Returns:
        a list of events for the authenticated user and matching the supplied parameters
        Throws:
        GitLabApiException - if any exception occurs
      • getAuthenticatedUserEvents

        public Pager<org.gitlab4j.api.models.Event> getAuthenticatedUserEvents​(org.gitlab4j.models.Constants.ActionType action,
                                                                               org.gitlab4j.models.Constants.TargetType targetType,
                                                                               java.util.Date before,
                                                                               java.util.Date after,
                                                                               org.gitlab4j.models.Constants.SortOrder sortOrder,
                                                                               int itemsPerPage)
                                                                        throws GitLabApiException
        Get a list of events for the authenticated user and in the specified page range.
        GitLab Endpoint: GET /events
        Parameters:
        action - include only events of a particular action type, optional
        targetType - include only events of a particular target type, optional
        before - include only events created before a particular date, optional
        after - include only events created after a particular date, optional
        sortOrder - sort events in ASC or DESC order by created_at. Default is DESC, optional
        itemsPerPage - the number of Event instances that will be fetched per page
        Returns:
        a Pager of events for the authenticated user and matching the supplied parameters
        Throws:
        GitLabApiException - if any exception occurs
      • getAuthenticatedUserEvents

        public Pager<org.gitlab4j.api.models.Event> getAuthenticatedUserEvents​(org.gitlab4j.models.Constants.ActionType action,
                                                                               org.gitlab4j.models.Constants.TargetType targetType,
                                                                               java.util.Date before,
                                                                               java.util.Date after,
                                                                               org.gitlab4j.models.Constants.SortOrder sortOrder,
                                                                               int itemsPerPage,
                                                                               org.gitlab4j.models.Constants.EventScope scope)
                                                                        throws GitLabApiException
        Get a list of events for the authenticated user and in the specified page range.
        GitLab Endpoint: GET /events
        Parameters:
        action - include only events of a particular action type, optional
        targetType - include only events of a particular target type, optional
        before - include only events created before a particular date, optional
        after - include only events created after a particular date, optional
        sortOrder - sort events in ASC or DESC order by created_at. Default is DESC, optional
        itemsPerPage - the number of Event instances that will be fetched per page
        scope - include all events across a user’s projects, optional
        Returns:
        a Pager of events for the authenticated user and matching the supplied parameters
        Throws:
        GitLabApiException - if any exception occurs
      • getAuthenticatedUserEventsStream

        public java.util.stream.Stream<org.gitlab4j.api.models.Event> getAuthenticatedUserEventsStream​(org.gitlab4j.models.Constants.ActionType action,
                                                                                                       org.gitlab4j.models.Constants.TargetType targetType,
                                                                                                       java.util.Date before,
                                                                                                       java.util.Date after,
                                                                                                       org.gitlab4j.models.Constants.SortOrder sortOrder)
                                                                                                throws GitLabApiException
        Get a Stream of events for the authenticated user.
        GitLab Endpoint: GET /events
        Parameters:
        action - include only events of a particular action type, optional
        targetType - include only events of a particular target type, optional
        before - include only events created before a particular date, optional
        after - include only events created after a particular date, optional
        sortOrder - sort events in ASC or DESC order by created_at. Default is DESC, optional
        Returns:
        a Stream of events for the authenticated user and matching the supplied parameters
        Throws:
        GitLabApiException - if any exception occurs
      • getAllAuthenticatedUserEventsStream

        public java.util.stream.Stream<org.gitlab4j.api.models.Event> getAllAuthenticatedUserEventsStream​(org.gitlab4j.models.Constants.ActionType action,
                                                                                                          org.gitlab4j.models.Constants.TargetType targetType,
                                                                                                          java.util.Date before,
                                                                                                          java.util.Date after,
                                                                                                          org.gitlab4j.models.Constants.SortOrder sortOrder)
                                                                                                   throws GitLabApiException
        Get a Stream of all events for the authenticated user, across all of the user's projects.
        GitLab Endpoint: GET /events
        Parameters:
        action - include only events of a particular action type, optional
        targetType - include only events of a particular target type, optional
        before - include only events created before a particular date, optional
        after - include only events created after a particular date, optional
        sortOrder - sort events in ASC or DESC order by created_at. Default is DESC, optional
        Returns:
        a Stream of events for the authenticated user and matching the supplied parameters
        Throws:
        GitLabApiException - if any exception occurs
      • getUserEvents

        public java.util.List<org.gitlab4j.api.models.Event> getUserEvents​(java.lang.Object userIdOrUsername,
                                                                           org.gitlab4j.models.Constants.ActionType action,
                                                                           org.gitlab4j.models.Constants.TargetType targetType,
                                                                           java.util.Date before,
                                                                           java.util.Date after,
                                                                           org.gitlab4j.models.Constants.SortOrder sortOrder)
                                                                    throws GitLabApiException
        Get a list of events for the specified user.
        GitLab Endpoint: GET /users/:userId/events
        Parameters:
        userIdOrUsername - the user ID, username of the user, or a User instance holding the user ID or username
        action - include only events of a particular action type, optional
        targetType - include only events of a particular target type, optional
        before - include only events created before a particular date, optional
        after - include only events created after a particular date, optional
        sortOrder - sort events in ASC or DESC order by created_at. Default is DESC, optional
        Returns:
        a list of events for the specified user and matching the supplied parameters
        Throws:
        GitLabApiException - if any exception occurs
      • getUserEvents

        public java.util.List<org.gitlab4j.api.models.Event> getUserEvents​(java.lang.Object userIdOrUsername,
                                                                           org.gitlab4j.models.Constants.ActionType action,
                                                                           org.gitlab4j.models.Constants.TargetType targetType,
                                                                           java.util.Date before,
                                                                           java.util.Date after,
                                                                           org.gitlab4j.models.Constants.SortOrder sortOrder,
                                                                           int page,
                                                                           int perPage)
                                                                    throws GitLabApiException
        Get a list of events for the specified user and in the specified page range.
        GitLab Endpoint: GET /users/:userId/events
        Parameters:
        userIdOrUsername - the user ID, username of the user, or a User instance holding the user ID or username
        action - include only events of a particular action type, optional
        targetType - include only events of a particular target type, optional
        before - include only events created before a particular date, optional
        after - include only events created after a particular date, optional
        sortOrder - sort events in ASC or DESC order by created_at. Default is DESC, optional
        page - the page to get
        perPage - the number of projects per page
        Returns:
        a list of events for the specified user and matching the supplied parameters
        Throws:
        GitLabApiException - if any exception occurs
      • getUserEvents

        public Pager<org.gitlab4j.api.models.Event> getUserEvents​(java.lang.Object userIdOrUsername,
                                                                  org.gitlab4j.models.Constants.ActionType action,
                                                                  org.gitlab4j.models.Constants.TargetType targetType,
                                                                  java.util.Date before,
                                                                  java.util.Date after,
                                                                  org.gitlab4j.models.Constants.SortOrder sortOrder,
                                                                  int itemsPerPage)
                                                           throws GitLabApiException
        Get a list of events for the specified user and in the specified page range.
        GitLab Endpoint: GET /users/:userId/events
        Parameters:
        userIdOrUsername - the user ID, username of the user, or a User instance holding the user ID or username
        action - include only events of a particular action type, optional
        targetType - include only events of a particular target type, optional
        before - include only events created before a particular date, optional
        after - include only events created after a particular date, optional
        sortOrder - sort events in ASC or DESC order by created_at. Default is DESC, optional
        itemsPerPage - the number of Event instances that will be fetched per page
        Returns:
        a Pager of events for the specified user and matching the supplied parameters
        Throws:
        GitLabApiException - if any exception occurs
      • getUserEventsStream

        public java.util.stream.Stream<org.gitlab4j.api.models.Event> getUserEventsStream​(java.lang.Object userIdOrUsername,
                                                                                          org.gitlab4j.models.Constants.ActionType action,
                                                                                          org.gitlab4j.models.Constants.TargetType targetType,
                                                                                          java.util.Date before,
                                                                                          java.util.Date after,
                                                                                          org.gitlab4j.models.Constants.SortOrder sortOrder)
                                                                                   throws GitLabApiException
        Get a Stream of events for the specified user.
        GitLab Endpoint: GET /users/:userId/events
        Parameters:
        userIdOrUsername - the user ID, username of the user, or a User instance holding the user ID or username
        action - include only events of a particular action type, optional
        targetType - include only events of a particular target type, optional
        before - include only events created before a particular date, optional
        after - include only events created after a particular date, optional
        sortOrder - sort events in ASC or DESC order by created_at. Default is DESC, optional
        Returns:
        a Stream of events for the specified user and matching the supplied parameters
        Throws:
        GitLabApiException - if any exception occurs
      • getProjectEvents

        public java.util.List<org.gitlab4j.api.models.Event> getProjectEvents​(java.lang.Object projectIdOrPath,
                                                                              org.gitlab4j.models.Constants.ActionType action,
                                                                              org.gitlab4j.models.Constants.TargetType targetType,
                                                                              java.util.Date before,
                                                                              java.util.Date after,
                                                                              org.gitlab4j.models.Constants.SortOrder sortOrder)
                                                                       throws GitLabApiException
        Get a list of events for the specified project.
        GitLab Endpoint: GET /:projectId/events
        Parameters:
        projectIdOrPath - the project in the form of an Long(ID), String(path), or Project instance
        action - include only events of a particular action type, optional
        targetType - include only events of a particular target type, optional
        before - include only events created before a particular date, optional
        after - include only events created after a particular date, optional
        sortOrder - sort events in ASC or DESC order by created_at. Default is DESC, optional
        Returns:
        a list of events for the specified project and matching the supplied parameters
        Throws:
        GitLabApiException - if any exception occurs
      • getProjectEvents

        public java.util.List<org.gitlab4j.api.models.Event> getProjectEvents​(java.lang.Object projectIdOrPath,
                                                                              org.gitlab4j.models.Constants.ActionType action,
                                                                              org.gitlab4j.models.Constants.TargetType targetType,
                                                                              java.util.Date before,
                                                                              java.util.Date after,
                                                                              org.gitlab4j.models.Constants.SortOrder sortOrder,
                                                                              int page,
                                                                              int perPage)
                                                                       throws GitLabApiException
        Get a list of events for the specified project and in the specified page range.
        GitLab Endpoint: GET /projects/:projectId/events
        Parameters:
        projectIdOrPath - the project in the form of an Long(ID), String(path), or Project instance
        action - include only events of a particular action type, optional
        targetType - include only events of a particular target type, optional
        before - include only events created before a particular date, optional
        after - include only events created after a particular date, optional
        sortOrder - sort events in ASC or DESC order by created_at. Default is DESC, optional
        page - the page to get
        perPage - the number of projects per page
        Returns:
        a list of events for the specified project and matching the supplied parameters
        Throws:
        GitLabApiException - if any exception occurs
      • getProjectEvents

        public Pager<org.gitlab4j.api.models.Event> getProjectEvents​(java.lang.Object projectIdOrPath,
                                                                     org.gitlab4j.models.Constants.ActionType action,
                                                                     org.gitlab4j.models.Constants.TargetType targetType,
                                                                     java.util.Date before,
                                                                     java.util.Date after,
                                                                     org.gitlab4j.models.Constants.SortOrder sortOrder,
                                                                     int itemsPerPage)
                                                              throws GitLabApiException
        Get a list of events for the specified project and in the specified page range.
        GitLab Endpoint: GET /projects/:projectId/events
        Parameters:
        projectIdOrPath - the project in the form of an Long(ID), String(path), or Project instance
        action - include only events of a particular action type, optional
        targetType - include only events of a particular target type, optional
        before - include only events created before a particular date, optional
        after - include only events created after a particular date, optional
        sortOrder - sort events in ASC or DESC order by created_at. Default is DESC, optional
        itemsPerPage - the number of Event instances that will be fetched per page
        Returns:
        a Pager of events for the specified project and matching the supplied parameters
        Throws:
        GitLabApiException - if any exception occurs
      • getProjectEventsStream

        public java.util.stream.Stream<org.gitlab4j.api.models.Event> getProjectEventsStream​(java.lang.Object projectIdOrPath,
                                                                                             org.gitlab4j.models.Constants.ActionType action,
                                                                                             org.gitlab4j.models.Constants.TargetType targetType,
                                                                                             java.util.Date before,
                                                                                             java.util.Date after,
                                                                                             org.gitlab4j.models.Constants.SortOrder sortOrder)
                                                                                      throws GitLabApiException
        Get a Stream of events for the specified project.
        GitLab Endpoint: GET /:projectId/events
        Parameters:
        projectIdOrPath - the project in the form of an Long(ID), String(path), or Project instance
        action - include only events of a particular action type, optional
        targetType - include only events of a particular target type, optional
        before - include only events created before a particular date, optional
        after - include only events created after a particular date, optional
        sortOrder - sort events in ASC or DESC order by created_at. Default is DESC, optional
        Returns:
        a Stream of events for the specified project and matching the supplied parameters
        Throws:
        GitLabApiException - if any exception occurs