public List < Event > getProjectEvents ( Integer projectIdOrPath , ActionType action , TargetType targetType , Date before , Date after , SortOrder sortOrder , int page , int perPage ) throws GitLabApiException { GitLabApiForm formData = new GitLabApiForm ( ) . withParam ( "action" , action ) . withParam ( "target_type" , targetType != null ? targetType . toValue ( ) . toLowerCase ( ) : null ) . withParam ( "before" , before ) . withParam ( "after" , after ) . withParam ( "sort" , sortOrder ) . withParam ( PAGE_PARAM , page ) . withParam ( PER_PAGE_PARAM , perPage ) ; Response response = get ( Response . Status . OK , formData . asMap ( ) , "projects" , getProjectIdOrPath ( projectIdOrPath ) , "events" ) ; return ( response . readEntity ( new GenericType < List < Event > > ( ) { } ) ) ; }
Get a list of events for the specified project and in the specified page range .