org.apache.jackrabbit.oak.jcr.session
Class WorkspaceImpl

java.lang.Object
  extended by org.apache.jackrabbit.oak.jcr.session.WorkspaceImpl
All Implemented Interfaces:
javax.jcr.Workspace, org.apache.jackrabbit.api.JackrabbitWorkspace

public class WorkspaceImpl
extends Object
implements org.apache.jackrabbit.api.JackrabbitWorkspace

TODO document


Field Summary
 
Fields inherited from interface javax.jcr.Workspace
NAME_ACTIVITIES_NODE, NAME_CONFIGURATIONS_NODE, NAME_JCR_XMLCHARACTERS, NAME_JCR_XMLTEXT, NAME_NODE_TYPES_NODE, NAME_SYSTEM_NODE, NAME_UNFILED_NODE, NAME_VERSION_STORAGE_NODE, NAME_WORKSPACE_ROOT, PATH_ACTIVITIES_NODE, PATH_CONFIGURATIONS_NODE, PATH_NODE_TYPES_NODE, PATH_SYSTEM_NODE, PATH_UNFILED_NODE, PATH_VERSION_STORAGE_NODE, PATH_WORKSPACE_ROOT, RELPATH_JCR_XMLCHARACTERS
 
Constructor Summary
WorkspaceImpl(SessionContext sessionContext)
           
 
Method Summary
 void clone(String srcWorkspace, String srcAbsPath, String destAbsPath, boolean removeExisting)
           
 void copy(String srcAbsPath, String destAbsPath)
           
 void copy(String srcWorkspace, String srcAbsPath, String destAbsPath)
           
 void createWorkspace(String name)
           
 void createWorkspace(String workspaceName, InputSource workspaceTemplate)
           
 void createWorkspace(String name, String srcWorkspace)
           
 void deleteWorkspace(String name)
           
 String[] getAccessibleWorkspaceNames()
           
 ContentHandler getImportContentHandler(String parentAbsPath, int uuidBehavior)
           
 javax.jcr.lock.LockManager getLockManager()
           
 String getName()
           
 javax.jcr.NamespaceRegistry getNamespaceRegistry()
           
 org.apache.jackrabbit.oak.plugins.nodetype.write.ReadWriteNodeTypeManager getNodeTypeManager()
           
 javax.jcr.observation.ObservationManager getObservationManager()
           
 org.apache.jackrabbit.api.security.authorization.PrivilegeManager getPrivilegeManager()
           
 javax.jcr.query.QueryManager getQueryManager()
           
 javax.jcr.Session getSession()
           
 javax.jcr.version.VersionManager getVersionManager()
           
 void importXML(String parentAbsPath, InputStream in, int uuidBehavior)
           
 void move(String srcAbsPath, String destAbsPath)
           
 void restore(javax.jcr.version.Version[] versions, boolean removeExisting)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WorkspaceImpl

public WorkspaceImpl(SessionContext sessionContext)
Method Detail

getSession

@Nonnull
public javax.jcr.Session getSession()
Specified by:
getSession in interface javax.jcr.Workspace

getName

public String getName()
Specified by:
getName in interface javax.jcr.Workspace

copy

public void copy(String srcAbsPath,
                 String destAbsPath)
          throws javax.jcr.RepositoryException
Specified by:
copy in interface javax.jcr.Workspace
Throws:
javax.jcr.RepositoryException

copy

public void copy(String srcWorkspace,
                 String srcAbsPath,
                 String destAbsPath)
          throws javax.jcr.RepositoryException
Specified by:
copy in interface javax.jcr.Workspace
Throws:
javax.jcr.RepositoryException

clone

public void clone(String srcWorkspace,
                  String srcAbsPath,
                  String destAbsPath,
                  boolean removeExisting)
           throws javax.jcr.RepositoryException
Specified by:
clone in interface javax.jcr.Workspace
Throws:
javax.jcr.RepositoryException

move

public void move(String srcAbsPath,
                 String destAbsPath)
          throws javax.jcr.RepositoryException
Specified by:
move in interface javax.jcr.Workspace
Throws:
javax.jcr.RepositoryException

restore

public void restore(javax.jcr.version.Version[] versions,
                    boolean removeExisting)
             throws javax.jcr.RepositoryException
Specified by:
restore in interface javax.jcr.Workspace
Throws:
javax.jcr.RepositoryException

getLockManager

public javax.jcr.lock.LockManager getLockManager()
Specified by:
getLockManager in interface javax.jcr.Workspace

getQueryManager

public javax.jcr.query.QueryManager getQueryManager()
                                             throws javax.jcr.RepositoryException
Specified by:
getQueryManager in interface javax.jcr.Workspace
Throws:
javax.jcr.RepositoryException

getNamespaceRegistry

public javax.jcr.NamespaceRegistry getNamespaceRegistry()
Specified by:
getNamespaceRegistry in interface javax.jcr.Workspace

getNodeTypeManager

public org.apache.jackrabbit.oak.plugins.nodetype.write.ReadWriteNodeTypeManager getNodeTypeManager()
Specified by:
getNodeTypeManager in interface javax.jcr.Workspace

getObservationManager

public javax.jcr.observation.ObservationManager getObservationManager()
                                                               throws javax.jcr.RepositoryException
Specified by:
getObservationManager in interface javax.jcr.Workspace
Throws:
javax.jcr.RepositoryException

getVersionManager

public javax.jcr.version.VersionManager getVersionManager()
                                                   throws javax.jcr.RepositoryException
Specified by:
getVersionManager in interface javax.jcr.Workspace
Throws:
javax.jcr.RepositoryException

getAccessibleWorkspaceNames

public String[] getAccessibleWorkspaceNames()
                                     throws javax.jcr.RepositoryException
Specified by:
getAccessibleWorkspaceNames in interface javax.jcr.Workspace
Throws:
javax.jcr.RepositoryException

getImportContentHandler

public ContentHandler getImportContentHandler(String parentAbsPath,
                                              int uuidBehavior)
                                       throws javax.jcr.RepositoryException
Specified by:
getImportContentHandler in interface javax.jcr.Workspace
Throws:
javax.jcr.RepositoryException

importXML

public void importXML(String parentAbsPath,
                      InputStream in,
                      int uuidBehavior)
               throws IOException,
                      javax.jcr.RepositoryException
Specified by:
importXML in interface javax.jcr.Workspace
Throws:
IOException
javax.jcr.RepositoryException

createWorkspace

public void createWorkspace(String name)
                     throws javax.jcr.RepositoryException
Specified by:
createWorkspace in interface javax.jcr.Workspace
Specified by:
createWorkspace in interface org.apache.jackrabbit.api.JackrabbitWorkspace
Throws:
javax.jcr.RepositoryException

createWorkspace

public void createWorkspace(String name,
                            String srcWorkspace)
                     throws javax.jcr.RepositoryException
Specified by:
createWorkspace in interface javax.jcr.Workspace
Throws:
javax.jcr.RepositoryException

deleteWorkspace

public void deleteWorkspace(String name)
                     throws javax.jcr.RepositoryException
Specified by:
deleteWorkspace in interface javax.jcr.Workspace
Throws:
javax.jcr.RepositoryException

createWorkspace

public void createWorkspace(String workspaceName,
                            InputSource workspaceTemplate)
                     throws javax.jcr.RepositoryException
Specified by:
createWorkspace in interface org.apache.jackrabbit.api.JackrabbitWorkspace
Throws:
javax.jcr.RepositoryException

getPrivilegeManager

public org.apache.jackrabbit.api.security.authorization.PrivilegeManager getPrivilegeManager()
                                                                                      throws javax.jcr.RepositoryException
Specified by:
getPrivilegeManager in interface org.apache.jackrabbit.api.JackrabbitWorkspace
Throws:
javax.jcr.RepositoryException
See Also:
JackrabbitWorkspace.getPrivilegeManager()


Copyright © 2012-2014 The Apache Software Foundation. All Rights Reserved.