public interface OlogClient
Modifier and Type | Method and Description |
---|---|
Attachment |
add(File local,
Long logId) |
void |
delete(Collection<Log> logs)
Remove the log collection identified by log
|
void |
delete(LogbookBuilder logbook,
Collection<Long> logIds)
Remove the logbook logbook from the set of logs logIds
|
void |
delete(LogbookBuilder logbook,
Long logId)
Remove logbook logbook from the log with name logName
|
void |
delete(LogBuilder log)
Remove the log identified by log
|
void |
delete(Long logId)
Remove the log identified by log
|
void |
delete(PropertyBuilder property,
Collection<Long> logIds)
Remove the property property from the set of logs
logIds
|
void |
delete(PropertyBuilder property,
Long logId)
Remove property property from the log with id logId
TODO: Should this be it's own service?
|
void |
delete(String fileName,
Long logId)
Remove file attachment from log logId
TODO: sardine delete hangs up, using jersey for delete
|
void |
delete(TagBuilder tag,
Collection<Long> logIds)
Remove the tag tag from all the logs logNames
|
void |
delete(TagBuilder tag,
Long logId)
Remove tag tag from the log with the id logId
|
void |
deleteLogbook(String logbook) |
void |
deleteProperty(String property)
Delete the property with name property
|
void |
deleteTag(String tag)
Remove {tag} from all logs
|
Log |
findLogById(Long logId)
Deprecated.
|
Collection<Log> |
findLogs(Map<String,String> map)
Query for logs based on the criteria specified in the map
|
Collection<Log> |
findLogs(javax.ws.rs.core.MultivaluedMap<String,String> map)
Multivalued map used to search for a key with multiple values.
|
Collection<Log> |
findLogsByLogbook(String logbook)
This function is a subset of queryLogs - should it be removed??
|
Collection<Log> |
findLogsByProperty(String propertyName) |
Collection<Log> |
findLogsByProperty(String propertyName,
String attributeName,
String attributeValue)
This function is a subset of queryLogs should it be removed??
|
Collection<Log> |
findLogsBySearch(String pattern) |
Collection<Log> |
findLogsByTag(String pattern) |
InputStream |
getAttachment(Long logId,
Attachment attachment) |
Log |
getLog(Long logId)
Returns a log that exactly matches the logId logId
|
Property |
getProperty(String property)
return the complete property property
|
Collection<Attachment> |
listAttachments(Long logId)
Returns a collection of attachments that matches the logId logId
|
Collection<String> |
listAttributes(String propertyName)
List all the active attributes associated with the property propertyName
property must exist, name != null
|
Collection<Level> |
listLevels()
Get a list of all the levels currently existing
|
Collection<Logbook> |
listLogbooks()
Get a list of all the logbooks currently existings
|
Collection<Log> |
listLogs()
Return all the logs.
|
Collection<Property> |
listProperties()
Get a list of all the Properties currently existing
|
Collection<Tag> |
listTags()
Get a list of all the tags currently existing
|
Collection<Log> |
set(Collection<LogBuilder> logs)
Deprecated.
|
Logbook |
set(LogbookBuilder logbookBuilder)
Set a new logbook logbook with no associated logs.
|
Logbook |
set(LogbookBuilder logbook,
Collection<Long> logIds)
Set Logbook logbook to the logs logIds and remove it
from all other logs
TODO: all logids should exist, no nulls, check transaction
|
Log |
set(LogBuilder log)
Set a single log log, if the log already exists it is replaced.
|
Property |
set(PropertyBuilder property)
Create or replace property property
TODO: test creation of a new property, test changing this property, test old log entries still have old property structure
|
Tag |
set(TagBuilder tag)
Set a Tag tag with no associated logs to the database.
|
Tag |
set(TagBuilder tag,
Collection<Long> logIds)
Set tag tag on the set of logs logIds and remove it
from all others
TODO: all logIds should exist/ service should do proper transactions.
|
Collection<Log> |
update(Collection<LogBuilder> logs)
Update a set of logs
|
Logbook |
update(LogbookBuilder logbook,
Collection<Long> logIds)
TODO: transaction check
|
Logbook |
update(LogbookBuilder logbook,
Long logId)
Add Logbook logbook to the log logId
|
Log |
update(LogBuilder log)
Update a log entry log
|
Property |
update(PropertyBuilder property)
Update an existing property,
TODO: check non destructive nature, old attributes should not be touched.
|
Log |
update(PropertyBuilder property,
Long logId)
Update Property property by adding it to Log with id
logId
TODO : service invalid payload, need attribute and value
|
Tag |
update(TagBuilder tag,
Collection<Long> logIds)
Update the Tag tag by adding it to the set of the logs with ids
logIds
TODO: Transactional nature,
|
Tag |
update(TagBuilder tag,
Long logId)
Update Tag tag by adding it to Log with name logName
TODO: logid valid.
|
Collection<Logbook> listLogbooks() throws OlogException
OlogException
Collection<Tag> listTags() throws OlogException
OlogException
Collection<Property> listProperties() throws OlogException
OlogException
Collection<String> listAttributes(String propertyName) throws OlogException
propertyName
- OlogException
Collection<Level> listLevels() throws OlogException
OlogException
Collection<Log> listLogs()
OlogException
Log getLog(Long logId) throws OlogException
logId
- log idOlogException
Collection<Attachment> listAttachments(Long logId) throws OlogException
logId
- log idOlogException
InputStream getAttachment(Long logId, Attachment attachment)
Property getProperty(String property) throws OlogException
property
- OlogException
Log set(LogBuilder log) throws OlogException
log
- the log to be addedOlogException
@Deprecated Collection<Log> set(Collection<LogBuilder> logs) throws OlogException
logs
- collection of logs to be addedOlogException
Tag set(TagBuilder tag) throws OlogException
tag
- OlogException
Tag set(TagBuilder tag, Collection<Long> logIds) throws OlogException
tag
- logIds
- OlogException
Logbook set(LogbookBuilder logbookBuilder) throws OlogException
logbookBuilder
- OlogException
Logbook set(LogbookBuilder logbook, Collection<Long> logIds) throws OlogException
logbook
- logbook builderlogIds
- log idsOlogException
Property set(PropertyBuilder property) throws OlogException
property
- OlogException
Log update(LogBuilder log) throws OlogException
log
- OlogException
Collection<Log> update(Collection<LogBuilder> logs) throws OlogException
logs
- set of logs to be addedOlogException
Property update(PropertyBuilder property)
property
- Tag update(TagBuilder tag, Long logId) throws OlogException
tag
- tag builderlogId
- log id the tag to be addedOlogException
Tag update(TagBuilder tag, Collection<Long> logIds) throws OlogException
tag
- tag builderlogIds
- collection of log idsOlogException
Logbook update(LogbookBuilder logbook, Long logId) throws OlogException
logbook
- logbook builderlogId
- log idOlogException
Logbook update(LogbookBuilder logbook, Collection<Long> logIds) throws OlogException
logIds
- logbook
- OlogException
Log update(PropertyBuilder property, Long logId) throws OlogException
property
- property builderlogId
- log id the property to be addedOlogException
Attachment add(File local, Long logId) throws OlogException
logId
- local
- OlogException
@Deprecated Log findLogById(Long logId) throws OlogException
logId
- OlogException
Collection<Log> findLogsBySearch(String pattern) throws OlogException
pattern
- OlogException
Collection<Log> findLogsByTag(String pattern) throws OlogException
pattern
- OlogException
Collection<Log> findLogsByLogbook(String logbook) throws OlogException
TODO: add the usage of patterns and implement on top of the general query using the map
logbook
- logbook nameOlogException
Collection<Log> findLogsByProperty(String propertyName, String attributeName, String attributeValue) throws OlogException
search for logs with property property and optionally value matching patternpropertyValue
property
- OlogException
Collection<Log> findLogsByProperty(String propertyName) throws OlogException
OlogException
Collection<Log> findLogs(Map<String,String> map) throws OlogException
map
- OlogException
Collection<Log> findLogs(javax.ws.rs.core.MultivaluedMap<String,String> map) throws OlogException
map
- Multivalue map for searching a key with multiple valuesOlogException
void deleteTag(String tag) throws OlogException
tag
- OlogException
void deleteLogbook(String logbook) throws OlogException
logbook
- LogFinderException
OlogException
void deleteProperty(String property) throws OlogException
property
- OlogException
void delete(LogBuilder log) throws OlogException
log
- log to be removedOlogException
void delete(Long logId) throws OlogException
logId
- log id log id to be removedOlogException
void delete(Collection<Log> logs) throws OlogException
logs
- logs to be removedOlogException
void delete(TagBuilder tag, Long logId) throws OlogException
tag
- logId
- OlogException
void delete(TagBuilder tag, Collection<Long> logIds) throws OlogException
tag
- logIds
- OlogException
void delete(LogbookBuilder logbook, Long logId) throws OlogException
logbook
- logbook builderlogId
- log idOlogException
void delete(LogbookBuilder logbook, Collection<Long> logIds) throws OlogException
logbook
- logIds
- OlogException
void delete(PropertyBuilder property, Long logId) throws OlogException
property
- property builderlogId
- log idOlogException
void delete(PropertyBuilder property, Collection<Long> logIds) throws OlogException
property
- logIds
- OlogException
void delete(String fileName, Long logId) throws OlogException
String
- fileNameLong
- logIdOlogException
Copyright © 2010-2014 Michigan State University. All Rights Reserved.