public class DocumentResources extends Object
| Constructor and Description |
|---|
DocumentResources() |
| Modifier and Type | Method and Description |
|---|---|
String |
bind(String operation,
String stringContent) |
Response |
buildResponse(List<String> uuidList,
String category,
String type,
String format)
This method builds the response for the list of UUID's
|
String |
checkIn(Request dsRequest,
Response dsResponse) |
protected Response |
checkOut(String uuid) |
String |
create(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
This method ingest the string content and returns the response
|
String |
findById(String id) |
String |
getCheckOutResponse(javax.servlet.http.HttpServletRequest httpServletRequest,
String category,
String type,
String format,
String staringUUID,
String numUUIDs) |
protected Response |
processDeleteRequest(Request dsRequest) |
String |
remove(String ids,
String identifierType,
String operation,
String docCategory,
String docType,
String docFormat) |
String |
removeDocuments(String deleteRequest) |
String |
update(String stringContent) |
public DocumentResources()
public String create(@Context javax.servlet.http.HttpServletRequest request, @Context javax.servlet.http.HttpServletResponse response) throws Exception
IOExceptionExceptionpublic String findById(String id) throws Exception
id - Exceptionpublic String getCheckOutResponse(@Context javax.servlet.http.HttpServletRequest httpServletRequest, String category, String type, String format, String staringUUID, String numUUIDs) throws Exception
Exceptionpublic Response buildResponse(List<String> uuidList, String category, String type, String format)
uuidList - category - type - format - public String bind(String operation, String stringContent) throws OleDocStoreException, javax.jcr.RepositoryException, OleException, FileNotFoundException
OleDocStoreExceptionjavax.jcr.RepositoryExceptionOleExceptionFileNotFoundExceptionpublic String remove(String ids, String identifierType, String operation, String docCategory, String docType, String docFormat) throws IOException, javax.jcr.RepositoryException, OleException, OleDocStoreException
IOExceptionjavax.jcr.RepositoryExceptionOleExceptionOleDocStoreExceptionpublic String removeDocuments(@PathVariable(value="deleteRequest") String deleteRequest) throws IOException
IOExceptionprotected Response processDeleteRequest(Request dsRequest) throws IOException
IOExceptionCopyright © 2004–2015 The Kuali Foundation. All rights reserved.