Class ConfigurationsController
java.lang.Object
it.uniroma2.art.semanticturkey.services.core.controllers.ConfigurationsController
- All Implemented Interfaces:
IntrospectableController
,org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
@Controller
public class ConfigurationsController
extends Object
implements org.springframework.context.ApplicationContextAware, IntrospectableController
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.HttpEntity<String>
deleteConfigurationPublished
(String componentID, String relativeReference) org.springframework.http.HttpEntity<Response<ConfigurationManager<?>>>
getConfigurationManagerPublished
(String componentID) org.springframework.http.HttpEntity<Response<Collection<ConfigurationManager<?>>>>
org.springframework.http.HttpEntity<Response<Configuration>>
getConfigurationPublished
(String componentID, String relativeReference) org.springframework.http.HttpEntity<Response<Collection<Reference>>>
getConfigurationReferencesPublished
(String componentID) void
setApplicationContext
(org.springframework.context.ApplicationContext arg0) org.springframework.http.HttpEntity<String>
storeConfigurationPublished
(String componentID, String relativeReference, com.fasterxml.jackson.databind.node.ObjectNode configuration)
-
Constructor Details
-
ConfigurationsController
public ConfigurationsController()
-
-
Method Details
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext arg0) throws org.springframework.beans.BeansException - Specified by:
setApplicationContext
in interfaceorg.springframework.context.ApplicationContextAware
- Throws:
org.springframework.beans.BeansException
-
getServiceSpecies
- Specified by:
getServiceSpecies
in interfaceIntrospectableController
-
getService
- Specified by:
getService
in interfaceIntrospectableController
-
getConfigurationPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Configurations/getConfiguration", method=GET, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<Configuration>> getConfigurationPublished(@RequestParam("componentID") String componentID, @RequestParam("relativeReference") String relativeReference) throws NoSuchConfigurationManager, IOException, ConfigurationNotFoundException, WrongPropertiesException, STPropertyAccessException -
getConfigurationManagersPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Configurations/getConfigurationManagers", method=GET, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<Collection<ConfigurationManager<?>>>> getConfigurationManagersPublished() -
deleteConfigurationPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Configurations/deleteConfiguration", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<String> deleteConfigurationPublished(@RequestParam("componentID") String componentID, @RequestParam("relativeReference") String relativeReference) throws NoSuchConfigurationManager, ConfigurationNotFoundException -
getConfigurationManagerPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Configurations/getConfigurationManager", method=GET, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<ConfigurationManager<?>>> getConfigurationManagerPublished(@RequestParam("componentID") String componentID) throws NoSuchConfigurationManager - Throws:
NoSuchConfigurationManager
-
getConfigurationReferencesPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Configurations/getConfigurationReferences", method=GET, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<Collection<Reference>>> getConfigurationReferencesPublished(@RequestParam("componentID") String componentID) throws NoSuchConfigurationManager - Throws:
NoSuchConfigurationManager
-
storeConfigurationPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Configurations/storeConfiguration", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<String> storeConfigurationPublished(@RequestParam("componentID") String componentID, @RequestParam("relativeReference") String relativeReference, @RequestParam("configuration") com.fasterxml.jackson.databind.node.ObjectNode configuration) throws NoSuchConfigurationManager, IOException, WrongPropertiesException, STPropertyUpdateException, STPropertyAccessException
-