org.apache.jackrabbit.decorator
Class WorkspaceDecorator

java.lang.Object
  extended byorg.apache.jackrabbit.decorator.WorkspaceDecorator
All Implemented Interfaces:
Workspace

public class WorkspaceDecorator
extends Object
implements Workspace

Simple workspace decorator.


Constructor Summary
WorkspaceDecorator(DecoratorFactory factory, Session session, Workspace workspace)
          Creates a workspace decorator.
 
Method Summary
 void clone(String srcWorkspace, String srcAbsPath, String destAbsPath, boolean removeExisting)
          Forwards the method call to the underlying workspace.
 void copy(String srcAbsPath, String destAbsPath)
          Forwards the method call to the underlying workspace.
 void copy(String srcWorkspace, String srcAbsPath, String destAbsPath)
          Forwards the method call to the underlying workspace.
 String[] getAccessibleWorkspaceNames()
          Forwards the method call to the underlying workspace.
 ContentHandler getImportContentHandler(String parentAbsPath, int uuidBehaviour)
          Forwards the method call to the underlying workspace.
 String getName()
          Forwards the method call to the underlying workspace.
 NamespaceRegistry getNamespaceRegistry()
          Forwards the method call to the underlying workspace.
 NodeTypeManager getNodeTypeManager()
          Forwards the method call to the underlying workspace.
 ObservationManager getObservationManager()
          Forwards the method call to the underlying workspace.
 QueryManager getQueryManager()
          Forwards the method call to the underlying workspace.
 Session getSession()
          
 void importXML(String parentAbsPath, InputStream in, int uuidBehaviour)
          Forwards the method call to the underlying workspace.
 void move(String srcAbsPath, String destAbsPath)
          Forwards the method call to the underlying workspace.
 void restore(Version[] versions, boolean removeExisting)
          Forwards the method call to the underlying workspace.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WorkspaceDecorator

public WorkspaceDecorator(DecoratorFactory factory,
                          Session session,
                          Workspace workspace)
Creates a workspace decorator.

Parameters:
factory -
session -
workspace -
Method Detail

getSession

public Session getSession()

Specified by:
getSession in interface Workspace

getName

public String getName()
Forwards the method call to the underlying workspace.

Specified by:
getName in interface Workspace

copy

public void copy(String srcAbsPath,
                 String destAbsPath)
          throws ConstraintViolationException,
                 VersionException,
                 AccessDeniedException,
                 PathNotFoundException,
                 ItemExistsException,
                 LockException,
                 RepositoryException
Forwards the method call to the underlying workspace.

Specified by:
copy in interface Workspace
Throws:
ConstraintViolationException
VersionException
AccessDeniedException
PathNotFoundException
ItemExistsException
LockException
RepositoryException

copy

public void copy(String srcWorkspace,
                 String srcAbsPath,
                 String destAbsPath)
          throws NoSuchWorkspaceException,
                 ConstraintViolationException,
                 VersionException,
                 AccessDeniedException,
                 PathNotFoundException,
                 ItemExistsException,
                 LockException,
                 RepositoryException
Forwards the method call to the underlying workspace.

Specified by:
copy in interface Workspace
Throws:
NoSuchWorkspaceException
ConstraintViolationException
VersionException
AccessDeniedException
PathNotFoundException
ItemExistsException
LockException
RepositoryException

clone

public void clone(String srcWorkspace,
                  String srcAbsPath,
                  String destAbsPath,
                  boolean removeExisting)
           throws NoSuchWorkspaceException,
                  ConstraintViolationException,
                  VersionException,
                  AccessDeniedException,
                  PathNotFoundException,
                  ItemExistsException,
                  LockException,
                  RepositoryException
Forwards the method call to the underlying workspace.

Specified by:
clone in interface Workspace
Throws:
NoSuchWorkspaceException
ConstraintViolationException
VersionException
AccessDeniedException
PathNotFoundException
ItemExistsException
LockException
RepositoryException

move

public void move(String srcAbsPath,
                 String destAbsPath)
          throws ConstraintViolationException,
                 VersionException,
                 AccessDeniedException,
                 PathNotFoundException,
                 ItemExistsException,
                 LockException,
                 RepositoryException
Forwards the method call to the underlying workspace.

Specified by:
move in interface Workspace
Throws:
ConstraintViolationException
VersionException
AccessDeniedException
PathNotFoundException
ItemExistsException
LockException
RepositoryException

restore

public void restore(Version[] versions,
                    boolean removeExisting)
             throws ItemExistsException,
                    UnsupportedRepositoryOperationException,
                    VersionException,
                    LockException,
                    InvalidItemStateException,
                    RepositoryException
Forwards the method call to the underlying workspace.

Specified by:
restore in interface Workspace
Throws:
ItemExistsException
UnsupportedRepositoryOperationException
VersionException
LockException
InvalidItemStateException
RepositoryException

getQueryManager

public QueryManager getQueryManager()
                             throws RepositoryException
Forwards the method call to the underlying workspace.

Specified by:
getQueryManager in interface Workspace
Throws:
RepositoryException

getNamespaceRegistry

public NamespaceRegistry getNamespaceRegistry()
                                       throws RepositoryException
Forwards the method call to the underlying workspace.

Specified by:
getNamespaceRegistry in interface Workspace
Throws:
RepositoryException

getNodeTypeManager

public NodeTypeManager getNodeTypeManager()
                                   throws RepositoryException
Forwards the method call to the underlying workspace.

Specified by:
getNodeTypeManager in interface Workspace
Throws:
RepositoryException

getObservationManager

public ObservationManager getObservationManager()
                                         throws UnsupportedRepositoryOperationException,
                                                RepositoryException
Forwards the method call to the underlying workspace.

Specified by:
getObservationManager in interface Workspace
Throws:
UnsupportedRepositoryOperationException
RepositoryException

getAccessibleWorkspaceNames

public String[] getAccessibleWorkspaceNames()
                                     throws RepositoryException
Forwards the method call to the underlying workspace.

Specified by:
getAccessibleWorkspaceNames in interface Workspace
Throws:
RepositoryException

getImportContentHandler

public ContentHandler getImportContentHandler(String parentAbsPath,
                                              int uuidBehaviour)
                                       throws PathNotFoundException,
                                              ConstraintViolationException,
                                              VersionException,
                                              LockException,
                                              RepositoryException
Forwards the method call to the underlying workspace.

Specified by:
getImportContentHandler in interface Workspace
Throws:
PathNotFoundException
ConstraintViolationException
VersionException
LockException
RepositoryException

importXML

public void importXML(String parentAbsPath,
                      InputStream in,
                      int uuidBehaviour)
               throws IOException,
                      PathNotFoundException,
                      ItemExistsException,
                      ConstraintViolationException,
                      InvalidSerializedDataException,
                      LockException,
                      RepositoryException
Forwards the method call to the underlying workspace.

Specified by:
importXML in interface Workspace
Throws:
IOException
PathNotFoundException
ItemExistsException
ConstraintViolationException
InvalidSerializedDataException
LockException
RepositoryException


Copyright © 2004-2005 . All Rights Reserved.