Modifier and Type | Field and Description |
---|---|
static javax.persistence.metamodel.SingularAttribute<Logbook,Long> |
Logbook_.id |
static javax.persistence.metamodel.SetAttribute<Log,Logbook> |
Log_.logbooks |
static javax.persistence.metamodel.SingularAttribute<Logbook,String> |
Logbook_.name |
static javax.persistence.metamodel.SingularAttribute<Logbook,String> |
Logbook_.owner |
Modifier and Type | Method and Description |
---|---|
Logbook |
OlogImpl.addSingleLogbook(String logbookName,
Long logId)
Add the logbook identified by logbook to the single log
id.
|
static Logbook |
LogbookManager.create(String name,
String owner)
Creates a logbook in the database.
|
Logbook |
OlogImpl.createOrReplaceLogbook(String logbookName,
Logbook data)
Adds the logbook identified by tag exclusively to the
logs specified in the Logbook payload data, creating it if
necessary.
|
static Logbook |
LogbookManager.findLogbook(String name)
XXX: The biggest bottom neck here is that if the logbook contains more than 1000 logs, the merge times goes up
exponentially, to prevent this, lets get a logbook without logs, removing the botton neck.
|
Logbook |
OlogImpl.findLogbookByName(String name)
Return single logbook found by name.
|
static Logbook |
LogbookManager.findLogbookOld(String name)
Deprecated.
|
Logbook |
OlogImpl.updateLogbook(Logbook data)
Add the logbook identified by logbook to the logs specified in
the Logs data.
|
Modifier and Type | Method and Description |
---|---|
Collection<Logbook> |
Logbooks.getLogbooks()
Returns a collection of Logbook.
|
Set<Logbook> |
Log.getLogbooks()
Getter for log's Logbooks.
|
Modifier and Type | Method and Description |
---|---|
void |
Logbooks.addLogbook(Logbook item)
Adds a logbook to the logbook collection.
|
void |
Log.addLogbook(Logbook logbook)
Adds an Logbook to the log.
|
void |
OlogImpl.checkNameMatchesPayload(String name,
Logbook data)
Check that name matches the logbook name in data.
|
void |
OlogImpl.checkUserBelongsToGroup(String user,
Logbook data)
Check that user belongs to the owner group specified in the
logbook data.
|
void |
OlogImpl.checkValidNameAndOwner(Logbook data)
Check the logbook in data for valid name/owner data.
|
javax.ws.rs.core.Response |
LogbooksResource.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.
|
Logbook |
OlogImpl.createOrReplaceLogbook(String logbookName,
Logbook data)
Adds the logbook identified by tag exclusively to the
logs specified in the Logbook payload data, creating it if
necessary.
|
void |
Log.removeLogbook(Logbook logbook) |
static String |
Logbook.toLogger(Logbook data)
Creates a compact string representation for the log.
|
javax.ws.rs.core.Response |
LogbooksResource.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.
|
Logbook |
OlogImpl.updateLogbook(Logbook data)
Add the logbook identified by logbook to the logs specified in
the Logs data.
|
Modifier and Type | Method and Description |
---|---|
void |
Logbooks.setLogbooks(Collection<Logbook> items)
Sets the collection of logbooks.
|
void |
Log.setLogbooks(Set<Logbook> logbooks)
Setter for log's Logbooks.
|
static String |
Logbooks.toLogger(Set<Logbook> data) |
Constructor and Description |
---|
Logbooks(Logbook logbook)
Creates a new instance of Logbooks with one initial logbook.
|
Copyright © 2010-2014 Michigan State University. All Rights Reserved.