Modifier and Type | Method and Description |
---|---|
Logbook |
OlogImpl.addSingleLogbook(String logbookName,
Long logId)
Add the logbook identified by logbook to the single log
id.
|
Tag |
OlogImpl.addSingleTag(String tagName,
Long logId)
Add the tag identified by tag to the single log logId.
|
void |
OlogImpl.checkIdMatchesPayload(Long logId,
Log data)
Check that logId matches the log id in data.
|
void |
OlogImpl.checkNameMatchesPayload(String name,
Logbook data)
Check that name matches the logbook name in data.
|
void |
OlogImpl.checkNameMatchesPayload(String name,
Tag data)
Check that name matches the tag name in data.
|
void |
OlogImpl.checkPropertyName(String propertyName,
Property data)
Check the property name in data with the property name in the
URL.
|
void |
OlogImpl.checkPropertyName(String propertyName,
XmlProperty data)
Check the property name in data with the property name in the
URL.
|
void |
OlogImpl.checkUserBelongsToGroup(String user,
Log data)
Check that user belongs to the owner group specified in the log
data.
|
void |
OlogImpl.checkUserBelongsToGroup(String user,
Logbook data)
Check that user belongs to the owner group specified in the
logbook data.
|
void |
OlogImpl.checkUserBelongsToGroup(String user,
Logbooks data)
Check that user belongs to the owner groups of all logbooks in
data.
|
void |
OlogImpl.checkUserBelongsToGroup(String user,
Logs data)
Check that user belongs to the owner groups of all logs in
data.
|
void |
OlogImpl.checkUserBelongsToGroupOfLog(String user,
Long logId)
Check that user belongs to the owner group specified in the
database for log logId.
|
void |
OlogImpl.checkUserBelongsToGroupOfLogbook(String user,
String logbook)
Check that user belongs to the owner group specified in the
database for logbook logbook.
|
void |
OlogImpl.checkValid(Log data)
Check the log in data for valid owner data.
|
void |
OlogImpl.checkValid(Logs data)
Check all logs in data for valid owner data.
|
void |
OlogImpl.checkValidNameAndOwner(Logbook data)
Check the logbook in data for valid name/owner data.
|
void |
OlogImpl.checkValidNameAndOwner(Logbooks data)
Check all logbooks in data for valid name/owner data.
|
void |
OlogImpl.checkValidNameAndOwner(Tag data)
Check the tag in data for valid name data.
|
void |
OlogImpl.checkValidNameAndOwner(Tags data)
Check all tags in data for valid name data.
|
static XmlAttachment |
AttachmentManager.create(Attachment attachment,
Long logId) |
static Log |
LogManager.create(Log log)
Creates a Log in the database.
|
static Property |
PropertyManager.create(Property property)
Creates a property in the database.
|
static Property |
AttributeManager.create(Property property,
String attributeName)
Creates a property in the database.
|
static Property |
PropertyManager.create(String propertyName)
Creates a property in the database.
|
static Tag |
TagManager.create(String name)
Creates a tag in the database.
|
static Logbook |
LogbookManager.create(String name,
String owner)
Creates a logbook in the database.
|
Log |
OlogImpl.createOrReplaceLog(Long logId,
Log data)
Update a log identified by logId, creating it when necessary.
|
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.
|
Logbooks |
OlogImpl.createOrReplaceLogbooks(Logbooks data)
Create or replace logbooks specified in data.
|
Logs |
OlogImpl.createOrReplaceLogs(Logs logs)
Create logs specified in data.
|
Tag |
OlogImpl.createOrReplaceTag(String tagName,
Tag data)
Adds the tag identified by tag exclusively to the logs
specified in the Tag payload data, creating it if necessary.
|
Tags |
OlogImpl.createOrReplaceTags(Tags data)
Create tags specified in data.
|
static Set<Property> |
PropertyManager.findAll()
Returns the list of tags in the database.
|
static Logbooks |
LogbookManager.findAll()
Returns the list of logbooks in the database.
|
static Tags |
TagManager.findAll()
Returns the list of tags in the database.
|
static Logs |
LogManager.findAll()
Deprecated.
|
static XmlAttachments |
AttachmentManager.findAll(Long logId) |
static Set<Attribute> |
AttributeManager.findAll(Property property)
Returns the list of set attribute in the database.
|
static List<Long> |
AttachmentManager.findAll(String searchTerm) |
static Attachment |
AttachmentManager.findAttachment(String filePath,
String fileName) |
static Attribute |
AttributeManager.findAttribute(Property property,
String attributeName)
Finds a tag in the database by name.
|
static Log |
LogManager.findLog(Long id)
Finds a log and edits in the database by id.
|
static Logs |
LogManager.findLog(javax.ws.rs.core.MultivaluedMap<String,String> matches) |
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.
|
Log |
OlogImpl.findLogById(Long logId)
Return single log found by log id.
|
Logs |
OlogImpl.findLogsByMultiMatch(javax.ws.rs.core.MultivaluedMap<String,String> matches)
Returns logs found by matching logbook names, tag names, log description.
|
static Property |
PropertyManager.findProperty(String propertyName)
Finds a tag in the database by name.
|
static Tag |
TagManager.findTag(String name)
Finds a tag in the database by name.
|
Tag |
OlogImpl.findTagByName(String name)
Return single tag found by name.
|
DataSource |
DbConnection.getDataSource()
Returns the DataSource Connection, requesting a new one (thread local) if needed.
|
Logbooks |
OlogImpl.listLogbooks()
List all Logbooks in the database.
|
XmlProperties |
OlogImpl.listProperties()
Return a list of all properties
|
Tags |
OlogImpl.listTags()
List all tags in the database.
|
static void |
LogManager.remove(Long id)
Remove a tag (mark as Inactive).
|
static void |
AttributeManager.remove(Property property,
String attributeName)
Remove a attribute (mark as Inactive).
|
static void |
PropertyManager.remove(String propertyName)
Remove a property (mark as Inactive).
|
static void |
LogbookManager.remove(String name)
Remove a logbook (mark as Inactive).
|
static void |
TagManager.remove(String name)
Remove a tag (mark as Inactive).
|
static void |
AttachmentManager.remove(String fileName,
Long logId) |
void |
OlogImpl.removeExistingLogbook(String logbook)
Deletes a logbook identified by name from all logs, failing if
the logbook does not exists.
|
void |
OlogImpl.removeExistingTag(String tag)
Deletes a logbook identified by name from all logs, failing if
the logbook does not exists.
|
void |
OlogImpl.removeLog(Long logId)
Deletes a log identified by logId.
|
void |
OlogImpl.removeLogbook(String logbook)
Deletes a logbook identified by name from all logs.
|
void |
OlogImpl.removeSingleLogbook(String logbookName,
Long logId)
Deletes a logbook identified by name from a single log.
|
void |
OlogImpl.removeSingleTag(String tagName,
Long logId)
Deletes a tag identified by name from a single log.
|
void |
OlogImpl.removeTag(String tag)
Deletes a tag identified by name from all logs.
|
Log |
OlogImpl.updateLog(Long logId,
Log data)
Merge logbook set in data into the existing log logId.
|
Logbook |
OlogImpl.updateLogbook(Logbook data)
Add the logbook identified by logbook to the logs specified in
the Logs data.
|
Tag |
OlogImpl.updateTag(String tagName,
Tag data)
Add the tag identified by tag and state to the logs
specified in the Logs data.
|
Copyright © 2010-2014 Michigan State University. All Rights Reserved.