org.kuali.ole.docstore.discovery.rest
Class DocumentResources

java.lang.Object
  extended by org.kuali.ole.docstore.discovery.rest.DocumentResources

public class DocumentResources
extends Object

Created with IntelliJ IDEA. User: Sreekanth Date: 8/3/12 Time: 3:47 PM To change this template use File | Settings | File Templates.


Constructor Summary
DocumentResources()
           
 
Method Summary
 String checkIn(Request dsRequest, Response dsResponse)
           
protected  String checkOut(String uuid, String requestType)
           
 String create(String stringContent, String apiType, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 String findById(String id)
           
protected  Response processDeleteRequest(Request dsRequest)
           
 String remove(String ids, String identifierType, String operation)
           
 String update(String stringContent)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DocumentResources

public DocumentResources()
Method Detail

findById

public String findById(String id)
                throws Exception
Parameters:
id -
Returns:
Throws:
Exception

create

public String create(@PathVariable(value="ingestContent")
                     String stringContent,
                     String apiType,
                     @Context
                     javax.servlet.http.HttpServletRequest request,
                     @Context
                     javax.servlet.http.HttpServletResponse response)
              throws IOException
Parameters:
stringContent -
Throws:
IOException

update

public String update(@PathVariable(value="stringContent")
                     String stringContent)

remove

public String remove(String ids,
                     String identifierType,
                     String operation)
              throws IOException
Throws:
IOException

processDeleteRequest

protected Response processDeleteRequest(Request dsRequest)
                                 throws IOException
Throws:
IOException

checkIn

public String checkIn(Request dsRequest,
                      Response dsResponse)

checkOut

protected String checkOut(String uuid,
                          String requestType)
                   throws IOException
Throws:
IOException


Copyright © 2004-2012 The Kuali Foundation. All Rights Reserved.