Class Repositories
java.lang.Object
it.uniroma2.art.semanticturkey.services.STServiceAdapter
it.uniroma2.art.semanticturkey.services.core.Repositories
- All Implemented Interfaces:
NewerNewStyleService
,STService
This class provides services for accessing remote repositories.
- Author:
- Manuel Fiorelli
-
Field Summary
Fields inherited from class it.uniroma2.art.semanticturkey.services.STServiceAdapter
applicationEventPublisher, cfManager, exptManager, stServiceContext
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondeleteRemoteRepositories
(List<RepositorySummary.RemoteRepositorySummary> remoteRepositories) Deletes a set of remote repositories.Collection<org.eclipse.rdf4j.repository.manager.RepositoryInfo>
getRemoteRepositories
(String serverURL, String username, String password) void
restartRemoteRepository
(String serverURL, String username, String password, String repositoryID) Restarts a remote repository.Methods inherited from class it.uniroma2.art.semanticturkey.services.STServiceAdapter
addValue, checkNotLocallyDefined, createQueryBuilder, generateIRI, generateNatureSPARQLSelectPart, generateNatureSPARQLWherePart, generateResourceWithCustomConstructor, getCodaLexModeForSearchFromLexicalizationModel, getDeleteGraph, getGraphFromNature, getInitializedCodaCore, getManagedConnection, getMetadataGraph, getOptionalProject, getPlatformTransactionManager, getProject, getRepository, getRoleFromNature, getUserNamedGraphs, getWorkingGraph, instantiateSearchStrategy, instantiateSearchStrategy, parseReference, publishResourceDeleted, publishResourceDeleted, removeReifiedValue, retrieveResources, shutDownCodaCore, updateTriplePredicate
-
Constructor Details
-
Repositories
public Repositories()
-
-
Method Details
-
getRemoteRepositories
@STServiceOperation(method=POST) public Collection<org.eclipse.rdf4j.repository.manager.RepositoryInfo> getRemoteRepositories(String serverURL, @Optional String username, @Optional String password) -
restartRemoteRepository
@STServiceOperation(method=POST) @PreAuthorize("@auth.isAuthorized(\'pm(project)\', \'R\')") public void restartRemoteRepository(String serverURL, @Optional String username, @Optional String password, String repositoryID) throws IOException Restarts a remote repository. Currently, this only works for Ontotext GraphDB.- Parameters:
serverURL
-username
-password
-repositoryID
-- Throws:
IOException
-
deleteRemoteRepositories
@STServiceOperation(method=POST) @PreAuthorize("@auth.isAuthorized(\'pm\', \'D\')") public List<ExceptionDAO> deleteRemoteRepositories(@JsonSerialized List<RepositorySummary.RemoteRepositorySummary> remoteRepositories) Deletes a set of remote repositories. The service returns a collection of exception, so that a nonnull
entry indicates a issue during the deletion of the corresponding repository in the input- Parameters:
remoteRepositories
-- Returns:
-