Class EntityResource


  • @Produces({"application/json","application/xml"})
    @Consumes({"application/json","application/xml"})
    @Path("/{context}/entity/")
    public class EntityResource
    extends AbstractEntityResource
    Deprecated.
    Use EntityResource instead.
    • Constructor Detail

      • EntityResource

        public EntityResource()
        Deprecated.
    • Method Detail

      • findAttribute

        @GET
        @Path("{type}/{id}/{attribute}")
        public javax.ws.rs.core.Response findAttribute​(@PathParam("context")
                                                       String persistenceUnit,
                                                       @PathParam("type")
                                                       String type,
                                                       @PathParam("id")
                                                       String id,
                                                       @PathParam("attribute")
                                                       String attribute,
                                                       @Context
                                                       javax.ws.rs.core.HttpHeaders hh,
                                                       @Context
                                                       javax.ws.rs.core.UriInfo ui)
        Deprecated.
      • find

        @GET
        @Path("{type}/{id}")
        public javax.ws.rs.core.Response find​(@PathParam("context")
                                              String persistenceUnit,
                                              @PathParam("type")
                                              String type,
                                              @PathParam("id")
                                              String id,
                                              @Context
                                              javax.ws.rs.core.HttpHeaders hh,
                                              @Context
                                              javax.ws.rs.core.UriInfo ui)
        Deprecated.
      • create

        @PUT
        @Path("{type}")
        public javax.ws.rs.core.Response create​(@PathParam("context")
                                                String persistenceUnit,
                                                @PathParam("type")
                                                String type,
                                                @Context
                                                javax.ws.rs.core.HttpHeaders hh,
                                                @Context
                                                javax.ws.rs.core.UriInfo uriInfo,
                                                InputStream in)
                                         throws Exception
        Deprecated.
        Throws:
        Exception
      • update

        @POST
        @Path("{type}")
        public javax.ws.rs.core.Response update​(@PathParam("context")
                                                String persistenceUnit,
                                                @PathParam("type")
                                                String type,
                                                @Context
                                                javax.ws.rs.core.HttpHeaders hh,
                                                @Context
                                                javax.ws.rs.core.UriInfo uriInfo,
                                                InputStream in)
        Deprecated.
      • setOrAddAttribute

        @POST
        @Path("{type}/{id}/{attribute}")
        public javax.ws.rs.core.Response setOrAddAttribute​(@PathParam("context")
                                                           String persistenceUnit,
                                                           @PathParam("type")
                                                           String type,
                                                           @PathParam("id")
                                                           String id,
                                                           @PathParam("attribute")
                                                           String attribute,
                                                           @Context
                                                           javax.ws.rs.core.HttpHeaders hh,
                                                           @Context
                                                           javax.ws.rs.core.UriInfo ui,
                                                           InputStream in)
        Deprecated.
      • removeAttribute

        @DELETE
        @Path("{type}/{id}/{attribute}")
        public javax.ws.rs.core.Response removeAttribute​(@PathParam("context")
                                                         String persistenceUnit,
                                                         @PathParam("type")
                                                         String type,
                                                         @PathParam("id")
                                                         String id,
                                                         @PathParam("attribute")
                                                         String attribute,
                                                         @Context
                                                         javax.ws.rs.core.HttpHeaders hh,
                                                         @Context
                                                         javax.ws.rs.core.UriInfo ui)
        Deprecated.
      • delete

        @DELETE
        @Path("{type}/{id}")
        public javax.ws.rs.core.Response delete​(@PathParam("context")
                                                String persistenceUnit,
                                                @PathParam("type")
                                                String type,
                                                @PathParam("id")
                                                String id,
                                                @Context
                                                javax.ws.rs.core.HttpHeaders hh,
                                                @Context
                                                javax.ws.rs.core.UriInfo ui)
        Deprecated.