|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public static interface AbstractSearchEngine.Workspaces<WorkspaceType extends SearchEngineWorkspace>
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. |
Method Detail |
---|
RepositoryConnectionFactory getRepositoryConnectionFactory()
WorkspaceType getWorkspace(ExecutionContext context, String workspaceName, boolean createIfMissing)
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
InvalidWorkspaceException
- if the workspace does not existCollection<WorkspaceType> getWorkspaces()
WorkspaceType removeWorkspace(String workspaceName)
workspaceName
- the name of the workspace
Map<String,WorkspaceType> removeAllWorkspaces()
SearchEngineWorkspace
objects keyed by their name; never null but
possibly empty
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |