Class ConfigurationService
java.lang.Object
sk.iway.iwcm.components.configuration.ConfigurationService
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleandeleteConfDetails(Identity user, String name) Removes a stored override so the default configuration value becomes active again.findConfDetailsBy(String propertyName, ConfDetailsDto original, Identity user) Returns configuration values stored in the database.Returns the requested configuration catalog view.getAutocomplete(Identity user, String term) getAutocompleteDetail(Identity user, String name) Vrati ConfDetails pre zadane name pre autocompleteReturns all module paths used by configuration values visible to the user.
-
Field Details
-
VIEW_CHANGED
- See Also:
-
VIEW_CUSTOM
- See Also:
-
VIEW_ALL
- See Also:
-
VIEW_MODULE
- See Also:
-
-
Constructor Details
-
ConfigurationService
-
-
Method Details
-
getAll
Returns configuration values stored in the database.- Parameters:
user- current user- Returns:
- changed configuration values visible to the user
-
getAll
Returns the requested configuration catalog view.- Parameters:
user- current userview- one ofVIEW_CHANGED,VIEW_CUSTOM,VIEW_ALL, orVIEW_MODULEmodulePath- module branch used for the module view- Returns:
- configuration values visible to the user
-
getVisibleModulePaths
Returns all module paths used by configuration values visible to the user.- Parameters:
user- current user- Returns:
- sorted full module paths
-
getOne
-
deleteConfDetails
Removes a stored override so the default configuration value becomes active again.- Parameters:
user- current username- configuration name- Returns:
- true when a visible database override was removed
-
getAutocompleteDetail
Vrati ConfDetails pre zadane name pre autocomplete- Parameters:
name-- Returns:
-
getAutocomplete
-
findConfDetailsBy
public List<ConfDetailsDto> findConfDetailsBy(String propertyName, ConfDetailsDto original, Identity user)
-