public Pager < Event > getUserEvents ( Object userIdOrUsername , ActionType action , TargetType targetType , Date before , Date after , SortOrder sortOrder , int itemsPerPage ) 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 ) ; return ( new Pager < Event > ( this , Event . class , itemsPerPage , formData . asMap ( ) , "users" , getUserIdOrUsername ( userIdOrUsername ) , "events" ) ) ; }
Get a list of events for the specified user and in the specified page range .