@Path(value="/deprecated") @Produces(value="application/json") @Consumes(value="application/json") public class RestResources extends RestBase
| Constructor and Description |
|---|
RestResources() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
addFeedResource(String feedId,
Resource.Blueprint resource,
javax.ws.rs.core.UriInfo uriInfo) |
javax.ws.rs.core.Response |
addFeedResource(String feedId,
String parentPath,
Resource.Blueprint resource,
javax.ws.rs.core.UriInfo uriInfo) |
javax.ws.rs.core.Response |
addResource(String environmentId,
Resource.Blueprint resource,
javax.ws.rs.core.UriInfo uriInfo) |
javax.ws.rs.core.Response |
addResource(String environmentId,
String parentPath,
Resource.Blueprint resource,
javax.ws.rs.core.UriInfo uriInfo) |
javax.ws.rs.core.Response |
associateChildren(String environmentId,
String resourcePath,
Collection<String> resources) |
javax.ws.rs.core.Response |
associateChildrenInFeed(String feedId,
String resourcePath,
Collection<String> resources) |
protected org.hawkular.inventory.paths.CanonicalPath |
composeCanonicalPath(String tenantId,
String envId,
String feedId,
String resourcePath) |
javax.ws.rs.core.Response |
deleteResource(String environmentId,
String resourcePath) |
javax.ws.rs.core.Response |
deleteResourceInFeed(String feedId,
String resourcePath) |
javax.ws.rs.core.Response |
disassociateChild(String environmentId,
String resourcePath,
String childPath,
boolean isCanonical) |
javax.ws.rs.core.Response |
disassociateChildInFeed(String feedId,
String resourcePath,
String childPath,
boolean isCanonical) |
javax.ws.rs.core.Response |
getChildren(String environmentId,
String resourcePath,
javax.ws.rs.core.UriInfo uriInfo) |
javax.ws.rs.core.Response |
getChildrenInFeed(String feedId,
String resourcePath,
javax.ws.rs.core.UriInfo uriInfo) |
Resource |
getParent(String environmentId,
String resourcePath) |
Resource |
getParentInFeed(String feedId,
String resourcePath) |
javax.ws.rs.core.Response |
getParents(String environmentId,
String resourcePath,
javax.ws.rs.core.UriInfo uriInfo) |
javax.ws.rs.core.Response |
getParentsInFeed(String feedId,
String resourcePath,
javax.ws.rs.core.UriInfo uriInfo) |
javax.ws.rs.core.Response |
getRecursiveChildren(String feedId,
String resourcePath,
String resourceTypeId,
boolean feedlessType,
javax.ws.rs.core.UriInfo uriInfo) |
javax.ws.rs.core.Response |
getRecursiveChildren(String environmentId,
String resourcePath,
String resourceTypeId,
javax.ws.rs.core.UriInfo uriInfo) |
Resource |
getResource(String environmentId,
String resourcePath) |
Resource |
getResourceInFeed(String feedId,
String resourcePath) |
javax.ws.rs.core.Response |
getResources(String environmentId,
String typeId,
boolean feedless,
javax.ws.rs.core.UriInfo uriInfo) |
javax.ws.rs.core.Response |
getResources(String feedId,
javax.ws.rs.core.UriInfo uriInfo) |
javax.ws.rs.core.Response |
update(String environmentId,
String resourcePath,
Resource.Update update) |
javax.ws.rs.core.Response |
updateInFeed(String feedId,
String resourcePath,
Resource.Update update) |
create, getMapper, getPath, getPath, getTenantId, getTenantPath, getTraverser, pagedResponse, pagedResponse, parsePath, setupMapper@POST
@Path(value="/{environmentId}/resources")
public javax.ws.rs.core.Response addResource(@PathParam(value="environmentId")
String environmentId,
Resource.Blueprint resource,
@Context
javax.ws.rs.core.UriInfo uriInfo)
@POST
@Path(value="/{environmentId}/resources/{parentPath:.+}")
public javax.ws.rs.core.Response addResource(@PathParam(value="environmentId")
String environmentId,
@Encoded @PathParam(value="parentPath")
String parentPath,
Resource.Blueprint resource,
@Context
javax.ws.rs.core.UriInfo uriInfo)
@POST
@Path(value="/feeds/{feedId}/resources")
public javax.ws.rs.core.Response addFeedResource(@PathParam(value="feedId")
String feedId,
Resource.Blueprint resource,
@Context
javax.ws.rs.core.UriInfo uriInfo)
@POST
@Path(value="/feeds/{feedId}/resources/{parentPath:.+}")
public javax.ws.rs.core.Response addFeedResource(@PathParam(value="feedId")
String feedId,
@Encoded @PathParam(value="parentPath")
String parentPath,
Resource.Blueprint resource,
@Context
javax.ws.rs.core.UriInfo uriInfo)
@GET
@Path(value="/{environmentId}/resources")
public javax.ws.rs.core.Response getResources(@PathParam(value="environmentId")
String environmentId,
@QueryParam(value="type")
String typeId,
@QueryParam(value="feedless") @DefaultValue(value="false")
boolean feedless,
@Context
javax.ws.rs.core.UriInfo uriInfo)
@GET
@Path(value="/feeds/{feedId}/resources")
public javax.ws.rs.core.Response getResources(@PathParam(value="feedId")
String feedId,
@Context
javax.ws.rs.core.UriInfo uriInfo)
@GET
@Path(value="/{environmentId}/resources/{resourcePath:.+}")
public Resource getResource(@PathParam(value="environmentId")
String environmentId,
@Encoded @PathParam(value="resourcePath")
String resourcePath)
@GET
@Path(value="/feeds/{feedId}/resources/{resourcePath:.+}")
public Resource getResourceInFeed(@PathParam(value="feedId")
String feedId,
@Encoded @PathParam(value="resourcePath")
String resourcePath)
@GET
@Path(value="/{environmentId}/resources/{resourcePath:.+}/children")
public javax.ws.rs.core.Response getChildren(@PathParam(value="environmentId")
String environmentId,
@Encoded @PathParam(value="resourcePath")
String resourcePath,
@Context
javax.ws.rs.core.UriInfo uriInfo)
@GET
@Path(value="/feeds/{feedId}/resources/{resourcePath:.+}/children")
public javax.ws.rs.core.Response getChildrenInFeed(@PathParam(value="feedId")
String feedId,
@Encoded @PathParam(value="resourcePath")
String resourcePath,
@Context
javax.ws.rs.core.UriInfo uriInfo)
@GET
@Path(value="/{environmentId}/resources/{resourcePath:.+}/parents")
public javax.ws.rs.core.Response getParents(@PathParam(value="environmentId")
String environmentId,
@Encoded @PathParam(value="resourcePath")
String resourcePath,
@Context
javax.ws.rs.core.UriInfo uriInfo)
@GET
@Path(value="/feeds/{feedId}/resources/{resourcePath:.+}/parents")
public javax.ws.rs.core.Response getParentsInFeed(@PathParam(value="feedId")
String feedId,
@Encoded @PathParam(value="resourcePath")
String resourcePath,
@Context
javax.ws.rs.core.UriInfo uriInfo)
@GET
@Path(value="/{environmentId}/resources/{resourcePath:.+}/parent")
public Resource getParent(@PathParam(value="environmentId")
String environmentId,
@Encoded @PathParam(value="resourcePath")
String resourcePath)
@GET
@Path(value="/feeds/{feedId}/resources/{resourcePath:.+}/parent")
public Resource getParentInFeed(@PathParam(value="feedId")
String feedId,
@Encoded @PathParam(value="resourcePath")
String resourcePath)
@POST
@Path(value="/{environmentId}/resources/{resourcePath:.+}/children")
public javax.ws.rs.core.Response associateChildren(@PathParam(value="environmentId")
String environmentId,
@Encoded @PathParam(value="resourcePath")
String resourcePath,
Collection<String> resources)
@POST
@Path(value="/feeds/{feedId}/resources/{resourcePath:.+}/children")
public javax.ws.rs.core.Response associateChildrenInFeed(@PathParam(value="feedId")
String feedId,
@Encoded @PathParam(value="resourcePath")
String resourcePath,
Collection<String> resources)
@DELETE
@Path(value="/{environmentId}/resources/{resourcePath:.+}/children/{childPath:.+}")
public javax.ws.rs.core.Response disassociateChild(@PathParam(value="environmentId")
String environmentId,
@Encoded @PathParam(value="resourcePath")
String resourcePath,
@Encoded @PathParam(value="childPath")
String childPath,
@QueryParam(value="canonical") @DefaultValue(value="false")
boolean isCanonical)
@DELETE
@Path(value="/feeds/{feedId}/resources/{resourcePath:.+}/children/{childPath:.+}")
public javax.ws.rs.core.Response disassociateChildInFeed(@PathParam(value="feedId")
String feedId,
@Encoded @PathParam(value="resourcePath")
String resourcePath,
@Encoded @PathParam(value="childPath")
String childPath,
@QueryParam(value="canonical") @DefaultValue(value="false")
boolean isCanonical)
@PUT
@Path(value="/{environmentId}/resources/{resourcePath:.+}")
public javax.ws.rs.core.Response update(@PathParam(value="environmentId")
String environmentId,
@Encoded @PathParam(value="resourcePath")
String resourcePath,
Resource.Update update)
@PUT
@Path(value="/feeds/{feedId}/resources/{resourcePath:.+}")
public javax.ws.rs.core.Response updateInFeed(@PathParam(value="feedId")
String feedId,
@Encoded @PathParam(value="resourcePath")
String resourcePath,
Resource.Update update)
@DELETE
@Path(value="/{environmentId}/resources/{resourcePath:.+}")
public javax.ws.rs.core.Response deleteResource(@PathParam(value="environmentId")
String environmentId,
@Encoded @PathParam(value="resourcePath")
String resourcePath)
@DELETE
@Path(value="/feeds/{feedId}/resources/{resourcePath:.+}")
public javax.ws.rs.core.Response deleteResourceInFeed(@PathParam(value="feedId")
String feedId,
@Encoded @PathParam(value="resourcePath")
String resourcePath)
protected org.hawkular.inventory.paths.CanonicalPath composeCanonicalPath(String tenantId, String envId, String feedId, String resourcePath)
@GET
@Path(value="/{environmentId}/resources/{resourcePath:.+}/recursiveChildren")
public javax.ws.rs.core.Response getRecursiveChildren(@PathParam(value="environmentId")
String environmentId,
@Encoded @PathParam(value="resourcePath")
String resourcePath,
@Encoded @QueryParam(value="typeId")
String resourceTypeId,
@Context
javax.ws.rs.core.UriInfo uriInfo)
@GET
@Path(value="/feeds/{feedId}/resources/{resourcePath:.+}/recursiveChildren")
public javax.ws.rs.core.Response getRecursiveChildren(@PathParam(value="feedId")
String feedId,
@Encoded @PathParam(value="resourcePath")
String resourcePath,
@Encoded @QueryParam(value="typeId")
String resourceTypeId,
@QueryParam(value="feedlessType") @DefaultValue(value="false")
boolean feedlessType,
@Context
javax.ws.rs.core.UriInfo uriInfo)
Copyright © 2015–2016 Red Hat, Inc.. All rights reserved.