Class VersionsController
java.lang.Object
it.uniroma2.art.semanticturkey.services.core.controllers.VersionsController
- All Implemented Interfaces:
IntrospectableController
,org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
@Controller
public class VersionsController
extends Object
implements org.springframework.context.ApplicationContextAware, IntrospectableController
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.HttpEntity<String>
closeVersionPublished
(String versionId) org.springframework.http.HttpEntity<Response<VersionInfo>>
createVersionDumpPublished
(RepositoryAccess repositoryAccess, String repositoryId, PluginSpecification repoConfigurerSpecification, String backendType, String versionId) org.springframework.http.HttpEntity<String>
deleteVersionPublished
(String versionId) org.springframework.http.HttpEntity<Response<List<VersionInfo>>>
getVersionsPublished
(boolean setRepositoryStatus, boolean setRepositoryLocation) void
setApplicationContext
(org.springframework.context.ApplicationContext arg0)
-
Constructor Details
-
VersionsController
public VersionsController()
-
-
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
-
closeVersionPublished
-
getVersionsPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Versions/getVersions", method=GET, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<List<VersionInfo>>> getVersionsPublished(@RequestParam(value="setRepositoryStatus",required=false,defaultValue="false") boolean setRepositoryStatus, @RequestParam(value="setRepositoryLocation",required=false,defaultValue="false") boolean setRepositoryLocation) throws com.fasterxml.jackson.core.JsonParseException, com.fasterxml.jackson.databind.JsonMappingException, IOException - Throws:
com.fasterxml.jackson.core.JsonParseException
com.fasterxml.jackson.databind.JsonMappingException
IOException
-
createVersionDumpPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Versions/createVersionDump", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<VersionInfo>> createVersionDumpPublished(@RequestParam(value="repositoryAccess",required=false) RepositoryAccess repositoryAccess, @RequestParam(value="repositoryId",required=false) String repositoryId, @RequestParam(value="repoConfigurerSpecification",required=false) PluginSpecification repoConfigurerSpecification, @RequestParam(value="backendType",required=false) String backendType, @RequestParam("versionId") String versionId) throws AlreadyExistingRepositoryException, com.fasterxml.jackson.core.JsonProcessingException, ProjectUpdateException, ReservedPropertyUpdateException, Exception - Throws:
AlreadyExistingRepositoryException
com.fasterxml.jackson.core.JsonProcessingException
ProjectUpdateException
ReservedPropertyUpdateException
Exception
-
deleteVersionPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Versions/deleteVersion", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<String> deleteVersionPublished(@RequestParam("versionId") String versionId) throws com.fasterxml.jackson.core.JsonProcessingException, ProjectUpdateException, ReservedPropertyUpdateException - Throws:
com.fasterxml.jackson.core.JsonProcessingException
ProjectUpdateException
ReservedPropertyUpdateException
-