org.jboss.dna.graph
Interface Graph.CreateWorkspace

All Superinterfaces:
Graph.NameWorkspace
Enclosing class:
Graph

public static interface Graph.CreateWorkspace
extends Graph.NameWorkspace

The interface used to create a new workspace.


Method Summary
 Graph.NameWorkspace clonedFrom(String originalWorkspaceName)
          Specify that the new workspace should be initialized as a clone of another existing workspace.
 
Methods inherited from interface org.jboss.dna.graph.Graph.NameWorkspace
named, namedSomethingLike
 

Method Detail

clonedFrom

Graph.NameWorkspace clonedFrom(String originalWorkspaceName)
Specify that the new workspace should be initialized as a clone of another existing workspace.

Parameters:
originalWorkspaceName - the name of the existing workspace that will be cloned to create the new workspace;
Returns:
the interface that should be used to set the name of the new workspace; never null
Throws:
IllegalArgumentException - if the name of the original workspace is null
InvalidWorkspaceException - if there is no such workspace with the supplied name


Copyright © 2008-2009 JBoss, a division of Red Hat. All Rights Reserved.