Class DownloadController
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.HttpEntity<String>
createAlignmentDownloadPublished
(String targetUriPrefix, List<org.eclipse.rdf4j.model.IRI> mappingProperties, String fileName, org.eclipse.rdf4j.model.Literal localizedLabel, org.eclipse.rdf4j.rio.RDFFormat format, boolean zipFile, boolean overwrite) org.springframework.http.HttpEntity<String>
createDownloadPublished
(String fileName, org.eclipse.rdf4j.model.Literal localizedLabel, org.eclipse.rdf4j.rio.RDFFormat format, boolean zipFile, boolean overwrite) org.springframework.http.HttpEntity<Response<DownloadProjectSettings>>
void
getFilePublished
(jakarta.servlet.http.HttpServletResponse oRes, String fileName) org.springframework.http.HttpEntity<String>
removeDownloadPublished
(String fileName) void
setApplicationContext
(org.springframework.context.ApplicationContext arg0) org.springframework.http.HttpEntity<String>
updateLocalizedMapPublished
(String fileName, Map<String, String> localizedMap) org.springframework.http.HttpEntity<String>
updateLocalizedPublished
(String fileName, String localized, String lang)
-
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 interfaceorg.springframework.context.ApplicationContextAware
- Throws:
org.springframework.beans.BeansException
-
getServiceSpecies
- Specified by:
getServiceSpecies
in interfaceIntrospectableController
-
getService
- Specified by:
getService
in interfaceIntrospectableController
-
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
-
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
-