Class StorageSettings

java.lang.Object
com.e1c.langtool.storage.model.StorageSettings
Direct Known Subclasses:
EditSettings, ResourceStorageSettings

public class StorageSettings extends Object
The base class of common storage settings. This settings allows to configure filter by FeatureSettings and other key=value string settings. The model object should not be modified ones it has created, because thread-safe cannot be guaranteed.
See Also:
  • Field Details

  • Constructor Details

    • StorageSettings

      public StorageSettings()
  • Method Details

    • getId

      public String getId()
      Gets the id of the storage. Callers should not use instance without setId(String) the id.
      Returns:
      the id, can return null.
    • setId

      public void setId(String id)
      Sets the id.
      Parameters:
      id - the new id
    • getStorageId

      public StorageID getStorageId()
      Gets the storage id. Callers should not use the settings without set the id.
      Returns:
      the storage id, cannot return null.
    • getPresentation

      public String getPresentation()
      Gets the presentation of the storage.
      Returns:
      the presentation, can return null.
    • setPresentation

      public void setPresentation(String presentation)
      Sets the presentation of the storage.
      Parameters:
      presentation - the new presentation, should not be null.
    • isReadOnly

      public boolean isReadOnly()
      Checks if storage is read only.
      Returns:
      true, if storage is read only
    • setReadOnly

      public void setReadOnly(Boolean readOnly)
      Sets the read only.
      Parameters:
      readOnly - true if the settings is read only
    • getFeatureFilter

      public Map<String,FeatureSettingsFilter> getFeatureFilter()
      Gets the feature settings filter. Callers should not change the returning map entries.
      Returns:
      the feature filter, cannot return null.
    • setFeatureFilter

      public void setFeatureFilter(Map<String,FeatureSettingsFilter> featureFilter)
      Sets the feature settings filter.
      Parameters:
      featureFilter - the feature filter, may be null.
    • getSettings

      public Map<String,String> getSettings()
      Gets the storage settings. Callers should not change the returning map entries.
      Returns:
      the settings, cannot return null.
    • setSettings

      public void setSettings(Map<String,String> settings)
      Sets the settings.
      Parameters:
      settings - the settings, may be null.