Interface ExtensionPointManager
- All Known Implementing Classes:
ExtensionPointManagerImpl
public interface ExtensionPointManager
-
Method Summary
Modifier and TypeMethodDescriptiondefault <T extends Extension,
C extends Configuration>
PluginSpecificationbuildPluginSpecification
(Class<T> targetInterface, C conf) void
deleteConfiguraton
(String componentIdentifier, Reference reference) getConfiguration
(String componentIdentifier, Reference reference) Returns a stored configuration located with the supplied identifiergetConfigurationClassFromName
(String propsType) getConfigurationManager
(String componentID) 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 componentID) getSettingsScopes
(String componentIdentifier) default <T extends Extension,
C extends Configuration>
TinstantiateExtension
(Class<T> targetInterface, C conf) Create an instance of an extension that conforms totargetInterface
, following the providedConfiguration
default <T extends Extension>
TinstantiateExtension
(Class<T> targetInterface, PluginSpecification spec) Create an instance of an extension that conforms totargetInterface
, following the providedspec
<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 componentIdentifier, 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)
-
Method Details
-
getExtensionPoints
Returns known extension points.- Parameters:
scopes
- if not empty, indicates the scopes we are interested in. Otherwise, every scope is considered.- Returns:
-
getExtensionPoint
Returns an extension point given its identifier- Parameters:
identifier
-- Returns:
- Throws:
NoSuchExtensionPointException
-
getCollaborationBackend
CollaborationBackendExtensionPoint getCollaborationBackend() -
getDatasetCatalogConnector
DatasetCatalogConnectorExtensionPoint getDatasetCatalogConnector() -
getDatasetMetadataExporter
DatasetMetadataExporterExtensionPoint getDatasetMetadataExporter() -
getRenderingEngine
RenderingEngineExtensionPoint getRenderingEngine() -
getRDFTransformer
RDFTransformerExtensionPoint getRDFTransformer() -
getRepositoryImplConfigurer
RepositoryImplConfigurerExtensionPoint getRepositoryImplConfigurer() -
getSearchStrategy
SearchStrategyExtensionPoint getSearchStrategy() -
getURIGenerator
URIGeneratorExtensionPoint getURIGenerator() -
getConfigurationManagers
Collection<ConfigurationManager<?>> getConfigurationManagers() -
getConfigurationManager
ConfigurationManager<?> getConfigurationManager(String componentID) throws NoSuchConfigurationManager - Throws:
NoSuchConfigurationManager
-
getSettingsManager
- Throws:
NoSuchSettingsManager
-
getSettingsManagers
Collection<SettingsManager> getSettingsManagers() -
getConfigurationReferences
Collection<Reference> getConfigurationReferences(Project project, STUser user, String componentIdentifier) throws NoSuchConfigurationManager Returns the stored configurations associated with a given component- Parameters:
project
-user
-componentIdentifier
-- Returns:
- Throws:
NoSuchConfigurationManager
-
getConfiguration
Configuration getConfiguration(String componentIdentifier, Reference reference) throws IOException, ConfigurationNotFoundException, WrongPropertiesException, NoSuchConfigurationManager, STPropertyAccessException Returns a stored configuration located with the supplied identifier- Parameters:
componentIdentifier
-reference
-- Returns:
- Throws:
NoSuchConfigurationManager
WrongPropertiesException
ConfigurationNotFoundException
IOException
STPropertyAccessException
-
storeConfiguration
void storeConfiguration(String componentIdentifier, Reference reference, com.fasterxml.jackson.databind.node.ObjectNode configuration) throws IOException, WrongPropertiesException, NoSuchConfigurationManager, STPropertyUpdateException, STPropertyAccessException -
deleteConfiguraton
void deleteConfiguraton(String componentIdentifier, Reference reference) throws NoSuchConfigurationManager, ConfigurationNotFoundException -
getSettings
Settings getSettings(Project project, STUser user, UsersGroup group, String componentIdentifier, Scope scope) throws STPropertyAccessException, NoSuchSettingsManager -
getSettingsDefault
Settings getSettingsDefault(Project project, STUser user, UsersGroup group, String componentID, Scope scope, Scope defaultScope) throws STPropertyAccessException, NoSuchSettingsManager -
getSettingsScopes
- Throws:
NoSuchSettingsManager
-
storeSettings
void storeSettings(String componentIdentifier, Project project, STUser user, UsersGroup group, Scope scope, com.fasterxml.jackson.databind.node.ObjectNode settings) throws NoSuchSettingsManager, STPropertyUpdateException, WrongPropertiesException, STPropertyAccessException -
storeSetting
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 -
storeSettingsDefault
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 -
storeSettingDefault
void storeSettingDefault(String componentIdentifier, 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
-
getExtension
Returns theExtensionFactory
matching the given component identifier- Parameters:
componentID
-- Returns:
- Throws:
NoSuchExtensionException
-
instantiateExtension
default <T extends Extension> T instantiateExtension(Class<T> targetInterface, PluginSpecification spec) throws IllegalArgumentException, NoSuchExtensionException, WrongPropertiesException, STPropertyAccessException, InvalidConfigurationException Create an instance of an extension that conforms totargetInterface
, following the providedspec
- Parameters:
targetInterface
-spec
-- Returns:
- Throws:
IllegalArgumentException
NoSuchExtensionException
WrongPropertiesException
STPropertyAccessException
InvalidConfigurationException
-
instantiateExtension
default <T extends Extension,C extends Configuration> T instantiateExtension(Class<T> targetInterface, C conf) throws IllegalArgumentException, NoSuchExtensionException, WrongPropertiesException, STPropertyAccessException, InvalidConfigurationException Create an instance of an extension that conforms totargetInterface
, following the providedConfiguration
- Parameters:
targetInterface
-conf
-- Returns:
- Throws:
IllegalArgumentException
NoSuchExtensionException
WrongPropertiesException
STPropertyAccessException
InvalidConfigurationException
-
instantiateExtension
<T extends Extension,C extends Configuration> T instantiateExtension(Class<T> targetInterface, PluginSpecification spec, Project project, STUser user) throws IllegalArgumentException, NoSuchExtensionException, WrongPropertiesException, STPropertyAccessException, InvalidConfigurationException -
buildPluginSpecification
default <T extends Extension,C extends Configuration> PluginSpecification buildPluginSpecification(Class<T> targetInterface, C conf) - Type Parameters:
T
-C
-- Parameters:
targetInterface
-conf
-- Returns:
-
getConfigurationClassFromName
-