@@ -32,7 +32,7 @@ public AuditEventApi(GitLabApi gitLabApi) {
3232 * @return a List of group Audit events
3333 * @throws GitLabApiException if any exception occurs
3434 */
35- public List <AuditEvent > getAuditEvents (Date created_after , Date created_before , String entityType , Integer entityId ) throws GitLabApiException {
35+ public List <AuditEvent > getAuditEvents (Date created_after , Date created_before , String entityType , Long entityId ) throws GitLabApiException {
3636 return (getAuditEvents (created_after , created_before , entityType , entityId , getDefaultPerPage ()).all ());
3737 }
3838
@@ -49,7 +49,7 @@ public List<AuditEvent> getAuditEvents(Date created_after, Date created_before,
4949 * @return a Pager of group Audit events
5050 * @throws GitLabApiException if any exception occurs
5151 */
52- public Pager <AuditEvent > getAuditEvents (Date created_after , Date created_before , String entityType , Integer entityId , int itemsPerPage ) throws GitLabApiException {
52+ public Pager <AuditEvent > getAuditEvents (Date created_after , Date created_before , String entityType , Long entityId , int itemsPerPage ) throws GitLabApiException {
5353 Form form = new GitLabApiForm ()
5454 .withParam ("created_before" , ISO8601 .toString (created_before , false ))
5555 .withParam ("created_after" , ISO8601 .toString (created_after , false ))
@@ -70,7 +70,7 @@ public Pager<AuditEvent> getAuditEvents(Date created_after, Date created_before,
7070 * @return a Stream of group Audit events
7171 * @throws GitLabApiException if any exception occurs
7272 */
73- public Stream <AuditEvent > getAuditEventsStream (Date created_after , Date created_before , String entityType , Integer entityId ) throws GitLabApiException {
73+ public Stream <AuditEvent > getAuditEventsStream (Date created_after , Date created_before , String entityType , Long entityId ) throws GitLabApiException {
7474 return (getAuditEvents (created_after , created_before , entityType , entityId , getDefaultPerPage ()).stream ());
7575 }
7676
@@ -83,7 +83,7 @@ public Stream<AuditEvent> getAuditEventsStream(Date created_after, Date created_
8383 * @return the group Audit event
8484 * @throws GitLabApiException if any exception occurs
8585 */
86- public AuditEvent getAuditEvent (Integer auditEventId ) throws GitLabApiException {
86+ public AuditEvent getAuditEvent (Long auditEventId ) throws GitLabApiException {
8787 Response response = get (Response .Status .OK , null , "audit_events" , auditEventId );
8888 return (response .readEntity (AuditEvent .class ));
8989 }
0 commit comments