Class Multiverse
java.lang.Object
it.uniroma2.art.semanticturkey.services.STServiceAdapter
it.uniroma2.art.semanticturkey.services.core.Multiverse
- All Implemented Interfaces:
NewerNewStyleService
,STService
Services related to the management of multiple worlds.
- Author:
- Manuel Fiorelli
- See Also:
-
Field Summary
FieldsFields inherited from class it.uniroma2.art.semanticturkey.services.STServiceAdapter
applicationEventPublisher, cfManager, exptManager, stServiceContext
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
createWorld
(@Pattern(regexp="[a-zA-Z0-9_\\-]+") String name) Creates a new world.void
destroyWorld
(String name) Destroys a world.Returns information about alternative worlds.Returns the list of worlds.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
-
Field Details
-
logger
protected static org.slf4j.Logger logger
-
-
Constructor Details
-
Multiverse
public Multiverse()
-
-
Method Details
-
createWorld
@STServiceOperation(method=POST) @PreAuthorize("@auth.isAdmin()") public void createWorld(@Pattern(regexp="[a-zA-Z0-9_\\-]+") @Pattern(regexp="[a-zA-Z0-9_\\-]+") String name) throws IOException, WorldAlreadyExistingException Creates a new world.- Parameters:
name
- name of the world to create- Throws:
IOException
WorldAlreadyExistingException
-
listWorlds
Returns the list of worlds. -
listAlternativeWorldInfos
@STServiceOperation @PreAuthorize("@auth.isAdmin()") public Collection<WorldInfo> listAlternativeWorldInfos()Returns information about alternative worlds. -
destroyWorld
@STServiceOperation(method=POST) @PreAuthorize("@auth.isAdmin()") public void destroyWorld(String name) Destroys a world.- Parameters:
name
- name of the world to destroy.
-