public class LogbooksResource extends Object
Constructor and Description |
---|
LogbooksResource()
Creates a new instance of LogbooksResource
|
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
add(Logbooks data)
POST method for creating multiple logbooks.
|
javax.ws.rs.core.Response |
addSingle(String logbook,
Long logId)
PUT method for adding the logbook identified by logbook to the log
id (both path parameters).
|
javax.ws.rs.core.Response |
create(String logbookName,
Logbook data)
PUT method for creating and exclusively adding the logbook identified
by the path parameter logbookName to all logs identified by the
payload structure data.
|
javax.ws.rs.core.Response |
list()
GET method for retrieving the list of logbooks in the database.
|
javax.ws.rs.core.Response |
read(String logbook)
GET method for retrieving the logbook with the
path parameter logbookName .
|
javax.ws.rs.core.Response |
remove(String logbook)
DELETE method for deleting the logbook identified by the path parameter
name from all logs.
|
javax.ws.rs.core.Response |
removeSingle(String logbook,
Long logId)
DELETE method for deleting the logbook identified by logbook from the log
id (both path parameters).
|
javax.ws.rs.core.Response |
update(String logbook,
Logbook data)
POST method for updating the logbook identified by the path parameter name,
adding it to all logs identified by the payload structure data.
|
public LogbooksResource()
public javax.ws.rs.core.Response list()
public javax.ws.rs.core.Response add(Logbooks data) throws IOException
data
- Logbooks data (from payload)IOException
- when audit or log failpublic javax.ws.rs.core.Response read(String logbook)
logbook
- URI path parameter: logbook name to search forpublic javax.ws.rs.core.Response create(String logbookName, Logbook data)
logbook
- URI path parameter: logbook namedata
- list of logs to add the logbook name topublic javax.ws.rs.core.Response update(String logbook, Logbook data)
logbook
- URI path parameter: logbook namedata
- list of logs to add the logbook name topublic javax.ws.rs.core.Response remove(String logbook)
logbook
- URI path parameter: logbook name to removepublic javax.ws.rs.core.Response addSingle(String logbook, Long logId)
logbook
- URI path parameter: logbook namelogId
- URI path parameter: log to addSingle logbook todata
- tag data (specifying tag ownership)public javax.ws.rs.core.Response removeSingle(String logbook, Long logId)
logbook
- URI path parameter: logbook name to removelogId
- URI path parameter: log to remove logbook fromCopyright © 2010-2014 Michigan State University. All Rights Reserved.