public static AuditEntryBean clientVersionUpdated ( ClientVersionBean bean , EntityUpdatedData data , ISecurityContext securityContext ) { if ( data . getChanges ( ) . isEmpty ( ) ) { return null ; } AuditEntryBean entry = newEntry ( bean . getClient ( ) . getOrganization ( ) . getId ( ) , AuditEntityType . Client , securityContext ) ; entry . setEntityId ( bean . getClient ( ) . getId ( ) ) ; entry . setEntityVersion ( bean . getVersion ( ) ) ; entry . setWhat ( AuditEntryType . Update ) ; entry . setData ( toJSON ( data ) ) ; return entry ; }
Creates an audit entry for the client version updated event .