public class LogsResource extends Object
| Constructor and Description |
|---|
LogsResource()
Creates a new instance of LogsResource
|
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
add(javax.servlet.http.HttpServletRequest req,
javax.ws.rs.core.HttpHeaders headers,
Logs data)
POST method for creating multiple log instances.
|
javax.ws.rs.core.Response |
create(javax.servlet.http.HttpServletRequest req,
javax.ws.rs.core.HttpHeaders headers,
Long logId,
Log data)
PUT method for editing a log instance identified by the payload.
|
javax.ws.rs.core.Response |
query()
GET method for retrieving a collection of Log instances,
based on a multi-parameter query specifying patterns for tag and logbook details to match against.
|
javax.ws.rs.core.Response |
read(Long logId)
GET method for retrieving an instance of Log identified by id.
|
javax.ws.rs.core.Response |
remove(Long logId)
DELETE method for deleting a log instance identified by
path parameter id.
|
javax.ws.rs.core.Response |
update(javax.servlet.http.HttpServletRequest req,
javax.ws.rs.core.HttpHeaders headers,
Long logId,
Log data)
POST method for merging logbooks and tags of the Log identified by the
payload into an existing log.
|
public javax.ws.rs.core.Response query()
throws javax.jcr.RepositoryException,
UnsupportedEncodingException,
NoSuchAlgorithmException
javax.jcr.RepositoryExceptionUnsupportedEncodingExceptionNoSuchAlgorithmExceptionpublic javax.ws.rs.core.Response add(@Context
javax.servlet.http.HttpServletRequest req,
@Context
javax.ws.rs.core.HttpHeaders headers,
Logs data)
throws IOException,
UnsupportedEncodingException,
NoSuchAlgorithmException,
NamingException,
javax.jcr.RepositoryException
data - Logs data (from payload)IOException - when audit or log failUnsupportedEncodingExceptionNoSuchAlgorithmExceptionNamingExceptionjavax.jcr.RepositoryExceptionpublic javax.ws.rs.core.Response read(Long logId) throws UnsupportedEncodingException, NoSuchAlgorithmException
logId - log idUnsupportedEncodingExceptionNoSuchAlgorithmExceptionpublic javax.ws.rs.core.Response create(@Context
javax.servlet.http.HttpServletRequest req,
@Context
javax.ws.rs.core.HttpHeaders headers,
Long logId,
Log data)
throws UnsupportedEncodingException,
NoSuchAlgorithmException
logId - id of log to editdata - new data (logbooks/tags) for log idUnsupportedEncodingExceptionNoSuchAlgorithmExceptionpublic javax.ws.rs.core.Response update(@Context
javax.servlet.http.HttpServletRequest req,
@Context
javax.ws.rs.core.HttpHeaders headers,
Long logId,
Log data)
throws UnsupportedEncodingException,
NoSuchAlgorithmException
logId - id of log to adddata - new Log data (logbooks/tags) to be merged into log idUnsupportedEncodingExceptionNoSuchAlgorithmExceptionpublic javax.ws.rs.core.Response remove(Long logId) throws UnsupportedEncodingException, NoSuchAlgorithmException
logId - log to removeUnsupportedEncodingExceptionNoSuchAlgorithmExceptionCopyright © 2010-2014 Michigan State University. All Rights Reserved.