public class ScopeService extends Object
| Constructor and Description |
|---|
ScopeService(ResourceServer resourceServer,
AuthorizationProvider authorization,
AdminPermissionEvaluator auth,
AdminEventBuilder adminEvent) |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
create(javax.ws.rs.core.UriInfo uriInfo,
ScopeRepresentation scope) |
javax.ws.rs.core.Response |
delete(javax.ws.rs.core.UriInfo uriInfo,
String id) |
javax.ws.rs.core.Response |
find(String name) |
javax.ws.rs.core.Response |
findAll(String id,
String name,
Integer firstResult,
Integer maxResult) |
javax.ws.rs.core.Response |
findById(String id) |
javax.ws.rs.core.Response |
getPermissions(String id) |
javax.ws.rs.core.Response |
getResources(String id) |
javax.ws.rs.core.Response |
update(javax.ws.rs.core.UriInfo uriInfo,
String id,
ScopeRepresentation scope) |
public ScopeService(ResourceServer resourceServer, AuthorizationProvider authorization, AdminPermissionEvaluator auth, AdminEventBuilder adminEvent)
@POST
@Consumes(value="application/json")
@Produces(value="application/json")
public javax.ws.rs.core.Response create(@Context
javax.ws.rs.core.UriInfo uriInfo,
ScopeRepresentation scope)
@Path(value="{id}")
@PUT
@Consumes(value="application/json")
@Produces(value="application/json")
public javax.ws.rs.core.Response update(@Context
javax.ws.rs.core.UriInfo uriInfo,
@PathParam(value="id")
String id,
ScopeRepresentation scope)
@Path(value="{id}")
@DELETE
public javax.ws.rs.core.Response delete(@Context
javax.ws.rs.core.UriInfo uriInfo,
@PathParam(value="id")
String id)
@Path(value="{id}")
@GET
@Produces(value="application/json")
public javax.ws.rs.core.Response findById(@PathParam(value="id")
String id)
@Path(value="{id}/resources")
@GET
@Produces(value="application/json")
public javax.ws.rs.core.Response getResources(@PathParam(value="id")
String id)
@Path(value="{id}/permissions")
@GET
@Produces(value="application/json")
public javax.ws.rs.core.Response getPermissions(@PathParam(value="id")
String id)
@Path(value="/search")
@GET
@Produces(value="application/json")
public javax.ws.rs.core.Response find(@QueryParam(value="name")
String name)
Copyright © 2018 JBoss by Red Hat. All rights reserved.