Package io.jmix.appsettings
Interface AppSettingsTools
- All Known Implementing Classes:
AppSettingsToolsImpl
public interface AppSettingsTools
-
Method Summary
Modifier and TypeMethodDescriptiongetDefaultPropertyValue
(Class<? extends AppSettingsEntity> clazz, String propertyName) Returns default value for providedpropertyName
andclazz
based on value of one of the AppSettingsDefault annotation.<T extends AppSettingsEntity>
List<String>getPropertyNames
(Class<T> clazz) Returns all non-system properties' names for givenclazz
.getPropertyValue
(Class<? extends AppSettingsEntity> clazz, String propertyName) Returns actual value for providedpropertyName
andclazz
.<T extends AppSettingsEntity>
TloadAppSettingsEntityFromDataStore
(Class<T> clazz) Loads application settings entity by itclazz
from data store.
-
Method Details
-
loadAppSettingsEntityFromDataStore
Loads application settings entity by itclazz
from data store.- Parameters:
clazz
- class that extendsAppSettingsEntity
- Returns:
- application settings entity
-
getPropertyValue
Returns actual value for providedpropertyName
andclazz
.- Parameters:
clazz
- class that extendsAppSettingsEntity
propertyName
- property name for which value should be calculated- Returns:
- actual value of provided
propertyName
-
getDefaultPropertyValue
@Nullable Object getDefaultPropertyValue(Class<? extends AppSettingsEntity> clazz, String propertyName) Returns default value for providedpropertyName
andclazz
based on value of one of the AppSettingsDefault annotation.- Parameters:
clazz
- class that extendsAppSettingsEntity
propertyName
- property name for which default value should be calculated- Returns:
- value by default of provided
propertyName
-
getPropertyNames
Returns all non-system properties' names for givenclazz
.- Parameters:
clazz
- class that extendsAppSettingsEntity
- Returns:
- non-system properties' names for given
clazz
-