Search in sources :

Example 1 with RemoveRoleFromUserR

use of org.simbasecurity.dwclient.gateway.representations.RemoveRoleFromUserR in project simba-os by cegeka.

the class SimbaRoleService method removeRoleFromUser.

public void removeRoleFromUser(String ssoToken, SimbaRoleR simbaRole, SimbaUserR simbaUser) {
    checkRoleNotNull(simbaRole);
    checkUserNotNull(simbaUser);
    RemoveRoleFromUserR postEntity = new RemoveRoleFromUserR(simbaRole, simbaUser);
    ClientResponse clientResponse = getSimbaResource().path("role").path("removeUser").header(HttpHeaders.CONTENT_TYPE, MediaType.APPLICATION_JSON).cookie(new Cookie(AuthenticationConstants.SIMBA_SSO_TOKEN, ssoToken)).post(ClientResponse.class, postEntity);
    handleError("removeRole", simbaRole.getName(), simbaUser.getUserName(), clientResponse, logger);
}
Also used : ClientResponse(com.sun.jersey.api.client.ClientResponse) Cookie(javax.ws.rs.core.Cookie) RemoveRoleFromUserR(org.simbasecurity.dwclient.gateway.representations.RemoveRoleFromUserR)

Aggregations

ClientResponse (com.sun.jersey.api.client.ClientResponse)1 Cookie (javax.ws.rs.core.Cookie)1 RemoveRoleFromUserR (org.simbasecurity.dwclient.gateway.representations.RemoveRoleFromUserR)1