public class ResourceService extends Object
| Constructor and Description |
|---|
ResourceService(ResourceServer resourceServer,
Identity identity,
ResourceSetService resourceManager) |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
create(javax.ws.rs.core.UriInfo uriInfo,
UmaResourceRepresentation resource) |
javax.ws.rs.core.Response |
delete(javax.ws.rs.core.UriInfo uriInfo,
String id) |
javax.ws.rs.core.Response |
find(String id,
String name,
String uri,
String owner,
String type,
String scope,
Boolean matchingUri,
Boolean deep,
Integer firstResult,
Integer maxResult) |
javax.ws.rs.core.Response |
findById(String id) |
javax.ws.rs.core.Response |
update(javax.ws.rs.core.UriInfo uriInfo,
String id,
ResourceRepresentation resource) |
public ResourceService(ResourceServer resourceServer, Identity identity, ResourceSetService resourceManager)
@POST
@Consumes(value="application/json")
@Produces(value="application/json")
public javax.ws.rs.core.Response create(@Context
javax.ws.rs.core.UriInfo uriInfo,
UmaResourceRepresentation resource)
@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,
ResourceRepresentation resource)
@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)
@GET
@Produces(value="application/json")
public javax.ws.rs.core.Response find(@QueryParam(value="_id")
String id,
@QueryParam(value="name")
String name,
@QueryParam(value="uri")
String uri,
@QueryParam(value="owner")
String owner,
@QueryParam(value="type")
String type,
@QueryParam(value="scope")
String scope,
@QueryParam(value="matchingUri")
Boolean matchingUri,
@QueryParam(value="deep")
Boolean deep,
@QueryParam(value="first")
Integer firstResult,
@QueryParam(value="max")
Integer maxResult)
Copyright © 2018 JBoss by Red Hat. All rights reserved.