public class SQLRepositoryService extends DefaultComponent
Constructor and Description |
---|
SQLRepositoryService() |
Modifier and Type | Method and Description |
---|---|
void |
activate(ComponentContext context)
Activates the component.
|
void |
deactivate(ComponentContext context)
Deactivates the component.
|
FulltextConfiguration |
getFulltextConfiguration(String repositoryName) |
Class<? extends FulltextParser> |
getFulltextParserClass(String repositoryName) |
List<RepositoryManagement> |
getRepositories()
Gets the repositories as a list of
RepositoryManagement objects. |
RepositoryManagement |
getRepository(String repositoryName)
Gets the low-level SQL Repository of the given name.
|
String |
getRepositoryDataSourceAndProperties(String repositoryName,
Map<String,String> properties)
Returns the datasource definition for the given repository and fills the properties map with the datasource
configuration.
|
RepositoryDescriptor |
getRepositoryDescriptor(String name) |
RepositoryImpl |
getRepositoryImpl(String repositoryName) |
List<String> |
getRepositoryNames()
Gets the list of SQL repository names.
|
void |
registerContribution(Object contrib,
String xpoint,
ComponentInstance contributor) |
void |
registerTestRepository(RepositoryImpl repository) |
void |
unregisterContribution(Object contrib,
String xpoint,
ComponentInstance contributor) |
applicationStarted, getAdapter, getApplicationStartedOrder, getLastModified, registerExtension, setLastModified, unregisterExtension
public void activate(ComponentContext context)
Component
This method is called by the runtime when a component is activated.
activate
in interface Component
activate
in class DefaultComponent
context
- the runtime contextpublic void deactivate(ComponentContext context)
Component
This method is called by the runtime when a component is deactivated.
deactivate
in interface Component
deactivate
in class DefaultComponent
context
- the runtime contextpublic void registerContribution(Object contrib, String xpoint, ComponentInstance contributor)
registerContribution
in class DefaultComponent
public void unregisterContribution(Object contrib, String xpoint, ComponentInstance contributor)
unregisterContribution
in class DefaultComponent
public RepositoryDescriptor getRepositoryDescriptor(String name)
public List<String> getRepositoryNames()
public void registerTestRepository(RepositoryImpl repository)
public RepositoryManagement getRepository(String repositoryName)
repositoryName
- the repository namepublic RepositoryImpl getRepositoryImpl(String repositoryName)
public List<RepositoryManagement> getRepositories()
RepositoryManagement
objects.RepositoryManagement
public Class<? extends FulltextParser> getFulltextParserClass(String repositoryName)
public FulltextConfiguration getFulltextConfiguration(String repositoryName)
public String getRepositoryDataSourceAndProperties(String repositoryName, Map<String,String> properties)
repositoryName
- the repository nameproperties
- a return map of propertiesCopyright © 2015 Nuxeo SA. All rights reserved.