Class RelationResource

All Implemented Interfaces:
RestResource

@Path("/entities/2.0/{name}/{pk}/{relation}") public class RelationResource extends AbstractRelationResource
  • Constructor Details

  • Method Details

    • getRelation

      @GET @Produces("application/json") public CollectionBean getRelation(@PathParam("name") String modelName, @PathParam("pk") String key, @PathParam("relation") String relationName)
    • searchEntities

      @POST @Path("search") @Produces("application/json") @Consumes("application/json") public CollectionBean searchEntities(@PathParam("name") String modelName, @PathParam("pk") String pk, @PathParam("relation") String relationName, EntitySearchBean searchBean)
    • addEntity

      @POST @Consumes("application/json") public javax.ws.rs.core.Response addEntity(@PathParam("name") String modelName, @PathParam("pk") String pk, @PathParam("relation") String relationName, EntityBean entityBean)
    • setEntities

      @PUT @Consumes("application/json") public javax.ws.rs.core.Response setEntities(@PathParam("name") String modelName, @PathParam("pk") String pk, @PathParam("relation") String relationName, EntityBean[] entityBeans)
    • deleteRelationEntity

      @DELETE @Path("/{target: (?!.*(search))[^/]+ }") public javax.ws.rs.core.Response deleteRelationEntity(@PathParam("name") String modelName, @PathParam("pk") String pk, @PathParam("relation") String relationName, @PathParam("target") String target)
    • getUriBuilder

      protected javax.ws.rs.core.UriBuilder getUriBuilder(javax.ws.rs.core.UriInfo uriInfo, String modelName, String pk, String relationName)