Class ConfigurationSupport
java.lang.Object
it.uniroma2.art.semanticturkey.config.impl.ConfigurationSupport
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Configuration
createConfiguration
(ConfigurationManager<?> configurationManager, Map<String, Object> properties) static void
deleteConfiguration
(File folder, String identifier) static Class<?>
getConfigurationClass
(ConfigurationManager<?> systemConfigurationManager, String configType) static File
getConfigurationFolder
(ProjectConfigurationManager<?> manager, Project project) static File
getConfigurationFolder
(PUConfigurationManager<?> manager, Project project, STUser user) static File
getConfigurationFolder
(SystemConfigurationManager<?> manager) static File
getConfigurationFolder
(UserConfigurationManager<?> manager, STUser user) static Collection<String>
listConfigurationIdentifiers
(File folder) static <CONFTYPE extends Configuration>
CONFTYPEloadConfiguration
(ConfigurationManager<CONFTYPE> configurationManager, File folder, String identifier) static <CONFTYPE extends Configuration>
voidstoreConfiguration
(File folder, String identifier, CONFTYPE configuration)
-
Field Details
-
logger
protected static org.slf4j.Logger logger -
CONFIG_TYPE_PARAM
- See Also:
-
-
Constructor Details
-
ConfigurationSupport
public ConfigurationSupport()
-
-
Method Details
-
getConfigurationFolder
-
getConfigurationFolder
-
getConfigurationFolder
-
getConfigurationFolder
public static File getConfigurationFolder(PUConfigurationManager<?> manager, Project project, STUser user) -
listConfigurationIdentifiers
-
loadConfiguration
public static <CONFTYPE extends Configuration> CONFTYPE loadConfiguration(ConfigurationManager<CONFTYPE> configurationManager, File folder, String identifier) throws STPropertyAccessException - Throws:
STPropertyAccessException
-
getConfigurationClass
public static Class<?> getConfigurationClass(ConfigurationManager<?> systemConfigurationManager, @Nullable String configType) throws ConfigurationReflectionException - Throws:
ConfigurationReflectionException
-
storeConfiguration
public static <CONFTYPE extends Configuration> void storeConfiguration(File folder, String identifier, CONFTYPE configuration) throws IOException, WrongPropertiesException, STPropertyUpdateException -
deleteConfiguration
public static void deleteConfiguration(File folder, String identifier) throws ConfigurationNotFoundException - Throws:
ConfigurationNotFoundException
-
createConfiguration
public static Configuration createConfiguration(ConfigurationManager<?> configurationManager, Map<String, Object> properties) throws WrongPropertiesException- Throws:
WrongPropertiesException
-