Class ResourceMetadataController
java.lang.Object
it.uniroma2.art.semanticturkey.services.core.controllers.ResourceMetadataController
- All Implemented Interfaces:
IntrospectableController
,org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
@Controller
public class ResourceMetadataController
extends Object
implements org.springframework.context.ApplicationContextAware, IntrospectableController
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.HttpEntity<String>
addAssociationPublished
(RDFResourceRole role, String patternReference) org.springframework.http.HttpEntity<String>
clonePatternPublished
(String reference, String name) org.springframework.http.HttpEntity<String>
createPatternPublished
(String reference, com.fasterxml.jackson.databind.node.ObjectNode definition) org.springframework.http.HttpEntity<String>
deleteAssociationPublished
(String reference) org.springframework.http.HttpEntity<String>
deletePatternPublished
(String reference) void
exportPatternPublished
(jakarta.servlet.http.HttpServletResponse oRes, String reference) org.springframework.http.HttpEntity<Response<Collection<String>>>
org.springframework.http.HttpEntity<Response<Collection<String>>>
org.springframework.http.HttpEntity<Response<Collection<String>>>
org.springframework.http.HttpEntity<Response<ResourceMetadataPattern>>
getPatternPublished
(String reference) org.springframework.http.HttpEntity<String>
importPatternFromLibraryPublished
(String reference, String name) org.springframework.http.HttpEntity<String>
importPatternPublished
(org.springframework.web.multipart.MultipartFile inputFile, String name) org.springframework.http.HttpEntity<Response<com.fasterxml.jackson.databind.JsonNode>>
void
setApplicationContext
(org.springframework.context.ApplicationContext arg0) org.springframework.http.HttpEntity<String>
storePatternInLibraryPublished
(String reference, String name) org.springframework.http.HttpEntity<String>
updatePatternPublished
(String reference, com.fasterxml.jackson.databind.node.ObjectNode definition)
-
Constructor Details
-
ResourceMetadataController
public ResourceMetadataController()
-
-
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
-
getLibraryPatternIdentifiersPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/ResourceMetadata/getLibraryPatternIdentifiers", method=GET, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<Collection<String>>> getLibraryPatternIdentifiersPublished() throws NoSuchConfigurationManager- Throws:
NoSuchConfigurationManager
-
deletePatternPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/ResourceMetadata/deletePattern", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<String> deletePatternPublished(@RequestParam("reference") String reference) throws ConfigurationNotFoundException, STPropertyAccessException, NoSuchConfigurationManager -
getFactoryPatternIdentifiersPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/ResourceMetadata/getFactoryPatternIdentifiers", method=GET, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<Collection<String>>> getFactoryPatternIdentifiersPublished() throws NoSuchConfigurationManager- Throws:
NoSuchConfigurationManager
-
clonePatternPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/ResourceMetadata/clonePattern", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<String> clonePatternPublished(@RequestParam("reference") String reference, @RequestParam("name") String name) throws STPropertyAccessException, WrongPropertiesException, IOException, STPropertyUpdateException, NoSuchConfigurationManager -
getPatternIdentifiersPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/ResourceMetadata/getPatternIdentifiers", method=GET, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<Collection<String>>> getPatternIdentifiersPublished() throws NoSuchConfigurationManager- Throws:
NoSuchConfigurationManager
-
storePatternInLibraryPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/ResourceMetadata/storePatternInLibrary", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<String> storePatternInLibraryPublished(@RequestParam("reference") String reference, @RequestParam("name") String name) throws STPropertyAccessException, WrongPropertiesException, IOException, STPropertyUpdateException, NoSuchConfigurationManager -
updatePatternPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/ResourceMetadata/updatePattern", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<String> updatePatternPublished(@RequestParam("reference") String reference, @RequestParam("definition") @JsonSerialized com.fasterxml.jackson.databind.node.ObjectNode definition) throws IOException, WrongPropertiesException, STPropertyUpdateException, NoSuchConfigurationManager -
importPatternFromLibraryPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/ResourceMetadata/importPatternFromLibrary", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<String> importPatternFromLibraryPublished(@RequestParam("reference") String reference, @RequestParam("name") String name) throws STPropertyAccessException, WrongPropertiesException, IOException, STPropertyUpdateException, NoSuchConfigurationManager -
exportPatternPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/ResourceMetadata/exportPattern", method=GET, produces="application/json;charset=UTF-8") public void exportPatternPublished(jakarta.servlet.http.HttpServletResponse oRes, @RequestParam("reference") String reference) throws IOException, STPropertyAccessException, NoSuchConfigurationManager -
addAssociationPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/ResourceMetadata/addAssociation", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<String> addAssociationPublished(@RequestParam("role") RDFResourceRole role, @RequestParam("patternReference") String patternReference) throws IOException, WrongPropertiesException, STPropertyUpdateException, STPropertyAccessException, ConfigurationNotFoundException, NoSuchConfigurationManager -
importPatternPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/ResourceMetadata/importPattern", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<String> importPatternPublished(@RequestParam("inputFile") org.springframework.web.multipart.MultipartFile inputFile, @RequestParam("name") String name) throws IOException, STPropertyAccessException, WrongPropertiesException, STPropertyUpdateException, NoSuchConfigurationManager -
createPatternPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/ResourceMetadata/createPattern", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<String> createPatternPublished(@RequestParam("reference") String reference, @RequestParam("definition") @JsonSerialized com.fasterxml.jackson.databind.node.ObjectNode definition) throws IOException, WrongPropertiesException, STPropertyUpdateException, NoSuchConfigurationManager -
listAssociationsPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/ResourceMetadata/listAssociations", method=GET, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<com.fasterxml.jackson.databind.JsonNode>> listAssociationsPublished() throws STPropertyAccessException, ConfigurationNotFoundException, NoSuchConfigurationManager -
deleteAssociationPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/ResourceMetadata/deleteAssociation", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<String> deleteAssociationPublished(@RequestParam("reference") String reference) throws ConfigurationNotFoundException, NoSuchConfigurationManager -
getPatternPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/ResourceMetadata/getPattern", method=GET, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<ResourceMetadataPattern>> getPatternPublished(@RequestParam("reference") String reference) throws STPropertyAccessException, IOException, NoSuchConfigurationManager
-