|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.core.config.WorkspaceConfig
public class WorkspaceConfig
Workspace configuration. This configuration class is used to create configured workspace objects.
The contained configuration information are: the home directory and name of the workspace, the file system, the persistence manager, the search index and the item state manager locking configuration. The search index and the item state manager locking and the security config are optional parts.
| Constructor Summary | |
|---|---|
WorkspaceConfig(String home,
String name,
boolean clustered,
FileSystemFactory fsf,
PersistenceManagerConfig pmc,
QueryHandlerFactory qhf,
ISMLockingFactory ismLockingFactory,
WorkspaceSecurityConfig workspaceSecurityConfig)
Creates a workspace configuration object. |
|
WorkspaceConfig(String home,
String name,
boolean clustered,
FileSystemFactory fsf,
PersistenceManagerConfig pmc,
QueryHandlerFactory qhf,
ISMLockingFactory ismLockingFactory,
WorkspaceSecurityConfig workspaceSecurityConfig,
ImportConfig importConfig)
Creates a workspace configuration object. |
|
| Method Summary | |
|---|---|
FileSystem |
getFileSystem()
Creates and returns the configured workspace file system. |
String |
getHomeDir()
Returns the workspace home directory. |
ImportConfig |
getImportConfig()
|
ISMLocking |
getISMLocking()
Creates and returns the configured workspace locking strategy. |
String |
getName()
Returns the workspace name. |
PersistenceManagerConfig |
getPersistenceManagerConfig()
Returns the workspace persistence manager configuration. |
QueryHandler |
getQueryHandler(QueryHandlerContext context)
Returns an initialized query handler, or null if one
was not configured. |
WorkspaceSecurityConfig |
getSecurityConfig()
|
boolean |
isClustered()
Returns a flag indicating whether this workspace participates in a cluster. |
boolean |
isSearchEnabled()
Checks whether search configuration is present. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WorkspaceConfig(String home,
String name,
boolean clustered,
FileSystemFactory fsf,
PersistenceManagerConfig pmc,
QueryHandlerFactory qhf,
ISMLockingFactory ismLockingFactory,
WorkspaceSecurityConfig workspaceSecurityConfig)
home - home directoryname - workspace nameclustered - fsf - file system factorypmc - persistence manager configurationqhf - query handler factory, or null if not configuredismLockingFactory - the item state manager locking factoryworkspaceSecurityConfig - the workspace specific security configuration.
public WorkspaceConfig(String home,
String name,
boolean clustered,
FileSystemFactory fsf,
PersistenceManagerConfig pmc,
QueryHandlerFactory qhf,
ISMLockingFactory ismLockingFactory,
WorkspaceSecurityConfig workspaceSecurityConfig,
ImportConfig importConfig)
home - home directoryname - workspace nameclustered - fsf - file system factorypmc - persistence manager configurationqhf - query handler factory, or null if not configuredismLockingFactory - the item state manager locking factoryworkspaceSecurityConfig - the workspace specific security configuration.| Method Detail |
|---|
public String getHomeDir()
public String getName()
public boolean isClustered()
true if this workspace participates in a cluster;
false otherwise
public ISMLocking getISMLocking()
throws RepositoryException
getISMLocking in interface ISMLockingFactoryISMLocking
RepositoryException - if the locking strategy can not be created
public FileSystem getFileSystem()
throws RepositoryException
getFileSystem in interface FileSystemFactoryFileSystem
RepositoryException - if the file system can not be createdpublic PersistenceManagerConfig getPersistenceManagerConfig()
public boolean isSearchEnabled()
true if search is configured,
false otherwise
public QueryHandler getQueryHandler(QueryHandlerContext context)
throws RepositoryException
null if one
was not configured.
getQueryHandler in interface QueryHandlerFactorynull
RepositoryExceptionpublic WorkspaceSecurityConfig getSecurityConfig()
WorkspaceSecurityConfigpublic ImportConfig getImportConfig()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||