java.lang.Object
it.uniroma2.art.semanticturkey.services.core.controllers.DownloadController
All Implemented Interfaces:
IntrospectableController, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware

@Controller public class DownloadController extends Object implements org.springframework.context.ApplicationContextAware, IntrospectableController
  • Constructor Details

    • DownloadController

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

      @RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Download/createAlignmentDownload", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<String> createAlignmentDownloadPublished(@RequestParam(value="targetUriPrefix",required=false) String targetUriPrefix, @RequestParam(value="mappingProperties",required=false,defaultValue="") List<org.eclipse.rdf4j.model.IRI> mappingProperties, @RequestParam("fileName") String fileName, @RequestParam("localizedLabel") org.eclipse.rdf4j.model.Literal localizedLabel, @RequestParam(value="format",required=false,defaultValue="TURTLE") org.eclipse.rdf4j.rio.RDFFormat format, @RequestParam(value="zipFile",required=false,defaultValue="true") boolean zipFile, @RequestParam(value="overwrite",required=false,defaultValue="false") boolean overwrite) throws IOException, NoSuchSettingsManager
      Throws:
      IOException
      NoSuchSettingsManager
    • getAvailableFormatsPublished

      @RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Download/getAvailableFormats", method=GET, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<List<org.eclipse.rdf4j.rio.RDFFormat>>> getAvailableFormatsPublished()
    • getDownloadInfoListPublished

      @RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Download/getDownloadInfoList", method=GET, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<DownloadProjectSettings>> getDownloadInfoListPublished() throws NoSuchSettingsManager
      Throws:
      NoSuchSettingsManager
    • updateLocalizedMapPublished

      @RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Download/updateLocalizedMap", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<String> updateLocalizedMapPublished(@RequestParam("fileName") String fileName, @RequestParam("localizedMap") Map<String,String> localizedMap) throws NoSuchSettingsManager
      Throws:
      NoSuchSettingsManager
    • createDownloadPublished

      @RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Download/createDownload", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<String> createDownloadPublished(@RequestParam("fileName") String fileName, @RequestParam("localizedLabel") org.eclipse.rdf4j.model.Literal localizedLabel, @RequestParam("format") org.eclipse.rdf4j.rio.RDFFormat format, @RequestParam(value="zipFile",required=false,defaultValue="true") boolean zipFile, @RequestParam(value="overwrite",required=false,defaultValue="false") boolean overwrite) throws IOException, NoSuchSettingsManager
      Throws:
      IOException
      NoSuchSettingsManager
    • updateLocalizedPublished

      @RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Download/updateLocalized", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<String> updateLocalizedPublished(@RequestParam("fileName") String fileName, @RequestParam("localized") String localized, @RequestParam("lang") String lang) throws NoSuchSettingsManager
      Throws:
      NoSuchSettingsManager
    • removeDownloadPublished

      @RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Download/removeDownload", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<String> removeDownloadPublished(@RequestParam("fileName") String fileName) throws IOException, NoSuchSettingsManager
      Throws:
      IOException
      NoSuchSettingsManager
    • getFilePublished

      @RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Download/getFile", method=GET, produces="application/json;charset=UTF-8") public void getFilePublished(jakarta.servlet.http.HttpServletResponse oRes, @RequestParam("fileName") String fileName) throws IOException
      Throws:
      IOException