|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jackrabbit.core.config.RepositoryConfig
Repository configuration. This configuration class is used to create configured repository objects.
The contained configuration information are: the home directory and name of the repository, the access manager, file system, and versioning configurations, the workspace directory, the default workspace name, and the workspace configuration template. In addition the workspace configuration object keeps track of all configured workspaces.
Method Summary | |
static RepositoryConfig |
create(InputSource xml,
String home)
Parses the given repository configuration document and returns the parsed and initialized repository configuration. |
static RepositoryConfig |
create(InputStream input,
String home)
Convenience method that wraps the configuration input stream into an InputSource and invokes the
create(InputSource, String) method. |
static RepositoryConfig |
create(String file,
String home)
Convenience method that wraps the configuration file name into an InputSource and invokes the
create(InputSource, String) method. |
static RepositoryConfig |
create(URI uri,
String home)
Convenience method that wraps the configuration URI into an InputSource and invokes the
create(InputSource, String) method. |
WorkspaceConfig |
createWorkspaceConfig(String name)
Creates a new workspace configuration with the specified name. |
AccessManagerConfig |
getAccessManagerConfig()
Returns the repository access manager configuration. |
String |
getAppName()
Returns the repository name. |
String |
getDefaultWorkspaceName()
Returns the name of the default workspace. |
FileSystem |
getFileSystem()
Returns the repository file system implementation. |
String |
getHomeDir()
Returns the repository home directory. |
LoginModuleConfig |
getLoginModuleConfig()
Returns the repository login module configuration. |
VersioningConfig |
getVersioningConfig()
Returns the repository versioning configuration. |
WorkspaceConfig |
getWorkspaceConfig(String name)
Returns the configuration of the specified workspace. |
Collection |
getWorkspaceConfigs()
Returns all workspace configurations. |
String |
getWorkspacesConfigRootDir()
Returns the workspace root directory. |
protected void |
init()
Initializes the repository configuration. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static RepositoryConfig create(String file, String home) throws ConfigurationException
InputSource
and invokes the
create(InputSource, String)
method.
file
- repository configuration file namehome
- repository home directory
ConfigurationException
- on configuration errorscreate(InputSource, String)
public static RepositoryConfig create(URI uri, String home) throws ConfigurationException
InputSource
and invokes the
create(InputSource, String)
method.
uri
- repository configuration URIhome
- repository home directory
ConfigurationException
- on configuration errorscreate(InputSource, String)
public static RepositoryConfig create(InputStream input, String home) throws ConfigurationException
InputSource
and invokes the
create(InputSource, String)
method.
input
- repository configuration input streamhome
- repository home directory
ConfigurationException
- on configuration errorscreate(InputSource, String)
public static RepositoryConfig create(InputSource xml, String home) throws ConfigurationException
Note that in addition to parsing the repository configuration, this
method also initializes the configuration (creates the configured
directories, etc.). The ConfigurationParser
class should be
used directly to just parse the configuration.
xml
- repository configuration documenthome
- repository home directory
ConfigurationException
- on configuration errorsprotected void init() throws ConfigurationException
ConfigurationException
- on initialization errorspublic WorkspaceConfig createWorkspaceConfig(String name) throws ConfigurationException
name
- workspace name
ConfigurationException
- if creating the workspace configuration
failedpublic String getHomeDir()
public FileSystem getFileSystem()
public String getAppName()
public AccessManagerConfig getAccessManagerConfig()
public LoginModuleConfig getLoginModuleConfig()
null
if standard
JAAS mechanism should be used.public String getWorkspacesConfigRootDir()
public String getDefaultWorkspaceName()
public Collection getWorkspaceConfigs()
public WorkspaceConfig getWorkspaceConfig(String name)
name
- workspace name
null
if the named
workspace does not existpublic VersioningConfig getVersioningConfig()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |