NAME_ACTIVITIES_NODE, NAME_CONFIGURATIONS_NODE, NAME_JCR_XMLCHARACTERS, NAME_JCR_XMLTEXT, NAME_NODE_TYPES_NODE, NAME_SYSTEM_NODE, NAME_UNFILED_NODE, NAME_VERSION_STORAGE_NODE, NAME_WORKSPACE_ROOT, PATH_ACTIVITIES_NODE, PATH_CONFIGURATIONS_NODE, PATH_NODE_TYPES_NODE, PATH_SYSTEM_NODE, PATH_UNFILED_NODE, PATH_VERSION_STORAGE_NODE, PATH_WORKSPACE_ROOT, RELPATH_JCR_XMLCHARACTERS
Modifier and Type | Method and Description |
---|---|
FederationManager |
getFederationManager()
Returns the federation manager instance which can be used to connect to external sources.
|
IndexManager |
getIndexManager()
Returns the
IndexManager object that can be used to programmatically register and unregister index
definitions. |
NodeTypeManager |
getNodeTypeManager()
This method returns the ModeShape-specific specialization of the standard
NodeTypeManager
interface. |
QueryManager |
getQueryManager()
This method returns the ModeShape-specific specialization of the standard
QueryManager interface. |
RepositoryManager |
getRepositoryManager()
Return a
RepositoryManager that can be used to administer the Repository instance through which this workspace's
session was acquired. |
void |
reindex()
Crawl and re-index the content in this workspace.
|
void |
reindex(String path)
Crawl and index the content starting at the supplied path in this workspace, to the designated depth.
|
Future<Boolean> |
reindexAsync()
Asynchronously crawl and re-index the content in this workspace.
|
Future<Boolean> |
reindexAsync(String path)
Asynchronously crawl and index the content starting at the supplied path in this workspace, to the designated depth.
|
void |
reindexSince(long timestamp)
Reindex only the nodes from this workspace that have changed since the given timestamp.
|
Future<Boolean> |
reindexSinceAsync(long timestamp)
Asynchronously reindex only the nodes from this workspace that have changed since the given timestamp.
|
clone, copy, copy, createWorkspace, createWorkspace, deleteWorkspace, getAccessibleWorkspaceNames, getImportContentHandler, getLockManager, getName, getNamespaceRegistry, getObservationManager, getSession, getVersionManager, importXML, move, restore
NodeTypeManager getNodeTypeManager() throws RepositoryException
This method returns the ModeShape-specific specialization of the standard NodeTypeManager
interface.
getNodeTypeManager
in interface Workspace
RepositoryException
QueryManager getQueryManager() throws RepositoryException
This method returns the ModeShape-specific specialization of the standard QueryManager
interface.
getQueryManager
in interface Workspace
RepositoryException
IndexManager getIndexManager() throws RepositoryException
IndexManager
object that can be used to programmatically register and unregister index
definitions.IndexManager
object.RepositoryException
- if an error occurs.RepositoryManager getRepositoryManager() throws AccessDeniedException, RepositoryException
RepositoryManager
that can be used to administer the Repository instance through which this workspace's
session was acquired.RepositoryManager
instance.AccessDeniedException
- if the caller does not have authorization to obtain the manager.RepositoryException
- if another error occurred.void reindex() throws RepositoryException
AccessDeniedException
- if the session does not have the privileges to reindex the workspaceRepositoryException
- if there is a problem with this session or workspacereindexAsync()
,
reindexAsync(String)
,
reindex(String)
void reindex(String path) throws RepositoryException
path
- the path of the content to be indexedIllegalArgumentException
- if the workspace or path are null, or if the depth is less than 1AccessDeniedException
- if the session does not have the privileges to reindex this part of the workspaceRepositoryException
- if there is a problem with this session or workspacereindex()
,
reindexAsync()
,
reindexAsync(String)
void reindexSince(long timestamp) throws RepositoryException
timestamp
- a long
timestamp starting with which all changed nodes will be reindexed.RepositoryException
- if anything fails.Future<Boolean> reindexAsync() throws RepositoryException
AccessDeniedException
- if the session does not have the privileges to reindex the workspaceRepositoryException
- if there is a problem with this session or workspacereindex()
,
reindex(String)
,
reindexAsync(String)
Future<Boolean> reindexAsync(String path) throws RepositoryException
path
- the path of the content to be indexedIllegalArgumentException
- if the workspace or path are null, or if the depth is less than 1AccessDeniedException
- if the session does not have the privileges to reindex this part of the workspaceRepositoryException
- if there is a problem with this session or workspacereindex()
,
reindex(String)
,
reindexAsync()
Future<Boolean> reindexSinceAsync(long timestamp) throws RepositoryException
timestamp
- a long
timestamp starting with which all changed nodes will be reindexed.RepositoryException
- if anything fails.reindexSince(long)
FederationManager getFederationManager() throws RepositoryException
FederationManager
instance; never null
RepositoryException
- if anything unexpected fails.FederationManager
Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.