Class ExtensionPointManagerImpl
java.lang.Object
it.uniroma2.art.semanticturkey.extension.impl.ExtensionPointManagerImpl
- All Implemented Interfaces:
ExtensionPointManager
-
Constructor Summary
ConstructorDescriptionExtensionPointManagerImpl
(org.springframework.context.ApplicationContext context) -
Method Summary
Modifier and TypeMethodDescriptionvoid
deleteConfiguraton
(String componentIdentifier, Reference reference) void
destroy()
getConfiguration
(String componentIdentifier, Reference reference) Returns a stored configuration located with the supplied identifiergetConfigurationClassFromName
(String configClassName) getConfigurationManager
(String componentIdentifier) getConfigurationReferences
(Project project, STUser user, String componentIdentifier) Returns the stored configurations associated with a given componentgetExtension
(String componentID) Returns theExtensionFactory
matching the given component identifiergetExtensionPoint
(String identifier) Returns an extension point given its identifiergetExtensionPoints
(Scope... scopes) Returns known extension points.getExtensions
(String extensionPoint) getSettings
(Project project, STUser user, UsersGroup group, String componentIdentifier, Scope scope) getSettingsDefault
(Project project, STUser user, UsersGroup group, String componentID, Scope scope, Scope defaultScope) getSettingsManager
(String componentIdentifier) getSettingsScopes
(String componentIdentifier) void
indexApplicationContext
(org.springframework.context.ApplicationContext pluginContext) void
init()
<T extends Extension,
C extends Configuration>
TinstantiateExtension
(Class<T> targetInterface, PluginSpecification spec, Project project, STUser user) void
storeConfiguration
(String componentIdentifier, Reference reference, com.fasterxml.jackson.databind.node.ObjectNode configuration) void
storeSetting
(String componentID, Project project, STUser loggedUser, UsersGroup group, Scope scope, String property, com.fasterxml.jackson.databind.JsonNode propertyValue) void
storeSettingDefault
(String componentID, Project project, STUser user, UsersGroup group, Scope scope, Scope defaultScope, String property, com.fasterxml.jackson.databind.JsonNode propertyValue) void
storeSettings
(String componentIdentifier, Project project, STUser user, UsersGroup group, Scope scope, com.fasterxml.jackson.databind.node.ObjectNode settings) void
storeSettingsDefault
(String componentIdentifier, Project project, STUser user, UsersGroup group, Scope scope, Scope defaultScope, com.fasterxml.jackson.databind.node.ObjectNode settings) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface it.uniroma2.art.semanticturkey.extension.ExtensionPointManager
buildPluginSpecification, instantiateExtension, instantiateExtension
-
Constructor Details
-
ExtensionPointManagerImpl
public ExtensionPointManagerImpl(org.springframework.context.ApplicationContext context)
-
-
Method Details
-
init
@PostConstruct public void init() -
destroy
@PreDestroy public void destroy() -
indexApplicationContext
public void indexApplicationContext(org.springframework.context.ApplicationContext pluginContext) -
getExtensionPoints
Description copied from interface:ExtensionPointManager
Returns known extension points.- Specified by:
getExtensionPoints
in interfaceExtensionPointManager
- Parameters:
scopes
- if not empty, indicates the scopes we are interested in. Otherwise, every scope is considered.- Returns:
-
getExtensionPoint
Description copied from interface:ExtensionPointManager
Returns an extension point given its identifier- Specified by:
getExtensionPoint
in interfaceExtensionPointManager
- Returns:
- Throws:
NoSuchExtensionPointException
-
getCollaborationBackend
- Specified by:
getCollaborationBackend
in interfaceExtensionPointManager
-
getDatasetCatalogConnector
- Specified by:
getDatasetCatalogConnector
in interfaceExtensionPointManager
-
getDatasetMetadataExporter
- Specified by:
getDatasetMetadataExporter
in interfaceExtensionPointManager
-
getRenderingEngine
- Specified by:
getRenderingEngine
in interfaceExtensionPointManager
-
getRDFTransformer
- Specified by:
getRDFTransformer
in interfaceExtensionPointManager
-
getRepositoryImplConfigurer
- Specified by:
getRepositoryImplConfigurer
in interfaceExtensionPointManager
-
getSearchStrategy
- Specified by:
getSearchStrategy
in interfaceExtensionPointManager
-
getURIGenerator
- Specified by:
getURIGenerator
in interfaceExtensionPointManager
-
getConfigurationManager
public ConfigurationManager<?> getConfigurationManager(String componentIdentifier) throws NoSuchConfigurationManager - Specified by:
getConfigurationManager
in interfaceExtensionPointManager
- Throws:
NoSuchConfigurationManager
-
getConfigurationManagers
- Specified by:
getConfigurationManagers
in interfaceExtensionPointManager
-
getConfigurationReferences
public Collection<Reference> getConfigurationReferences(Project project, STUser user, String componentIdentifier) throws NoSuchConfigurationManager Description copied from interface:ExtensionPointManager
Returns the stored configurations associated with a given component- Specified by:
getConfigurationReferences
in interfaceExtensionPointManager
- Returns:
- Throws:
NoSuchConfigurationManager
-
getConfiguration
public Configuration getConfiguration(String componentIdentifier, Reference reference) throws NoSuchConfigurationManager, STPropertyAccessException Description copied from interface:ExtensionPointManager
Returns a stored configuration located with the supplied identifier- Specified by:
getConfiguration
in interfaceExtensionPointManager
- Returns:
- Throws:
NoSuchConfigurationManager
STPropertyAccessException
-
getSettingsManager
- Specified by:
getSettingsManager
in interfaceExtensionPointManager
- Throws:
NoSuchSettingsManager
-
getSettingsManagers
- Specified by:
getSettingsManagers
in interfaceExtensionPointManager
-
getSettingsScopes
- Specified by:
getSettingsScopes
in interfaceExtensionPointManager
- Throws:
NoSuchSettingsManager
-
getSettings
public Settings getSettings(Project project, STUser user, UsersGroup group, String componentIdentifier, Scope scope) throws STPropertyAccessException, NoSuchSettingsManager - Specified by:
getSettings
in interfaceExtensionPointManager
- Throws:
STPropertyAccessException
NoSuchSettingsManager
-
getSettingsDefault
public Settings getSettingsDefault(Project project, STUser user, UsersGroup group, String componentID, Scope scope, Scope defaultScope) throws STPropertyAccessException, NoSuchSettingsManager - Specified by:
getSettingsDefault
in interfaceExtensionPointManager
- Throws:
STPropertyAccessException
NoSuchSettingsManager
-
storeConfiguration
public void storeConfiguration(String componentIdentifier, Reference reference, com.fasterxml.jackson.databind.node.ObjectNode configuration) throws IOException, WrongPropertiesException, NoSuchConfigurationManager, STPropertyUpdateException, STPropertyAccessException - Specified by:
storeConfiguration
in interfaceExtensionPointManager
- Throws:
IOException
WrongPropertiesException
NoSuchConfigurationManager
STPropertyUpdateException
STPropertyAccessException
-
deleteConfiguraton
public void deleteConfiguraton(String componentIdentifier, Reference reference) throws NoSuchConfigurationManager, ConfigurationNotFoundException - Specified by:
deleteConfiguraton
in interfaceExtensionPointManager
- Throws:
NoSuchConfigurationManager
ConfigurationNotFoundException
-
storeSettings
public void storeSettings(String componentIdentifier, Project project, STUser user, UsersGroup group, Scope scope, com.fasterxml.jackson.databind.node.ObjectNode settings) throws NoSuchSettingsManager, STPropertyUpdateException, WrongPropertiesException, STPropertyAccessException - Specified by:
storeSettings
in interfaceExtensionPointManager
- Throws:
NoSuchSettingsManager
STPropertyUpdateException
WrongPropertiesException
STPropertyAccessException
-
storeSetting
public void storeSetting(String componentID, Project project, STUser loggedUser, UsersGroup group, Scope scope, String property, com.fasterxml.jackson.databind.JsonNode propertyValue) throws NoSuchSettingsManager, STPropertyUpdateException, WrongPropertiesException, STPropertyAccessException, PropertyNotFoundException, IOException - Specified by:
storeSetting
in interfaceExtensionPointManager
- Throws:
NoSuchSettingsManager
STPropertyUpdateException
WrongPropertiesException
STPropertyAccessException
PropertyNotFoundException
IOException
-
storeSettingsDefault
public void storeSettingsDefault(String componentIdentifier, Project project, STUser user, UsersGroup group, Scope scope, Scope defaultScope, com.fasterxml.jackson.databind.node.ObjectNode settings) throws NoSuchSettingsManager, STPropertyUpdateException, WrongPropertiesException, STPropertyAccessException - Specified by:
storeSettingsDefault
in interfaceExtensionPointManager
- Throws:
NoSuchSettingsManager
STPropertyUpdateException
WrongPropertiesException
STPropertyAccessException
-
storeSettingDefault
public void storeSettingDefault(String componentID, Project project, STUser user, UsersGroup group, Scope scope, Scope defaultScope, String property, com.fasterxml.jackson.databind.JsonNode propertyValue) throws NoSuchSettingsManager, STPropertyUpdateException, WrongPropertiesException, STPropertyAccessException, PropertyNotFoundException, IOException -
getExtensions
- Specified by:
getExtensions
in interfaceExtensionPointManager
-
getExtension
Description copied from interface:ExtensionPointManager
Returns theExtensionFactory
matching the given component identifier- Specified by:
getExtension
in interfaceExtensionPointManager
- Returns:
- Throws:
NoSuchExtensionException
-
instantiateExtension
public <T extends Extension,C extends Configuration> T instantiateExtension(Class<T> targetInterface, PluginSpecification spec, Project project, STUser user) throws IllegalArgumentException, NoSuchExtensionException, WrongPropertiesException, STPropertyAccessException, InvalidConfigurationException -
getConfigurationClassFromName
- Specified by:
getConfigurationClassFromName
in interfaceExtensionPointManager
-