org.duraspace.fcrepo.cloudsync.service.rest
Class UserResource
java.lang.Object
org.duraspace.fcrepo.cloudsync.service.rest.UserResource
public class UserResource
- extends Object
|
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 |
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
UserResource
public UserResource(CloudSyncService service)
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.