public class DefaultWorkspaceSelector extends Object implements WorkspaceSelector, Serviceable
WorkspaceSelector, always selecting the "default" workspace.| Modifier and Type | Field and Description |
|---|---|
protected Repository |
_repository
The repository.
|
ROLE| Constructor and Description |
|---|
DefaultWorkspaceSelector() |
| Modifier and Type | Method and Description |
|---|---|
String |
getWorkspace()
Returns the current JCR workspace
|
String[] |
getWorkspaces()
Returns the all JCR workspaces
|
void |
service(ServiceManager smanager) |
protected Repository _repository
public DefaultWorkspaceSelector()
public void service(ServiceManager smanager) throws ServiceException
service in interface ServiceableServiceExceptionpublic String getWorkspace()
WorkspaceSelectorgetWorkspace in interface WorkspaceSelectorpublic String[] getWorkspaces() throws RepositoryException
WorkspaceSelectorgetWorkspaces in interface WorkspaceSelectorRepositoryException - if an error occurred