@Path(value="/deprecated") @Produces(value="application/json") @Consumes(value="application/json") public class RestRelationships extends RestBase
| Modifier and Type | Field and Description |
|---|---|
static Map<String,Class<? extends Entity<?,?>>> |
entityMap |
| Constructor and Description |
|---|
RestRelationships() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
create(String path,
Relationship relation,
javax.ws.rs.core.UriInfo uriInfo) |
javax.ws.rs.core.Response |
delete(String path,
Relationship relation,
javax.ws.rs.core.UriInfo uriInfo) |
static RelationFilter[] |
extractFilters(String propertyName,
String propertyValue,
String named,
String sourceType,
String targetType,
javax.ws.rs.core.UriInfo info) |
javax.ws.rs.core.Response |
get(String path,
String direction,
String propertyName,
String propertyValue,
String named,
String sourceType,
String targetType,
String jsonLd,
javax.ws.rs.core.UriInfo uriInfo) |
javax.ws.rs.core.Response |
getRelationship(String relationshipId,
String jsonLd,
javax.ws.rs.core.UriInfo uriInfo) |
javax.ws.rs.core.Response |
update(String path,
Relationship relation,
javax.ws.rs.core.UriInfo uriInfo) |
create, getMapper, getPath, getPath, getTenantId, getTenantPath, getTraverser, pagedResponse, pagedResponse, parsePath, setupMapper@GET
@Path(value="{path:.*}/relationships")
public javax.ws.rs.core.Response get(@PathParam(value="path")
String path,
@DefaultValue(value="both") @QueryParam(value="direction")
String direction,
@DefaultValue(value="") @QueryParam(value="property")
String propertyName,
@DefaultValue(value="") @QueryParam(value="propertyValue")
String propertyValue,
@DefaultValue(value="") @QueryParam(value="named")
String named,
@DefaultValue(value="") @QueryParam(value="sourceType")
String sourceType,
@DefaultValue(value="") @QueryParam(value="targetType")
String targetType,
@DefaultValue(value="false") @QueryParam(value="jsonld")
String jsonLd,
@Context
javax.ws.rs.core.UriInfo uriInfo)
@GET
@Path(value="/relationships/{relationshipId}")
public javax.ws.rs.core.Response getRelationship(@PathParam(value="relationshipId")
String relationshipId,
@DefaultValue(value="false") @QueryParam(value="jsonld")
String jsonLd,
@Context
javax.ws.rs.core.UriInfo uriInfo)
throws com.fasterxml.jackson.core.JsonProcessingException
com.fasterxml.jackson.core.JsonProcessingException@DELETE
@Path(value="{path:.*}/relationships")
public javax.ws.rs.core.Response delete(@PathParam(value="path")
String path,
Relationship relation,
@Context
javax.ws.rs.core.UriInfo uriInfo)
@POST
@Path(value="{path:.*}/relationships")
public javax.ws.rs.core.Response create(@PathParam(value="path")
String path,
Relationship relation,
@Context
javax.ws.rs.core.UriInfo uriInfo)
@PUT
@Path(value="{path:.*}/relationships")
public javax.ws.rs.core.Response update(@PathParam(value="path")
String path,
Relationship relation,
@Context
javax.ws.rs.core.UriInfo uriInfo)
Copyright © 2015–2016 Red Hat, Inc.. All rights reserved.