Class RemoteAlignmentServicesController
java.lang.Object
it.uniroma2.art.semanticturkey.services.core.controllers.RemoteAlignmentServicesController
- All Implemented Interfaces:
IntrospectableController
,org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
@Controller
public class RemoteAlignmentServicesController
extends Object
implements org.springframework.context.ApplicationContextAware, IntrospectableController
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.HttpEntity<String>
addRemoteAlignmentServicePublished
(String id, URL serverURL, String username, String password, boolean asDefault, boolean forwardCredentials) createTaskPublished
(AlignmentPlan alignmentPlan) org.springframework.http.HttpEntity<String>
org.springframework.http.HttpEntity<String>
void
downloadAlignmentPublished
(jakarta.servlet.http.HttpServletResponse oRes, String taskId) org.springframework.http.HttpEntity<Response<com.fasterxml.jackson.databind.JsonNode>>
fetchAlignmentPublished
(String taskId) org.springframework.http.HttpEntity<Response<RemoteAlignmentServiceConfiguration>>
org.springframework.http.HttpEntity<Response<Map<String,
RemoteAlignmentServiceConfiguration>>> org.springframework.http.HttpEntity<Response<ServiceMetadataDTO>>
listTasksPublished
(Project leftDataset, Project rightDataset, boolean allowReordering) org.springframework.http.HttpEntity<String>
org.springframework.http.HttpEntity<Response<List<MatcherDTO>>>
searchMatchersPublished
(it.uniroma2.art.maple.scenario.ScenarioDefinition scenarioDefinition) org.springframework.http.HttpEntity<String>
void
setApplicationContext
(org.springframework.context.ApplicationContext arg0) org.springframework.http.HttpEntity<String>
updateRemoteAlignmentServicePublished
(String id, URL serverURL, String username, String password, boolean asDefault, boolean forwardCredentials)
-
Constructor Details
-
RemoteAlignmentServicesController
public RemoteAlignmentServicesController()
-
-
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
-
deleteRemoteAlignmentServicePublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/RemoteAlignmentServices/deleteRemoteAlignmentService", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<String> deleteRemoteAlignmentServicePublished(@RequestParam("id") String id) throws ConfigurationNotFoundException, NoSuchConfigurationManager, STPropertyAccessException, STPropertyUpdateException, NoSuchSettingsManager, PropertyNotFoundException, WrongPropertiesException, IOException -
removeAlignmentServiceForProjectPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/RemoteAlignmentServices/removeAlignmentServiceForProject", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<String> removeAlignmentServiceForProjectPublished() throws NoSuchSettingsManager, STPropertyUpdateException -
getServiceMetadataPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/RemoteAlignmentServices/getServiceMetadata", method=GET, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<ServiceMetadataDTO>> getServiceMetadataPublished() throws AlignmentServiceException- Throws:
AlignmentServiceException
-
downloadAlignmentPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/RemoteAlignmentServices/downloadAlignment", method=GET, produces="application/json;charset=UTF-8") public void downloadAlignmentPublished(jakarta.servlet.http.HttpServletResponse oRes, @RequestParam("taskId") String taskId) throws AlignmentServiceException - Throws:
AlignmentServiceException
-
getRemoteAlignmentServiceFormPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/RemoteAlignmentServices/getRemoteAlignmentServiceForm", method=GET, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<RemoteAlignmentServiceConfiguration>> getRemoteAlignmentServiceFormPublished() -
setAlignmentServiceForProjectPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/RemoteAlignmentServices/setAlignmentServiceForProject", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<String> setAlignmentServiceForProjectPublished(@RequestParam("id") String id) throws NoSuchSettingsManager, STPropertyUpdateException -
fetchAlignmentPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/RemoteAlignmentServices/fetchAlignment", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<com.fasterxml.jackson.databind.JsonNode>> fetchAlignmentPublished(@RequestParam("taskId") String taskId) throws IOException, AlignmentInitializationException, AlignmentServiceException -
searchMatchersPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/RemoteAlignmentServices/searchMatchers", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<List<MatcherDTO>>> searchMatchersPublished(@RequestParam("scenarioDefinition") @JsonSerialized it.uniroma2.art.maple.scenario.ScenarioDefinition scenarioDefinition) throws AlignmentServiceException - Throws:
AlignmentServiceException
-
getAlignmentServiceForProjectPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/RemoteAlignmentServices/getAlignmentServiceForProject", method=GET, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<org.apache.commons.lang3.tuple.Pair<String,Boolean>>> getAlignmentServiceForProjectPublished() throws STPropertyAccessException, NoSuchSettingsManager -
updateRemoteAlignmentServicePublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/RemoteAlignmentServices/updateRemoteAlignmentService", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<String> updateRemoteAlignmentServicePublished(@RequestParam("id") String id, @RequestParam("serverURL") URL serverURL, @RequestParam(value="username",required=false) String username, @RequestParam(value="password",required=false) String password, @RequestParam(value="asDefault",required=false) boolean asDefault, @RequestParam(value="forwardCredentials",required=false,defaultValue="false") boolean forwardCredentials) throws IOException, WrongPropertiesException, STPropertyUpdateException, NoSuchConfigurationManager, STPropertyAccessException -
listTasksPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/RemoteAlignmentServices/listTasks", method=GET, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<List<TaskDTO>>> listTasksPublished(@RequestParam("leftDataset") Project leftDataset, @RequestParam(value="rightDataset",required=false) Project rightDataset, @RequestParam("allowReordering") boolean allowReordering) throws AlignmentServiceException - Throws:
AlignmentServiceException
-
getDefaultRemoteAlignmentServiceIdPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/RemoteAlignmentServices/getDefaultRemoteAlignmentServiceId", method=GET, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<String>> getDefaultRemoteAlignmentServiceIdPublished() throws STPropertyAccessException, NoSuchSettingsManager -
addRemoteAlignmentServicePublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/RemoteAlignmentServices/addRemoteAlignmentService", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<String> addRemoteAlignmentServicePublished(@RequestParam("id") String id, @RequestParam("serverURL") URL serverURL, @RequestParam(value="username",required=false) String username, @RequestParam(value="password",required=false) String password, @RequestParam(value="asDefault",required=false,defaultValue="false") boolean asDefault, @RequestParam(value="forwardCredentials",required=false,defaultValue="false") boolean forwardCredentials) throws IOException, WrongPropertiesException, STPropertyUpdateException, NoSuchConfigurationManager, DuplicatedResourceException -
getRemoteAlignmentServicesPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/RemoteAlignmentServices/getRemoteAlignmentServices", method=GET, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<Map<String,RemoteAlignmentServiceConfiguration>>> getRemoteAlignmentServicesPublished() throws STPropertyAccessException, NoSuchConfigurationManager -
createTaskPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/RemoteAlignmentServices/createTask", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<String>> createTaskPublished(@RequestParam("alignmentPlan") @JsonSerialized AlignmentPlan alignmentPlan) throws AlignmentServiceException - Throws:
AlignmentServiceException
-
deleteTaskPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/RemoteAlignmentServices/deleteTask", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<String> deleteTaskPublished(@RequestParam("id") String id) throws AlignmentServiceException - Throws:
AlignmentServiceException
-