@Path(value="/roles") @RolesAllowed(value="admin") public class RolesService extends Object
| Constructor and Description |
|---|
RolesService(org.infinispan.Cache cache) |
| Modifier and Type | Method and Description |
|---|---|
void |
create(Role role) |
javax.ws.rs.core.Response |
create(javax.ws.rs.core.UriInfo uriInfo,
Role role) |
javax.ws.rs.core.Response |
create(javax.ws.rs.core.UriInfo uriInfo,
String roleName) |
javax.ws.rs.core.Response |
delete(String id) |
Role |
get(String id) |
static String |
roleCacheEntry(String id) |
void |
update(String id,
Role role) |
@POST
@Consumes(value="application/json")
@Produces(value="application/json")
public javax.ws.rs.core.Response create(@Context
javax.ws.rs.core.UriInfo uriInfo,
Role role)
throws Exception
Exception@POST
@Consumes(value="text/plain")
@Produces(value="application/json")
public javax.ws.rs.core.Response create(@Context
javax.ws.rs.core.UriInfo uriInfo,
String roleName)
throws Exception
Exception@PUT
@Consumes(value="application/json")
@Produces(value="application/json")
@Path(value="{id}")
public void update(@PathParam(value="id")
String id,
Role role)
throws Exception
Exception@DELETE
@Path(value="{id}")
public javax.ws.rs.core.Response delete(@PathParam(value="id")
String id)
Copyright © 2018 JBoss by Red Hat. All rights reserved.