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

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

public class ObjectSetResource
extends Object


Field Summary
protected static String JSON
           
static String OBJECTSET_JSON
           
static String OBJECTSET_XML
           
static String OBJECTSETS_JSON
           
static String OBJECTSETS_XML
           
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
           
protected static String XML
           
 
Constructor Summary
ObjectSetResource(CloudSyncService service)
           
 
Method Summary
 javax.ws.rs.core.Response createObjectSet(javax.ws.rs.core.UriInfo uriInfo, javax.servlet.http.HttpServletRequest req, ObjectSet objectSet)
           
 void deleteObjectSet(String id)
           
 ObjectSet getObjectSet(javax.ws.rs.core.UriInfo uriInfo, javax.servlet.http.HttpServletRequest req, String id)
           
 List<ObjectSet> listObjectSets(javax.ws.rs.core.UriInfo uriInfo, javax.servlet.http.HttpServletRequest req)
           
 ObjectSet updateObjectSet(javax.ws.rs.core.UriInfo uriInfo, javax.servlet.http.HttpServletRequest req, String id, ObjectSet objectSet)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OBJECTSET_JSON

public static final String OBJECTSET_JSON
See Also:
Constant Field Values

OBJECTSET_XML

public static final String OBJECTSET_XML
See Also:
Constant Field Values

OBJECTSETS_JSON

public static final String OBJECTSETS_JSON
See Also:
Constant Field Values

OBJECTSETS_XML

public static final String OBJECTSETS_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

ObjectSetResource

public ObjectSetResource(CloudSyncService service)
Method Detail

createObjectSet

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

updateObjectSet

public ObjectSet updateObjectSet(@Context
                                 javax.ws.rs.core.UriInfo uriInfo,
                                 @Context
                                 javax.servlet.http.HttpServletRequest req,
                                 String id,
                                 ObjectSet objectSet)

listObjectSets

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

getObjectSet

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

deleteObjectSet

public void deleteObjectSet(String id)


Copyright © 2012 DuraSpace. All Rights Reserved.