|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opencms.repository.CmsRepositoryManager
public class CmsRepositoryManager
The RepositoryManager keeps a list with all configured I_CmsRepository
and can be used to get a repository by its name.
The configuration of the repositories is done in the configuration file
opencms-importexport.xml
.
Constructor Summary | |
---|---|
CmsRepositoryManager()
Creates a new instance for the resource manager, will be called by the vfs configuration manager. |
|
CmsRepositoryManager(boolean configured)
Creates a new unconfigured instance of the repository manager. |
Method Summary | |
---|---|
void |
addRepositoryClass(I_CmsRepository rep)
Adds a new configured repository. |
java.util.List |
getRepositories()
Returns the repositories. |
I_CmsRepository |
getRepository(java.lang.String name)
Returns the repository with the given name. |
void |
initConfiguration()
Initializes a configuration after all parameters have been added. |
boolean |
isConfigured()
Returns the configured. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CmsRepositoryManager()
public CmsRepositoryManager(boolean configured)
Is used if there are no repositories configured.
configured
- determines if the repository manager was configuredMethod Detail |
---|
public void addRepositoryClass(I_CmsRepository rep) throws CmsConfigurationException
rep
- the repository to add
CmsConfigurationException
- in case the resource manager configuration is already initializedpublic java.util.List getRepositories()
public I_CmsRepository getRepository(java.lang.String name)
name
- the name of the repository
public void initConfiguration() throws CmsConfigurationException
CmsConfigurationException
- if something goes wrongpublic boolean isConfigured()
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |