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 Serviceable
ServiceException
public String getWorkspace()
WorkspaceSelector
getWorkspace
in interface WorkspaceSelector
public String[] getWorkspaces() throws RepositoryException
WorkspaceSelector
getWorkspaces
in interface WorkspaceSelector
RepositoryException
- if an error occurred