Interface EditorConfigStorage
- All Known Implementing Classes:
CachedEditorConfigStorage, RDBMSEditorConfigStorageImpl
public interface EditorConfigStorage
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe error of a config closed because the document's content was written outside its editor session: such a config is never opened again, and a save of a copy read before the close keeps it closed. -
Method Summary
Modifier and TypeMethodDescriptionintdeleteClosedConfigsBefore(long expirationTime, int limit) voiddeleteConfig(String key, Config config) voiddeleteConfig(List<String> keys, Config config) getActiveConfigsByDocId(String docId) getAllActiveConfigsByDocId(String docId) Every active config of a document, a user's older ones included, whichgetActiveConfigsByDocId(String)hides behind their newest.getConfigsByDocId(String docId) getConfigsByKey(String key) booleanreopenConfig(Config config) Opens a stored config at its opened time, unless a content write outside the editor closed it (CONTENT_UPDATED_OUTSIDE_EDITOR), whenever the given copy was read.voidsaveConfig(String key, Config config, boolean isNew) voidsaveConfig(List<String> keys, Config config, boolean isNew)
-
Field Details
-
CONTENT_UPDATED_OUTSIDE_EDITOR
The error of a config closed because the document's content was written outside its editor session: such a config is never opened again, and a save of a copy read before the close keeps it closed.- See Also:
-
-
Method Details
-
getConfigsByKey
-
getConfigsByDocId
-
getActiveConfigsByDocId
-
getAllActiveConfigsByDocId
Every active config of a document, a user's older ones included, whichgetActiveConfigsByDocId(String)hides behind their newest.- Parameters:
docId- the document node's UUID- Returns:
- the active configs, newest first
-
deleteClosedConfigsBefore
-
saveConfig
-
saveConfig
-
deleteConfig
-
deleteConfig
-
closeUnopenedConversionConfigs
int closeUnopenedConversionConfigs() -
reopenConfig
Opens a stored config at its opened time, unless a content write outside the editor closed it (CONTENT_UPDATED_OUTSIDE_EDITOR), whenever the given copy was read.- Parameters:
config- the config to open, its opened time set- Returns:
- true if the stored config was opened
-