Class ProjectStorageSettings

java.lang.Object
com.e1c.langtool.storage.model.ProjectStorageSettings

public final class ProjectStorageSettings extends Object
The Project Storage Settings, allows to configure the order of reading from storages, special settings how to edit translations in storages with reach capabilities, and some settings for storage segments of all providers. Project settings contains also extended settings for file resource context storage segments and common project dictionary storage segments. This model object is not allowed to modify after created project settings.
  • Constructor Details

    • ProjectStorageSettings

      public ProjectStorageSettings()
  • Method Details

    • getEdit

      public EditSettings getEdit()
      Gets the edit settings.
      Returns:
      the edit settings, cannot return null.
    • setEdit

      public void setEdit(EditSettings edit)
      Sets the edit settings.
      Parameters:
      edit - the new edit settings, can be null.
    • getRead

      public StorageIdList getRead()
      Gets the read storage ID list.
      Returns:
      the read storage ID list, cannot return null.
    • setRead

      public void setRead(StorageIdList read)
      Sets the read storage ID list.
      Parameters:
      read - the new read storage ID list, can be null.
    • getReadStorageIds

      public List<StorageID> getReadStorageIds()
      Gets the read storage IDs.
      Returns:
      the read storage IDs, cannot return null.
    • getContext

      public Map<String,ContextStorageSettings> getContext()
      Gets the context storage settings.
      Returns:
      the context storage settings, cannot return null.
    • getContextSettings

      public Collection<ContextStorageSettings> getContextSettings()
      Gets the context storage settings.
      Returns:
      the context storage settings, cannot return null.
    • setContext

      public void setContext(List<ContextStorageSettings> context)
      Sets the context storage settings..
      Parameters:
      context - the new context storage settings, can be null.
    • setContext

      public void setContext(Map<String,ContextStorageSettings> context)
      Sets the context storage settings.
      Parameters:
      context - the context storage settings, can be null.
    • addContext

      public void addContext(ContextStorageSettings context)
      Adds the context storage settings.
      Parameters:
      context - the context storage settings, cannot be null.
    • getDictionary

      public Map<String,DictionaryStorageSettings> getDictionary()
      Gets the dictionary storage settings.
      Returns:
      the dictionary storage settings, cannot return null.
    • getDictionarySettings

      public Collection<DictionaryStorageSettings> getDictionarySettings()
      Gets the dictionary storage settings.
      Returns:
      the dictionary settings, cannot return null.
    • setDictionary

      public void setDictionary(List<DictionaryStorageSettings> dictionary)
      Sets the dictionary storage settings.
      Parameters:
      dictionary - the new dictionary storage settings, can be null.
    • setDictionary

      public void setDictionary(Map<String,DictionaryStorageSettings> dictionary)
      Sets the dictionary storage settings.
      Parameters:
      dictionary - the dictionary storage settings, can be null.
    • addDictionary

      public void addDictionary(DictionaryStorageSettings dictionary)
      Adds the dictionary settings.
      Parameters:
      dictionary - the dictionary settings, cannot be null.
    • getStorages

      public Map<String,StorageSettings> getStorages()
      Gets the storage settings.
      Returns:
      the storage settings, cannot return null.
    • getStorageSettings

      public Collection<StorageSettings> getStorageSettings()
      Gets the storage settings.
      Returns:
      the storage settings, cannot return null.
    • setStorages

      public void setStorages(List<StorageSettings> storages)
      Sets the storage settings.
      Parameters:
      storages - the new storage settings, can be null.
    • setStorages

      public void setStorages(Map<String,StorageSettings> storages)
      Sets the storage settings.
      Parameters:
      storages - the storage settings, can be null.
    • addStorages

      public void addStorages(StorageSettings storages)
      Adds the other non-resources storage settings.
      Parameters:
      storages - the storage settings, cannot be null.
    • getReadStorageSettings

      public List<StorageSettings> getReadStorageSettings()
      Gets the read storage settings in order of it's use when read storages. This collection is read only and should not be modified.
      Returns:
      the read storage settings, cannot return null.
    • allStorageSettings

      public Map<StorageID,StorageSettings> allStorageSettings()
      All storage settings including all contributed settings of other translation providers that not used. This collection is read only and should not be modified.
      Returns:
      the map of storage ID and storage settings, cannot return null.
    • getContributed

      public List<StorageSettings> getContributed()
      Gets the contributed settings of translation provider segments that not used in this model.
      Returns:
      the contributed, cannot return null.
    • addContributed

      public void addContributed(StorageSettings settings)
      Adds the contributed settings of other translation providers that not used in this model.
      Parameters:
      settings - the settings, cannot be null.