|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.modeshape.graph.search.AbstractSearchEngine.SearchWorkspaces
protected class AbstractSearchEngine.SearchWorkspaces
Constructor Summary | |
---|---|
protected |
AbstractSearchEngine.SearchWorkspaces(RepositoryConnectionFactory connectionFactory)
|
Method Summary | |
---|---|
RepositoryConnectionFactory |
getRepositoryConnectionFactory()
Get the connection factory for repository sources. |
WorkspaceType |
getWorkspace(ExecutionContext context,
String workspaceName,
boolean createIfMissing)
Get the search engine for the workspace with the supplied name. |
Collection<WorkspaceType> |
getWorkspaces()
Get the existing workspaces. |
Map<String,WorkspaceType> |
removeAllWorkspaces()
Remove from the search engine all workspace-related indexes, thereby cleaning up any resources used by this search engine. |
WorkspaceType |
removeWorkspace(String workspaceName)
Remove the supplied workspace from the search engine. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected AbstractSearchEngine.SearchWorkspaces(RepositoryConnectionFactory connectionFactory)
Method Detail |
---|
public RepositoryConnectionFactory getRepositoryConnectionFactory()
getRepositoryConnectionFactory
in interface AbstractSearchEngine.Workspaces<WorkspaceType extends SearchEngineWorkspace>
AbstractSearchEngine.Workspaces.getRepositoryConnectionFactory()
public WorkspaceType getWorkspace(ExecutionContext context, String workspaceName, boolean createIfMissing)
getWorkspace
in interface AbstractSearchEngine.Workspaces<WorkspaceType extends SearchEngineWorkspace>
context
- the execution context; never nullworkspaceName
- the name of the workspace; never nullcreateIfMissing
- true if the workspace should be created if missing, or false otherwise
AbstractSearchEngine.Workspaces.getWorkspace(org.modeshape.graph.ExecutionContext, java.lang.String, boolean)
public Collection<WorkspaceType> getWorkspaces()
getWorkspaces
in interface AbstractSearchEngine.Workspaces<WorkspaceType extends SearchEngineWorkspace>
AbstractSearchEngine.Workspaces.getWorkspaces()
public WorkspaceType removeWorkspace(String workspaceName)
removeWorkspace
in interface AbstractSearchEngine.Workspaces<WorkspaceType extends SearchEngineWorkspace>
workspaceName
- the name of the workspace
AbstractSearchEngine.Workspaces.removeWorkspace(java.lang.String)
public Map<String,WorkspaceType> removeAllWorkspaces()
removeAllWorkspaces
in interface AbstractSearchEngine.Workspaces<WorkspaceType extends SearchEngineWorkspace>
SearchEngineWorkspace
objects keyed by their name; never null but
possibly emptyAbstractSearchEngine.Workspaces.removeAllWorkspaces()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |