public class ScopeService extends Object
Constructor and Description |
---|
ScopeService(ResourceServer resourceServer,
AuthorizationProvider authorization,
RealmAuth auth) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
create(ScopeRepresentation scope) |
javax.ws.rs.core.Response |
delete(String id) |
javax.ws.rs.core.Response |
find(String name) |
javax.ws.rs.core.Response |
findAll() |
javax.ws.rs.core.Response |
findById(String id) |
javax.ws.rs.core.Response |
update(String id,
ScopeRepresentation scope) |
public ScopeService(ResourceServer resourceServer, AuthorizationProvider authorization, RealmAuth auth)
@POST @Consumes(value="application/json") @Produces(value="application/json") public javax.ws.rs.core.Response create(ScopeRepresentation scope)
@Path(value="{id}") @PUT @Consumes(value="application/json") @Produces(value="application/json") public javax.ws.rs.core.Response update(@PathParam(value="id") String id, ScopeRepresentation scope)
@Path(value="{id}") @DELETE public javax.ws.rs.core.Response delete(@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="/search") @GET @Produces(value="application/json") public javax.ws.rs.core.Response find(@QueryParam(value="name") String name)
@GET @Produces(value="application/json") public javax.ws.rs.core.Response findAll()
Copyright © 2016 JBoss by Red Hat. All rights reserved.