Removed representations as suggested

This commit is contained in:
Albert-Jan Verhees 2021-01-13 12:25:17 +01:00 committed by Hynek Mlnařík
parent b0ac44cf7d
commit 32319c727b

View file

@ -332,8 +332,7 @@ public class ClientResource {
}
client.addClientScope(clientScope, defaultScope);
final ClientScopeRepresentation rep = ModelToRepresentation.toRepresentation(clientScope, session);
adminEvent.operation(OperationType.CREATE).resource(ResourceType.CLIENT_SCOPE_CLIENT_MAPPING).resourcePath(session.getContext().getUri()).representation(rep).success();
adminEvent.operation(OperationType.CREATE).resource(ResourceType.CLIENT_SCOPE_CLIENT_MAPPING).resourcePath(session.getContext().getUri()).success();
}
@ -349,8 +348,7 @@ public class ClientResource {
}
client.removeClientScope(clientScope);
final ClientScopeRepresentation rep = ModelToRepresentation.toRepresentation(clientScope, session);
adminEvent.operation(OperationType.DELETE).resource(ResourceType.CLIENT_SCOPE_CLIENT_MAPPING).resourcePath(session.getContext().getUri()).representation(rep).success();
adminEvent.operation(OperationType.DELETE).resource(ResourceType.CLIENT_SCOPE_CLIENT_MAPPING).resourcePath(session.getContext().getUri()).success();
}