/** * {@inheritDoc} * * @see org.modeshape.graph.request.processor.RequestProcessor#process(org.modeshape.graph.request.GetWorkspacesRequest) */ @Override public void process( GetWorkspacesRequest request ) { request.setAvailableWorkspaceNames(repository.getWorkspaceNames()); }
/** * {@inheritDoc} * * @see org.modeshape.graph.request.processor.RequestProcessor#process(org.modeshape.graph.request.GetWorkspacesRequest) */ @Override public void process( GetWorkspacesRequest request ) { Set<String> names = repository.getWorkspaceNames(); request.setAvailableWorkspaceNames(new HashSet<String>(names)); setCacheableInfo(request); }
@Override public void process( GetWorkspacesRequest request ) { Set<String> names = repository.getWorkspaceNames(); request.setAvailableWorkspaceNames(new HashSet<String>(names)); setCacheableInfo(request); }
/** * {@inheritDoc} * * @see org.modeshape.graph.request.processor.RequestProcessor#process(org.modeshape.graph.request.GetWorkspacesRequest) */ @Override public void process( GetWorkspacesRequest request ) { // Always ask the transaction (in case a new workspace was added by another process) ... Set<String> names = txn.getWorkspaceNames(); request.setAvailableWorkspaceNames(new HashSet<String>(names)); setCacheableInfo(request); }
@Override public void process( GetWorkspacesRequest request ) { request.setAvailableWorkspaceNames(Collections.singleton("Test workspace")); }