org.apache.jackrabbit.rmi.jackrabbit
Class ClientJackrabbitWorkspace

java.lang.Object
  extended by org.apache.jackrabbit.rmi.client.ClientObject
      extended by org.apache.jackrabbit.rmi.client.ClientWorkspace
          extended by org.apache.jackrabbit.rmi.jackrabbit.ClientJackrabbitWorkspace
All Implemented Interfaces:
Workspace, JackrabbitWorkspace

public class ClientJackrabbitWorkspace
extends ClientWorkspace
implements JackrabbitWorkspace


Constructor Summary
ClientJackrabbitWorkspace(Session session, RemoteJackrabbitWorkspace remote, LocalAdapterFactory factory)
           
 
Method Summary
 void createWorkspace(String name)
          Creates a workspace with the given name.
 void createWorkspace(String name, InputSource template)
          Creates a workspace with the given name and a workspace configuration template.
 
Methods inherited from class org.apache.jackrabbit.rmi.client.ClientWorkspace
clone, copy, copy, getAccessibleWorkspaceNames, getImportContentHandler, getName, getNamespaceRegistry, getNodeTypeManager, getObservationManager, getQueryManager, getSession, importXML, move, restore
 
Methods inherited from class org.apache.jackrabbit.rmi.client.ClientObject
getFactory, getItem, getNode, getNodeTypeArray
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.jcr.Workspace
clone, copy, copy, getAccessibleWorkspaceNames, getImportContentHandler, getName, getNamespaceRegistry, getNodeTypeManager, getObservationManager, getQueryManager, getSession, importXML, move, restore
 

Constructor Detail

ClientJackrabbitWorkspace

public ClientJackrabbitWorkspace(Session session,
                                 RemoteJackrabbitWorkspace remote,
                                 LocalAdapterFactory factory)
Method Detail

createWorkspace

public void createWorkspace(String name)
                     throws RepositoryException
Description copied from interface: JackrabbitWorkspace
Creates a workspace with the given name.

Specified by:
createWorkspace in interface JackrabbitWorkspace
Parameters:
name - 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 name,
                            InputSource template)
                     throws RepositoryException
Description copied from interface: JackrabbitWorkspace
Creates a workspace with the given name and a workspace configuration template.

Specified by:
createWorkspace in interface JackrabbitWorkspace
Parameters:
name - name of the new workspace
template - 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-2007 The Apache Software Foundation. All Rights Reserved.