Class CustomFormsController
java.lang.Object
it.uniroma2.art.semanticturkey.services.core.controllers.CustomFormsController
- All Implemented Interfaces:
IntrospectableController
,org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
@Controller
public class CustomFormsController
extends Object
implements org.springframework.context.ApplicationContextAware, IntrospectableController
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.HttpEntity<String>
addFormsMappingPublished
(org.eclipse.rdf4j.model.IRI resource, String formCollId, boolean replace) org.springframework.http.HttpEntity<String>
cloneCustomFormPublished
(String sourceId, String targetId) org.springframework.http.HttpEntity<String>
cloneFormCollectionPublished
(String sourceId, String targetId) org.springframework.http.HttpEntity<String>
org.springframework.http.HttpEntity<String>
org.springframework.http.HttpEntity<String>
deleteCustomFormPublished
(String id, boolean deleteEmptyColl) org.springframework.http.HttpEntity<String>
org.springframework.http.HttpEntity<Response<com.fasterxml.jackson.databind.JsonNode>>
executeLiteralConverterPublished
(String converter, String value, String datatype, String lang) org.springframework.http.HttpEntity<Response<com.fasterxml.jackson.databind.JsonNode>>
executeURIConverterPublished
(String converter, String value) void
exportCustomFormPublished
(jakarta.servlet.http.HttpServletResponse oRes, String id) void
exportFormCollectionPublished
(jakarta.servlet.http.HttpServletResponse oRes, String id) org.springframework.http.HttpEntity<Response<com.fasterxml.jackson.databind.JsonNode>>
org.springframework.http.HttpEntity<Response<com.fasterxml.jackson.databind.JsonNode>>
org.springframework.http.HttpEntity<Response<com.fasterxml.jackson.databind.JsonNode>>
org.springframework.http.HttpEntity<Response<com.fasterxml.jackson.databind.JsonNode>>
getCustomConstructorsPublished
(org.eclipse.rdf4j.model.IRI resource) org.springframework.http.HttpEntity<Response<com.fasterxml.jackson.databind.JsonNode>>
org.springframework.http.HttpEntity<Response<com.fasterxml.jackson.databind.JsonNode>>
org.springframework.http.HttpEntity<Response<com.fasterxml.jackson.databind.JsonNode>>
org.springframework.http.HttpEntity<Response<com.fasterxml.jackson.databind.JsonNode>>
org.springframework.http.HttpEntity<String>
importCustomFormPublished
(org.springframework.web.multipart.MultipartFile inputFile, String newId) org.springframework.http.HttpEntity<String>
importFormCollectionPublished
(org.springframework.web.multipart.MultipartFile inputFile, String newId) inferPearlAnnotationsPublished
(String cfPearl) org.springframework.http.HttpEntity<Response<com.fasterxml.jackson.databind.JsonNode>>
org.springframework.http.HttpEntity<String>
removeFormCollectionOfResourcePublished
(org.eclipse.rdf4j.model.IRI resource) org.springframework.http.HttpEntity<String>
removeReifiedResourcePublished
(org.eclipse.rdf4j.model.IRI subject, org.eclipse.rdf4j.model.IRI predicate, org.eclipse.rdf4j.model.IRI resource) void
setApplicationContext
(org.springframework.context.ApplicationContext arg0) org.springframework.http.HttpEntity<String>
updateCustomFormPublished
(String id, String name, String description, String ref) org.springframework.http.HttpEntity<Response<com.fasterxml.jackson.databind.JsonNode>>
updateCustomFormWithAnnotationsPublished
(String cfId, String prId, boolean save) org.springframework.http.HttpEntity<String>
updateFromCollectionPublished
(String formCollectionId, List<String> customFormIds, List<org.eclipse.rdf4j.model.IRI> suggestions) org.springframework.http.HttpEntity<String>
updateReplacePublished
(org.eclipse.rdf4j.model.IRI resource, boolean replace) org.springframework.http.HttpEntity<Response<com.fasterxml.jackson.databind.JsonNode>>
validatePearlPublished
(String pearl, String formType)
-
Constructor Details
-
CustomFormsController
public CustomFormsController()
-
-
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
-
getCustomFormConfigMapPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/CustomForms/getCustomFormConfigMap", method=GET, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<com.fasterxml.jackson.databind.JsonNode>> getCustomFormConfigMapPublished() -
inferPearlAnnotationsPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/CustomForms/inferPearlAnnotations", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<String>> inferPearlAnnotationsPublished(@RequestParam("cfPearl") String cfPearl) throws it.uniroma2.art.coda.exception.parserexception.PRParserException, IOException, it.uniroma2.art.coda.provisioning.ComponentIndexingException - Throws:
it.uniroma2.art.coda.exception.parserexception.PRParserException
IOException
it.uniroma2.art.coda.provisioning.ComponentIndexingException
-
importCustomFormPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/CustomForms/importCustomForm", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<String> importCustomFormPublished(@RequestParam("inputFile") org.springframework.web.multipart.MultipartFile inputFile, @RequestParam(value="newId",required=false) String newId) throws IOException, CustomFormException - Throws:
IOException
CustomFormException
-
executeLiteralConverterPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/CustomForms/executeLiteralConverter", method=GET, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<com.fasterxml.jackson.databind.JsonNode>> executeLiteralConverterPublished(@RequestParam("converter") String converter, @RequestParam("value") String value, @RequestParam(value="datatype",required=false) String datatype, @RequestParam(value="lang",required=false) String lang) throws it.uniroma2.art.coda.provisioning.ComponentProvisioningException, it.uniroma2.art.coda.exception.ConverterException - Throws:
it.uniroma2.art.coda.provisioning.ComponentProvisioningException
it.uniroma2.art.coda.exception.ConverterException
-
validatePearlPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/CustomForms/validatePearl", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<com.fasterxml.jackson.databind.JsonNode>> validatePearlPublished(@RequestParam("pearl") String pearl, @RequestParam("formType") String formType) -
updateCustomFormPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/CustomForms/updateCustomForm", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<String> updateCustomFormPublished(@RequestParam("id") String id, @RequestParam("name") String name, @RequestParam("description") String description, @RequestParam("ref") String ref) throws CustomFormException - Throws:
CustomFormException
-
getBrokenCustomFormsPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/CustomForms/getBrokenCustomForms", method=GET, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<com.fasterxml.jackson.databind.JsonNode>> getBrokenCustomFormsPublished() -
isFormLinkedToCollectionPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/CustomForms/isFormLinkedToCollection", method=GET, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<com.fasterxml.jackson.databind.JsonNode>> isFormLinkedToCollectionPublished(@RequestParam("id") String id) -
exportCustomFormPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/CustomForms/exportCustomForm", method=GET, produces="application/json;charset=UTF-8") public void exportCustomFormPublished(jakarta.servlet.http.HttpServletResponse oRes, @RequestParam("id") String id) throws CustomFormException, IOException - Throws:
CustomFormException
IOException
-
createFormCollectionPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/CustomForms/createFormCollection", method=GET, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<String> createFormCollectionPublished(@RequestParam("id") String id) throws DuplicateIdException - Throws:
DuplicateIdException
-
exportFormCollectionPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/CustomForms/exportFormCollection", method=GET, produces="application/json;charset=UTF-8") public void exportFormCollectionPublished(jakarta.servlet.http.HttpServletResponse oRes, @RequestParam("id") String id) throws CustomFormException, IOException - Throws:
CustomFormException
IOException
-
cloneCustomFormPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/CustomForms/cloneCustomForm", method=GET, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<String> cloneCustomFormPublished(@RequestParam("sourceId") String sourceId, @RequestParam("targetId") String targetId) throws CustomFormException - Throws:
CustomFormException
-
updateFromCollectionPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/CustomForms/updateFromCollection", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<String> updateFromCollectionPublished(@RequestParam("formCollectionId") String formCollectionId, @RequestParam("customFormIds") List<String> customFormIds, @RequestParam("suggestions") List<org.eclipse.rdf4j.model.IRI> suggestions) throws CustomFormException - Throws:
CustomFormException
-
executeURIConverterPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/CustomForms/executeURIConverter", method=GET, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<com.fasterxml.jackson.databind.JsonNode>> executeURIConverterPublished(@RequestParam("converter") String converter, @RequestParam(value="value",required=false) String value) throws it.uniroma2.art.coda.provisioning.ComponentProvisioningException, it.uniroma2.art.coda.exception.ConverterException - Throws:
it.uniroma2.art.coda.provisioning.ComponentProvisioningException
it.uniroma2.art.coda.exception.ConverterException
-
getAllFormCollectionsPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/CustomForms/getAllFormCollections", method=GET, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<com.fasterxml.jackson.databind.JsonNode>> getAllFormCollectionsPublished() -
getCustomConstructorsPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/CustomForms/getCustomConstructors", method=GET, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<com.fasterxml.jackson.databind.JsonNode>> getCustomConstructorsPublished(@RequestParam("resource") org.eclipse.rdf4j.model.IRI resource) -
getCustomFormRepresentationPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/CustomForms/getCustomFormRepresentation", method=GET, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<com.fasterxml.jackson.databind.JsonNode>> getCustomFormRepresentationPublished(@RequestParam("id") String id) throws it.uniroma2.art.coda.exception.parserexception.PRParserException, it.uniroma2.art.coda.exception.RDFModelNotSetException, CustomFormException - Throws:
it.uniroma2.art.coda.exception.parserexception.PRParserException
it.uniroma2.art.coda.exception.RDFModelNotSetException
CustomFormException
-
updateCustomFormWithAnnotationsPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/CustomForms/updateCustomFormWithAnnotations", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<com.fasterxml.jackson.databind.JsonNode>> updateCustomFormWithAnnotationsPublished(@RequestParam("cfId") String cfId, @RequestParam(value="prId",required=false) String prId, @RequestParam(value="save",required=false,defaultValue="true") boolean save) throws CustomFormException, it.uniroma2.art.coda.exception.parserexception.PRParserException, IOException, it.uniroma2.art.coda.provisioning.ComponentIndexingException - Throws:
CustomFormException
it.uniroma2.art.coda.exception.parserexception.PRParserException
IOException
it.uniroma2.art.coda.provisioning.ComponentIndexingException
-
deleteFormCollectionPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/CustomForms/deleteFormCollection", method=GET, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<String> deleteFormCollectionPublished(@RequestParam("id") String id) throws CustomFormException - Throws:
CustomFormException
-
deleteCustomFormPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/CustomForms/deleteCustomForm", method=GET, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<String> deleteCustomFormPublished(@RequestParam("id") String id, @RequestParam(value="deleteEmptyColl",required=false,defaultValue="false") boolean deleteEmptyColl) throws CustomFormException - Throws:
CustomFormException
-
removeReifiedResourcePublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/CustomForms/removeReifiedResource", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<String> removeReifiedResourcePublished(@RequestParam("subject") org.eclipse.rdf4j.model.IRI subject, @RequestParam("predicate") org.eclipse.rdf4j.model.IRI predicate, @RequestParam("resource") org.eclipse.rdf4j.model.IRI resource) throws it.uniroma2.art.coda.exception.parserexception.PRParserException - Throws:
it.uniroma2.art.coda.exception.parserexception.PRParserException
-
getFormCollectionPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/CustomForms/getFormCollection", method=GET, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<com.fasterxml.jackson.databind.JsonNode>> getFormCollectionPublished(@RequestParam("id") String id) throws CustomFormException - Throws:
CustomFormException
-
removeFormCollectionOfResourcePublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/CustomForms/removeFormCollectionOfResource", method=GET, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<String> removeFormCollectionOfResourcePublished(@RequestParam("resource") org.eclipse.rdf4j.model.IRI resource) -
cloneFormCollectionPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/CustomForms/cloneFormCollection", method=GET, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<String> cloneFormCollectionPublished(@RequestParam("sourceId") String sourceId, @RequestParam("targetId") String targetId) throws CustomFormException - Throws:
CustomFormException
-
createCustomFormPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/CustomForms/createCustomForm", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<String> createCustomFormPublished(@RequestParam("type") String type, @RequestParam("id") String id, @RequestParam("name") String name, @RequestParam("description") String description, @RequestParam("ref") String ref) throws DuplicateIdException - Throws:
DuplicateIdException
-
addFormsMappingPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/CustomForms/addFormsMapping", method=GET, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<String> addFormsMappingPublished(@RequestParam("resource") org.eclipse.rdf4j.model.IRI resource, @RequestParam("formCollId") String formCollId, @RequestParam(value="replace",required=false,defaultValue="false") boolean replace) throws CustomFormException - Throws:
CustomFormException
-
importFormCollectionPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/CustomForms/importFormCollection", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<String> importFormCollectionPublished(@RequestParam("inputFile") org.springframework.web.multipart.MultipartFile inputFile, @RequestParam(value="newId",required=false) String newId) throws IOException, CustomFormException - Throws:
IOException
CustomFormException
-
getCustomFormPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/CustomForms/getCustomForm", method=GET, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<com.fasterxml.jackson.databind.JsonNode>> getCustomFormPublished(@RequestParam("id") String id) throws CustomFormException - Throws:
CustomFormException
-
updateReplacePublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/CustomForms/updateReplace", method=GET, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<String> updateReplacePublished(@RequestParam("resource") org.eclipse.rdf4j.model.IRI resource, @RequestParam("replace") boolean replace) throws CustomFormException - Throws:
CustomFormException
-
getAllCustomFormsPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/CustomForms/getAllCustomForms", method=GET, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<com.fasterxml.jackson.databind.JsonNode>> getAllCustomFormsPublished()
-