|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface HistoryService
This service provides the functionality to store history records. The records are called HistoryRecords and are grouped by ID. The ID may be used to set hierarchical structure. In a typical usage one may set the first string to be the userID, and the second - the service name.
| Field Summary | |
|---|---|
static String |
CACHE_ENABLED_PROPERTY
Property and values used to be set in configuration Used in implementation to cache every opened history document or not to cache them and to access them on every read |
| Method Summary | |
|---|---|
History |
createHistory(HistoryID id,
HistoryRecordStructure recordStructure)
Creates a new history for this ID. |
Iterator<HistoryID> |
getExistingIDs()
Returns the IDs of all existing histories. |
History |
getHistory(HistoryID id)
Returns the history associated with this ID. |
boolean |
isHistoryCreated(HistoryID id)
Checks whether a history is created and stored. |
boolean |
isHistoryExisting(HistoryID id)
Tests if a history with the given ID exists and is loaded. |
void |
moveHistory(HistoryID oldId,
HistoryID newId)
Moves the content of oldId history to the content of the newId. |
void |
purgeLocallyStoredHistory(HistoryID id)
Permamently removes local stored History |
| Field Detail |
|---|
static final String CACHE_ENABLED_PROPERTY
| Method Detail |
|---|
Iterator<HistoryID> getExistingIDs()
History getHistory(HistoryID id)
throws IllegalArgumentException
id - The ID of the history.
IllegalArgumentException - Thrown if there is no such history.boolean isHistoryExisting(HistoryID id)
id - The ID to test.
History createHistory(HistoryID id,
HistoryRecordStructure recordStructure)
throws IllegalArgumentException,
IOException
id - The ID of the history to be created.recordStructure - The structure of the data.
IllegalArgumentException - Thrown if such history already exists.
IOException - Thrown if the history could not be created due to a IO error.
void purgeLocallyStoredHistory(HistoryID id)
throws IOException
id - HistoryID
IOException - Thrown if the history could not be removed due to a IO error.
void moveHistory(HistoryID oldId,
HistoryID newId)
throws IOException
oldId - id of the old and existing historynewId - the place where content of oldId will be moved
IOException - problem moving content to newId.boolean isHistoryCreated(HistoryID id)
id - the history to check
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||