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 Details

    • CustomFormsController

      public CustomFormsController()
  • Method Details

    • setApplicationContext

      public void setApplicationContext(org.springframework.context.ApplicationContext arg0) throws org.springframework.beans.BeansException
      Specified by:
      setApplicationContext in interface org.springframework.context.ApplicationContextAware
      Throws:
      org.springframework.beans.BeansException
    • getServiceSpecies

      public ServiceSpecies getServiceSpecies()
      Specified by:
      getServiceSpecies in interface IntrospectableController
    • getService

      public CustomForms getService()
      Specified by:
      getService in interface IntrospectableController
    • 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()