public static AuditEntryBean apiCreated ( ApiBean bean , ISecurityContext securityContext ) { AuditEntryBean entry = newEntry ( bean . getOrganization ( ) . getId ( ) , AuditEntityType . Api , securityContext ) ; entry . setEntityId ( bean . getId ( ) ) ; entry . setEntityVersion ( null ) ; entry . setData ( null ) ; entry . setWhat ( AuditEntryType . Create ) ; return entry ; }
Creates an audit entry for the API created event .