public class EntryHistory extends Object
| Constructor and Description |
|---|
EntryHistory(String userId,
long entryId) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add()
Adds a read history object for the specified user and entry
|
boolean |
delete(long historyId) |
int |
deleteAll()
Delete all available history for a specified entry
Due to the destructive nature, it is required that the user be
the owner or an administrator
|
Results<History> |
get(int limit,
int offset,
boolean asc,
String sort) |
public EntryHistory(String userId, long entryId)
userId - unique identifier for user making requestsentryId - unique identifier for entry whose history is of interestIllegalArgumentException - if the entry specified by id entryId is not locatedpublic boolean delete(long historyId)
public boolean add()
public int deleteAll()
PermissionException - if the user performing action is neither an admin nor owner of the entryCopyright © 2017. All rights reserved.