org.glassfish.jersey.examples.bookmark_em.resource
Class UserResource

java.lang.Object
  extended by org.glassfish.jersey.examples.bookmark_em.resource.UserResource

public class UserResource
extends Object

Author:
Jakub Podlesak (jakub.podlesak at oracle.com), Paul Sandoz (paul.sandoz at oracle.com), Michal Gajdos (michal.gajdos at oracle.com)

Constructor Summary
UserResource(UriInfo uriInfo, javax.persistence.EntityManager em, UserTransaction utx, String userid)
          Creates a new instance of UserResource
 
Method Summary
 void deleteUser()
           
 BookmarksResource getBookmarksResource()
           
 org.codehaus.jettison.json.JSONObject getUser()
           
 UserEntity getUserEntity()
           
 Response putUser(org.codehaus.jettison.json.JSONObject jsonEntity)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UserResource

public UserResource(UriInfo uriInfo,
                    javax.persistence.EntityManager em,
                    UserTransaction utx,
                    String userid)
Creates a new instance of UserResource

Method Detail

getBookmarksResource

@Path(value="bookmarks/")
public BookmarksResource getBookmarksResource()

getUser

public org.codehaus.jettison.json.JSONObject getUser()
                                              throws org.codehaus.jettison.json.JSONException
Throws:
org.codehaus.jettison.json.JSONException

putUser

public Response putUser(org.codehaus.jettison.json.JSONObject jsonEntity)
                 throws org.codehaus.jettison.json.JSONException
Throws:
org.codehaus.jettison.json.JSONException

deleteUser

public void deleteUser()

toString

public String toString()
Overrides:
toString in class Object

getUserEntity

public UserEntity getUserEntity()


Copyright © 2007-2013 Oracle Corporation. All Rights Reserved. Use is subject to license terms.