Interface EditorConfigStorage

All Known Implementing Classes:
CachedEditorConfigStorage, RDBMSEditorConfigStorageImpl

public interface EditorConfigStorage
  • Field Details

    • CONTENT_UPDATED_OUTSIDE_EDITOR

      static final String 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

      Map<String,Config> getConfigsByKey(String key)
    • getConfigsByDocId

      Map<String,Config> getConfigsByDocId(String docId)
    • getActiveConfigsByDocId

      Map<String,Config> getActiveConfigsByDocId(String docId)
    • getAllActiveConfigsByDocId

      List<Config> getAllActiveConfigsByDocId(String docId)
      Every active config of a document, a user's older ones included, which getActiveConfigsByDocId(String) hides behind their newest.
      Parameters:
      docId - the document node's UUID
      Returns:
      the active configs, newest first
    • deleteClosedConfigsBefore

      List<Config> deleteClosedConfigsBefore(long expirationTime, int limit)
    • saveConfig

      void saveConfig(String key, Config config, boolean isNew)
    • saveConfig

      void saveConfig(List<String> keys, Config config, boolean isNew)
    • deleteConfig

      void deleteConfig(String key, Config config)
    • deleteConfig

      void deleteConfig(List<String> keys, Config config)
    • closeUnopenedConversionConfigs

      int closeUnopenedConversionConfigs()
    • reopenConfig

      boolean reopenConfig(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.
      Parameters:
      config - the config to open, its opened time set
      Returns:
      true if the stored config was opened