KEYCLOAK-2873 / KEYCLOAK-2875 Test RoleContainerResource

This commit is contained in:
Stian Thorgersen committed 2016-04-21 10:58:46 +02:00
1 parent d0a9e45826
commit 34d5e85316
7 files changed
+196 -17

No files matched your search

@@ -38,38 +38,38 @@ public interface RoleResource {
@GET
@Produces(MediaType.APPLICATION_JSON)
public RoleRepresentation toRepresentation();
RoleRepresentation toRepresentation();
@PUT
@Consumes(MediaType.APPLICATION_JSON)
public void update(RoleRepresentation roleRepresentation);
void update(RoleRepresentation roleRepresentation);
@DELETE
public void remove();
void remove();
@GET
@Path("composites")
@Produces(MediaType.APPLICATION_JSON)
public Set<RoleRepresentation> getChildren();
Set<RoleRepresentation> getRoleComposites();
@GET
@Path("composites/realm")
@Produces(MediaType.APPLICATION_JSON)
public Set<RoleRepresentation> getRealmLevelChildren();
Set<RoleRepresentation> getRealmRoleComposites();
@GET
@Path("composites/application/{appName}")
@Path("composites/clients/{appName}")
@Produces(MediaType.APPLICATION_JSON)
public Set<RoleRepresentation> getApplicationLevelChildren(@PathParam("appName") String appName);
Set<RoleRepresentation> getClientRoleComposites(@PathParam("appName") String appName);
@POST
@Path("composites")
@Consumes(MediaType.APPLICATION_JSON)
public void addChildren(List<RoleRepresentation> rolesToAdd);
void addComposites(List<RoleRepresentation> rolesToAdd);
@DELETE
@Path("composites")
@Consumes(MediaType.APPLICATION_JSON)
public void removeChildren(List<RoleRepresentation> rolesToRemove);
void deleteComposites(List<RoleRepresentation> rolesToRemove);
}
@@ -36,17 +36,17 @@ public interface RolesResource {
@GET
@Produces(MediaType.APPLICATION_JSON)
public List<RoleRepresentation> list();
List<RoleRepresentation> list();
@POST
@Consumes(MediaType.APPLICATION_JSON)
public void create(RoleRepresentation roleRepresentation);
void create(RoleRepresentation roleRepresentation);
@Path("{roleName}")
public RoleResource get(@PathParam("roleName") String roleName);
RoleResource get(@PathParam("roleName") String roleName);
@Path("{role-name}")
@DELETE
public void deleteRole(final @PathParam("role-name") String roleName);
void deleteRole(final @PathParam("role-name") String roleName);
}