Examples of VerifyWorkspaceRequest


Examples of org.jboss.dna.graph.request.VerifyWorkspaceRequest

     * @return the workspace; never null
     * @throws InvalidWorkspaceException if the workspace with the supplied name does not exist, or if null is supplied as the
     *         workspace name but the source does not have a default workspace
     */
    public Workspace useWorkspace( String workspaceName ) {
        VerifyWorkspaceRequest request = requests.verifyWorkspace(workspaceName);
        return setWorkspace(request.getActualWorkspaceName(), request.getActualLocationOfRoot());
    }
View Full Code Here

Examples of org.jboss.dna.graph.request.VerifyWorkspaceRequest

        // Load the workspaces into the engine ...
        SearchEngineProcessor processor = engine.createProcessor(context, null, false);
        try {
            for (String workspaceName : content.getWorkspaces()) {
                processor.process(new VerifyWorkspaceRequest(workspaceName));
            }
        } finally {
            processor.close();
        }
View Full Code Here

Examples of org.jboss.dna.graph.request.VerifyWorkspaceRequest

     * @return the workspace; never null
     * @throws InvalidWorkspaceException if the workspace with the supplied name does not exist, or if null is supplied as the
     *         workspace name but the source does not have a default workspace
     */
    public Workspace useWorkspace( String workspaceName ) {
        VerifyWorkspaceRequest request = requests.verifyWorkspace(workspaceName);
        return setWorkspace(request.getActualWorkspaceName(), request.getActualLocationOfRoot());
    }
View Full Code Here

Examples of org.jboss.dna.graph.request.VerifyWorkspaceRequest

        @SuppressWarnings( "synthetic-access" )
        public void execute( ExecutionContext context,
                             Request request ) throws RepositorySourceException {
            lastExecutedRequest = request;
            if (request instanceof VerifyWorkspaceRequest) {
                VerifyWorkspaceRequest workspaceRequest = (VerifyWorkspaceRequest)request;
                workspaceRequest.setActualRootLocation(Location.create(context.getValueFactories()
                                                                              .getPathFactory()
                                                                              .createRootPath()));
                workspaceRequest.setActualWorkspaceName("default");
            }
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.