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
IOException
Exception
public String findById(String id) throws Exception
id
- Exception
public String getCheckOutResponse(@Context javax.servlet.http.HttpServletRequest httpServletRequest, String category, String type, String format, String staringUUID, String numUUIDs) throws Exception
Exception
public 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
OleDocStoreException
javax.jcr.RepositoryException
OleException
FileNotFoundException
public String remove(String ids, String identifierType, String operation, String docCategory, String docType, String docFormat) throws IOException, javax.jcr.RepositoryException, OleException, OleDocStoreException
IOException
javax.jcr.RepositoryException
OleException
OleDocStoreException
public String removeDocuments(@PathVariable(value="deleteRequest") String deleteRequest) throws IOException
IOException
protected Response processDeleteRequest(Request dsRequest) throws IOException
IOException
Copyright © 2004–2015 The Kuali Foundation. All rights reserved.