Package com.e1c.langtool.storage.model
Class StorageSettings
java.lang.Object
com.e1c.langtool.storage.model.StorageSettings
- Direct Known Subclasses:
EditSettings,ResourceStorageSettings
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets thefeature settingsfilter.getId()Gets the id of the storage.Gets the presentation of the storage.Gets the storage settings.Gets the storage id.booleanChecks if storage is read only.voidsetFeatureFilter(Map<String, FeatureSettingsFilter> featureFilter) Sets thefeature settingsfilter.voidSets the id.voidsetPresentation(String presentation) Sets the presentation of the storage.voidsetReadOnly(Boolean readOnly) Sets the read only.voidsetSettings(Map<String, String> settings) Sets the settings.
-
Field Details
-
storageId
-
-
Constructor Details
-
StorageSettings
public StorageSettings()
-
-
Method Details
-
getId
Gets the id of the storage. Callers should not use instance withoutsetId(String)the id.- Returns:
- the id, can return
null.
-
setId
Sets the id.- Parameters:
id- the new id
-
getStorageId
Gets the storage id. Callers should not use the settings without set the id.- Returns:
- the storage id, cannot return
null.
-
getPresentation
Gets the presentation of the storage.- Returns:
- the presentation, can return
null.
-
setPresentation
Sets the presentation of the storage.- Parameters:
presentation- the new presentation, should not benull.
-
isReadOnly
public boolean isReadOnly()Checks if storage is read only.- Returns:
- true, if storage is read only
-
setReadOnly
Sets the read only.- Parameters:
readOnly- true if the settings is read only
-
getFeatureFilter
Gets thefeature settingsfilter. Callers should not change the returning map entries.- Returns:
- the feature filter, cannot return
null.
-
setFeatureFilter
Sets thefeature settingsfilter.- Parameters:
featureFilter- the feature filter, may benull.
-
getSettings
Gets the storage settings. Callers should not change the returning map entries.- Returns:
- the settings, cannot return
null.
-
setSettings
Sets the settings.- Parameters:
settings- the settings, may benull.
-