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")
                                                       java.lang.String persistenceUnit,
                                                       @PathParam("type")
                                                       java.lang.String type,
                                                       @PathParam("id")
                                                       java.lang.String id,
                                                       @PathParam("attribute")
                                                       java.lang.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")
                                              java.lang.String persistenceUnit,
                                              @PathParam("type")
                                              java.lang.String type,
                                              @PathParam("id")
                                              java.lang.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")
                                                java.lang.String persistenceUnit,
                                                @PathParam("type")
                                                java.lang.String type,
                                                @Context
                                                javax.ws.rs.core.HttpHeaders hh,
                                                @Context
                                                javax.ws.rs.core.UriInfo uriInfo,
                                                java.io.InputStream in)
                                         throws java.lang.Exception
        Deprecated.
        Throws:
        java.lang.Exception
      • update

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

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

        @DELETE
        @Path("{type}/{id}/{attribute}")
        public javax.ws.rs.core.Response removeAttribute​(@PathParam("context")
                                                         java.lang.String persistenceUnit,
                                                         @PathParam("type")
                                                         java.lang.String type,
                                                         @PathParam("id")
                                                         java.lang.String id,
                                                         @PathParam("attribute")
                                                         java.lang.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")
                                                java.lang.String persistenceUnit,
                                                @PathParam("type")
                                                java.lang.String type,
                                                @PathParam("id")
                                                java.lang.String id,
                                                @Context
                                                javax.ws.rs.core.HttpHeaders hh,
                                                @Context
                                                javax.ws.rs.core.UriInfo ui)
        Deprecated.