org.duraspace.fcrepo.cloudsync.service.rest
Class UserResource

java.lang.Object
  extended by org.duraspace.fcrepo.cloudsync.service.rest.UserResource

public class UserResource
extends Object


Field Summary
protected static String JSON
           
protected  CloudSyncService service
           
protected static String STATUS_200_OK
           
protected static String STATUS_201_CREATED
           
protected static String STATUS_204_NO_CONTENT
           
protected static String TEXT
           
static String USER_JSON
           
static String USER_XML
           
static String USERS_JSON
           
static String USERS_XML
           
protected static String XML
           
 
Constructor Summary
UserResource(CloudSyncService service)
           
 
Method Summary
 javax.ws.rs.core.Response createUser(javax.ws.rs.core.UriInfo uriInfo, javax.servlet.http.HttpServletRequest req, User user)
           
 void deleteUser(String id)
           
 javax.ws.rs.core.Response getCurrentUser(javax.ws.rs.core.UriInfo uriInfo, javax.servlet.http.HttpServletRequest req)
           
 User getUser(javax.ws.rs.core.UriInfo uriInfo, javax.servlet.http.HttpServletRequest req, String id)
           
 List<User> listUsers(javax.ws.rs.core.UriInfo uriInfo, javax.servlet.http.HttpServletRequest req)
           
 User updateUser(javax.ws.rs.core.UriInfo uriInfo, javax.servlet.http.HttpServletRequest req, String id, User user)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

USER_JSON

public static final String USER_JSON
See Also:
Constant Field Values

USER_XML

public static final String USER_XML
See Also:
Constant Field Values

USERS_JSON

public static final String USERS_JSON
See Also:
Constant Field Values

USERS_XML

public static final String USERS_XML
See Also:
Constant Field Values

JSON

protected static final String JSON
See Also:
Constant Field Values

TEXT

protected static final String TEXT
See Also:
Constant Field Values

XML

protected static final String XML
See Also:
Constant Field Values

STATUS_200_OK

protected static final String STATUS_200_OK
See Also:
Constant Field Values

STATUS_201_CREATED

protected static final String STATUS_201_CREATED
See Also:
Constant Field Values

STATUS_204_NO_CONTENT

protected static final String STATUS_204_NO_CONTENT
See Also:
Constant Field Values

service

protected final CloudSyncService service
Constructor Detail

UserResource

public UserResource(CloudSyncService service)
Method Detail

createUser

public javax.ws.rs.core.Response createUser(@Context
                                            javax.ws.rs.core.UriInfo uriInfo,
                                            @Context
                                            javax.servlet.http.HttpServletRequest req,
                                            User user)

listUsers

public List<User> listUsers(@Context
                            javax.ws.rs.core.UriInfo uriInfo,
                            @Context
                            javax.servlet.http.HttpServletRequest req)

getUser

public User getUser(@Context
                    javax.ws.rs.core.UriInfo uriInfo,
                    @Context
                    javax.servlet.http.HttpServletRequest req,
                    String id)

getCurrentUser

public javax.ws.rs.core.Response getCurrentUser(@Context
                                                javax.ws.rs.core.UriInfo uriInfo,
                                                @Context
                                                javax.servlet.http.HttpServletRequest req)

updateUser

public User updateUser(@Context
                       javax.ws.rs.core.UriInfo uriInfo,
                       @Context
                       javax.servlet.http.HttpServletRequest req,
                       String id,
                       User user)

deleteUser

public void deleteUser(String id)


Copyright © 2012 DuraSpace. All Rights Reserved.