Class Configurations
java.lang.Object
it.uniroma2.art.semanticturkey.services.STServiceAdapter
it.uniroma2.art.semanticturkey.services.core.Configurations
- All Implemented Interfaces:
NewerNewStyleService
,STService
This class provides services for handling configurations.
-
Field Summary
Fields inherited from class it.uniroma2.art.semanticturkey.services.STServiceAdapter
applicationEventPublisher, cfManager, stServiceContext
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
deleteConfiguration
(String componentID, String relativeReference) Deletes a previously stored configurationgetConfiguration
(String componentID, String relativeReference) Returns a stored configuration given its relative referencegetConfigurationManager
(String componentID) Returns a specific configuration managerReturns the available configuration managersgetConfigurationReferences
(String componentID) Returns the stored configurations associated with the given componentvoid
storeConfiguration
(String componentID, String relativeReference, com.fasterxml.jackson.databind.node.ObjectNode configuration) Stores a configurationsMethods inherited from class it.uniroma2.art.semanticturkey.services.STServiceAdapter
addValue, checkNotLocallyDefined, createQueryBuilder, generateIRI, generateNatureSPARQLSelectPart, generateNatureSPARQLWherePart, generateResourceWithCustomConstructor, getCodaLexModeForSearchFromLexicalizationModel, getDeleteGraph, getGraphFromNature, getInitializedCodaCore, getManagedConnection, getMetadataGraph, getPlatformTransactionManager, getProject, getRepository, getRoleFromNature, getUserNamedGraphs, getWorkingGraph, instantiateSearchStrategy, instantiateSearchStrategy, parseReference, publishResourceDeleted, publishResourceDeleted, removeReifiedValue, retrieveResources, shutDownCodaCore, updateTriplePredicate
-
Constructor Details
-
Configurations
public Configurations()
-
-
Method Details
-
getConfigurationManagers
Returns the available configuration managers- Returns:
-
getConfigurationManager
@STServiceOperation public ConfigurationManager<?> getConfigurationManager(String componentID) throws NoSuchConfigurationManager Returns a specific configuration manager- Parameters:
componentID
-- Returns:
- Throws:
NoSuchConfigurationManager
-
getConfigurationReferences
@STServiceOperation public Collection<Reference> getConfigurationReferences(String componentID) throws NoSuchConfigurationManager Returns the stored configurations associated with the given component- Parameters:
componentID
-- Returns:
- Throws:
NoSuchConfigurationManager
-
getConfiguration
@STServiceOperation public Configuration getConfiguration(String componentID, String relativeReference) throws NoSuchConfigurationManager, IOException, ConfigurationNotFoundException, WrongPropertiesException, STPropertyAccessException Returns a stored configuration given its relative reference- Parameters:
componentID
-relativeReference
-- Returns:
- Throws:
NoSuchConfigurationManager
WrongPropertiesException
ConfigurationNotFoundException
IOException
STPropertyAccessException
-
storeConfiguration
@STServiceOperation(method=POST) public void storeConfiguration(String componentID, String relativeReference, com.fasterxml.jackson.databind.node.ObjectNode configuration) throws NoSuchConfigurationManager, IOException, WrongPropertiesException, STPropertyUpdateException, STPropertyAccessException Stores a configurations- Parameters:
componentID
-relativeReference
-- Throws:
NoSuchConfigurationManager
WrongPropertiesException
ConfigurationNotFoundException
IOException
STPropertyUpdateException
STPropertyAccessException
-
deleteConfiguration
@STServiceOperation(method=POST) public void deleteConfiguration(String componentID, String relativeReference) throws NoSuchConfigurationManager, ConfigurationNotFoundException Deletes a previously stored configuration- Parameters:
componentID
-relativeReference
-- Throws:
NoSuchConfigurationManager
ConfigurationNotFoundException
-