org.apache.jackrabbit.api
Interface JackrabbitWorkspace

All Superinterfaces:
Workspace
All Known Implementing Classes:
WorkspaceImpl

public interface JackrabbitWorkspace
extends Workspace

The Jackrabbit workspace interface. This interface contains the Jackrabbit-specific extensions to the JCR Workspace interface.


Method Summary
 void createWorkspace(String workspaceName)
          Creates a workspace with the given name.
 void createWorkspace(String workspaceName, InputSource workspaceTemplate)
          Creates a workspace with the given name and a workspace configuration template.
 
Methods inherited from interface javax.jcr.Workspace
clone, copy, copy, getAccessibleWorkspaceNames, getImportContentHandler, getName, getNamespaceRegistry, getNodeTypeManager, getObservationManager, getQueryManager, getSession, importXML, move, restore
 

Method Detail

createWorkspace

public void createWorkspace(String workspaceName)
                     throws AccessDeniedException,
                            RepositoryException
Creates a workspace with the given name.

Parameters:
workspaceName - name of the new workspace
Throws:
AccessDeniedException - if the current session is not allowed to create the workspace
RepositoryException - if a workspace with the given name already exists or if another error occurs
See Also:
Workspace.getAccessibleWorkspaceNames()

createWorkspace

public void createWorkspace(String workspaceName,
                            InputSource workspaceTemplate)
                     throws AccessDeniedException,
                            RepositoryException
Creates a workspace with the given name and a workspace configuration template.

Parameters:
workspaceName - name of the new workspace
workspaceTemplate - the configuration template of the new workspace
Throws:
AccessDeniedException - if the current session is not allowed to create the workspace
RepositoryException - if a workspace with the given name already exists or if another error occurs
See Also:
Workspace.getAccessibleWorkspaceNames()


Copyright © 2004-2006 The Apache Software Foundation. All Rights Reserved.