Package org.jboss.dna.graph.request

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


                     * {@inheritDoc}
                     *
                     * @see org.jboss.dna.graph.Graph.NameWorkspace#named(java.lang.String)
                     */
                    public Workspace named( String nameOfWorkspaceToCreate ) {
                        CloneWorkspaceRequest request = requests.cloneWorkspace(nameOfWorkspaceToClone,
                                                                                nameOfWorkspaceToCreate,
                                                                                CreateConflictBehavior.DO_NOT_CREATE,
                                                                                CloneConflictBehavior.DO_NOT_CLONE);
                        return setWorkspace(request.getActualWorkspaceName(), request.getActualLocationOfRoot());
                    }

                    /**
                     * {@inheritDoc}
                     *
                     * @see org.jboss.dna.graph.Graph.NameWorkspace#namedSomethingLike(java.lang.String)
                     */
                    public Workspace namedSomethingLike( String nameOfWorkspaceToCreate ) {
                        CloneWorkspaceRequest request = requests.cloneWorkspace(nameOfWorkspaceToClone,
                                                                                nameOfWorkspaceToCreate,
                                                                                CreateConflictBehavior.CREATE_WITH_ADJUSTED_NAME,
                                                                                CloneConflictBehavior.DO_NOT_CLONE);
                        return setWorkspace(request.getActualWorkspaceName(), request.getActualLocationOfRoot());
                    }
                };
            }
        };
    }
View Full Code Here


                     * {@inheritDoc}
                     *
                     * @see org.jboss.dna.graph.Graph.NameWorkspace#named(java.lang.String)
                     */
                    public Workspace named( String nameOfWorkspaceToCreate ) {
                        CloneWorkspaceRequest request = requests.cloneWorkspace(nameOfWorkspaceToClone,
                                                                                nameOfWorkspaceToCreate,
                                                                                CreateConflictBehavior.DO_NOT_CREATE,
                                                                                CloneConflictBehavior.DO_NOT_CLONE);
                        return setWorkspace(request.getActualWorkspaceName(), request.getActualLocationOfRoot());
                    }

                    /**
                     * {@inheritDoc}
                     *
                     * @see org.jboss.dna.graph.Graph.NameWorkspace#namedSomethingLike(java.lang.String)
                     */
                    public Workspace namedSomethingLike( String nameOfWorkspaceToCreate ) {
                        CloneWorkspaceRequest request = requests.cloneWorkspace(nameOfWorkspaceToClone,
                                                                                nameOfWorkspaceToCreate,
                                                                                CreateConflictBehavior.CREATE_WITH_ADJUSTED_NAME,
                                                                                CloneConflictBehavior.DO_NOT_CLONE);
                        return setWorkspace(request.getActualWorkspaceName(), request.getActualLocationOfRoot());
                    }
                };
            }
        };
    }
View Full Code Here

                                                      String workspaceName,
                                                      CreateConflictBehavior createConflictBehavior,
                                                      CloneConflictBehavior cloneBehavior ) {
        Request request = executedRequests.poll();
        assertThat(request, is(instanceOf(CloneWorkspaceRequest.class)));
        CloneWorkspaceRequest create = (CloneWorkspaceRequest)request;
        assertThat(create.nameOfWorkspaceToBeCloned(), is(originalWorkspaceName));
        assertThat(create.desiredNameOfTargetWorkspace(), is(workspaceName));
        assertThat(create.targetConflictBehavior(), is(createConflictBehavior));
        assertThat(create.cloneConflictBehavior(), is(cloneBehavior));
    }
View Full Code Here

TOP

Related Classes of org.jboss.dna.graph.request.CloneWorkspaceRequest

Copyright © 2018 www.massapicom. 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.