org.apache.jackrabbit.base
Class BaseSession

java.lang.Object
  extended byorg.apache.jackrabbit.base.BaseSession
All Implemented Interfaces:
Session

public class BaseSession
extends Object
implements Session

Session base class.


Constructor Summary
protected BaseSession()
          Protected constructor.
 
Method Summary
 void addLockToken(String lt)
          Not implemented.
 void checkPermission(String absPath, String actions)
          Not implemented.
 void exportDocumentView(String absPath, ContentHandler contentHandler, boolean skipBinary, boolean noRecurse)
          Not implemented.
 void exportDocumentView(String absPath, OutputStream out, boolean skipBinary, boolean noRecurse)
          Implemented by calling exportDocView(absPath, handler, binaryAsLink, noRecurse) with a content handler instance handler created on top fo the given output stream using the Xerces XMLSerializer class.
 void exportSystemView(String absPath, ContentHandler contentHandler, boolean skipBinary, boolean noRecurse)
          Not implemented.
 void exportSystemView(String absPath, OutputStream out, boolean skipBinary, boolean noRecurse)
          Implemented by calling exportSysView(absPath, handler, binaryAsLink, noRecurse) with a content handler instance handler created on top fo the given output stream using the Xerces XMLSerializer class.
 Object getAttribute(String name)
          Not implemented.
 String[] getAttributeNames()
          Not implemented.
 ContentHandler getImportContentHandler(String parentAbsPath, int uuidBehaviour)
          Not implemented.
 Item getItem(String absPath)
          Implemented by calling getRootNode() or getRootNode().getNode(absPath.substring(1)) depending on the given absolute path.
 String[] getLockTokens()
          Not implemented.
 String getNamespacePrefix(String uri)
          Implemented by iterating over the prefix array returned by getNamespacePrefixes() and calling getNamespaceURI(prefix) repeatedly until a match is found for the given namespace URI.
 String[] getNamespacePrefixes()
          Not implemented.
 String getNamespaceURI(String prefix)
          Not implemented.
 Node getNodeByUUID(String uuid)
          Not implemented.
 Repository getRepository()
          Not implemented.
 Node getRootNode()
          Not implemented.
 String getUserID()
          Not implemented.
 ValueFactory getValueFactory()
          Not implemented.
 Workspace getWorkspace()
          Not implemented.
 boolean hasPendingChanges()
          Not implemented.
 Session impersonate(Credentials credentials)
          Implemented by calling getRepository().login(credentials, getWorkspace().getName()).
 void importXML(String parentAbsPath, InputStream in, int uuidBehaviour)
          Implemented by calling transformer.transform(new StreamSource(in), new SAXResult(handler)) with an identity Transformer and a ContentHandler instance created by calling getImportContentHandler(parentAbsPath).
 boolean isLive()
          Always returns true.
 boolean itemExists(String absPath)
          Implemented by calling getItem(absPath) and returning true unless a PathNotFoundException is thrown.
 void logout()
          Does nothing.
 void move(String srcAbsPath, String destAbsPath)
          Not implemented.
 void refresh(boolean keepChanges)
          Not implemented.
 void removeLockToken(String lt)
          Not implemented.
 void save()
          Not implemented.
 void setNamespacePrefix(String prefix, String uri)
          Not implemented.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseSession

protected BaseSession()
Protected constructor. This class is only useful when extended.

Method Detail

getRepository

public Repository getRepository()
Not implemented.

Specified by:
getRepository in interface Session

getUserID

public String getUserID()
Not implemented.

Specified by:
getUserID in interface Session

getAttribute

public Object getAttribute(String name)
Not implemented.

Specified by:
getAttribute in interface Session

getAttributeNames

public String[] getAttributeNames()
Not implemented.

Specified by:
getAttributeNames in interface Session

getWorkspace

public Workspace getWorkspace()
Not implemented.

Specified by:
getWorkspace in interface Session

impersonate

public Session impersonate(Credentials credentials)
                    throws LoginException,
                           RepositoryException
Implemented by calling getRepository().login(credentials, getWorkspace().getName()).

Specified by:
impersonate in interface Session
Throws:
LoginException
RepositoryException

getRootNode

public Node getRootNode()
                 throws RepositoryException
Not implemented.

Specified by:
getRootNode in interface Session
Throws:
RepositoryException

getNodeByUUID

public Node getNodeByUUID(String uuid)
                   throws ItemNotFoundException,
                          RepositoryException
Not implemented.

Specified by:
getNodeByUUID in interface Session
Throws:
ItemNotFoundException
RepositoryException

getItem

public Item getItem(String absPath)
             throws PathNotFoundException,
                    RepositoryException
Implemented by calling getRootNode() or getRootNode().getNode(absPath.substring(1)) depending on the given absolute path.

Specified by:
getItem in interface Session
Throws:
PathNotFoundException
RepositoryException

itemExists

public boolean itemExists(String absPath)
                   throws RepositoryException
Implemented by calling getItem(absPath) and returning true unless a PathNotFoundException is thrown.

Specified by:
itemExists in interface Session
Throws:
RepositoryException

move

public void move(String srcAbsPath,
                 String destAbsPath)
          throws ItemExistsException,
                 PathNotFoundException,
                 VersionException,
                 RepositoryException
Not implemented.

Specified by:
move in interface Session
Throws:
ItemExistsException
PathNotFoundException
VersionException
RepositoryException

save

public void save()
          throws AccessDeniedException,
                 ConstraintViolationException,
                 InvalidItemStateException,
                 VersionException,
                 LockException,
                 RepositoryException
Not implemented.

Specified by:
save in interface Session
Throws:
AccessDeniedException
ConstraintViolationException
InvalidItemStateException
VersionException
LockException
RepositoryException

refresh

public void refresh(boolean keepChanges)
             throws RepositoryException
Not implemented.

Specified by:
refresh in interface Session
Throws:
RepositoryException

hasPendingChanges

public boolean hasPendingChanges()
                          throws RepositoryException
Not implemented.

Specified by:
hasPendingChanges in interface Session
Throws:
RepositoryException

checkPermission

public void checkPermission(String absPath,
                            String actions)
                     throws AccessControlException
Not implemented.

Specified by:
checkPermission in interface Session
Throws:
AccessControlException

getImportContentHandler

public ContentHandler getImportContentHandler(String parentAbsPath,
                                              int uuidBehaviour)
                                       throws PathNotFoundException,
                                              ConstraintViolationException,
                                              VersionException,
                                              LockException,
                                              RepositoryException
Not implemented.

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

importXML

public void importXML(String parentAbsPath,
                      InputStream in,
                      int uuidBehaviour)
               throws IOException,
                      PathNotFoundException,
                      ItemExistsException,
                      ConstraintViolationException,
                      VersionException,
                      InvalidSerializedDataException,
                      LockException,
                      RepositoryException
Implemented by calling transformer.transform(new StreamSource(in), new SAXResult(handler)) with an identity Transformer and a ContentHandler instance created by calling getImportContentHandler(parentAbsPath). Possible TransformerExceptions and TransformerConfigurationExceptions are converted to IOExceptions.

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

exportSystemView

public void exportSystemView(String absPath,
                             ContentHandler contentHandler,
                             boolean skipBinary,
                             boolean noRecurse)
                      throws PathNotFoundException,
                             SAXException,
                             RepositoryException
Not implemented.

Specified by:
exportSystemView in interface Session
Throws:
PathNotFoundException
SAXException
RepositoryException

exportSystemView

public void exportSystemView(String absPath,
                             OutputStream out,
                             boolean skipBinary,
                             boolean noRecurse)
                      throws IOException,
                             PathNotFoundException,
                             RepositoryException
Implemented by calling exportSysView(absPath, handler, binaryAsLink, noRecurse) with a content handler instance handler created on top fo the given output stream using the Xerces XMLSerializer class. Possible SAXExceptions are converted to IOExceptions.

Specified by:
exportSystemView in interface Session
Throws:
IOException
PathNotFoundException
RepositoryException

exportDocumentView

public void exportDocumentView(String absPath,
                               ContentHandler contentHandler,
                               boolean skipBinary,
                               boolean noRecurse)
                        throws InvalidSerializedDataException,
                               PathNotFoundException,
                               SAXException,
                               RepositoryException
Not implemented.

Specified by:
exportDocumentView in interface Session
Throws:
InvalidSerializedDataException
PathNotFoundException
SAXException
RepositoryException

exportDocumentView

public void exportDocumentView(String absPath,
                               OutputStream out,
                               boolean skipBinary,
                               boolean noRecurse)
                        throws InvalidSerializedDataException,
                               IOException,
                               PathNotFoundException,
                               RepositoryException
Implemented by calling exportDocView(absPath, handler, binaryAsLink, noRecurse) with a content handler instance handler created on top fo the given output stream using the Xerces XMLSerializer class. Possible SAXExceptions are converted to IOExceptions.

Specified by:
exportDocumentView in interface Session
Throws:
InvalidSerializedDataException
IOException
PathNotFoundException
RepositoryException

setNamespacePrefix

public void setNamespacePrefix(String prefix,
                               String uri)
                        throws NamespaceException,
                               RepositoryException
Not implemented.

Specified by:
setNamespacePrefix in interface Session
Throws:
NamespaceException
RepositoryException

getNamespacePrefixes

public String[] getNamespacePrefixes()
                              throws RepositoryException
Not implemented.

Specified by:
getNamespacePrefixes in interface Session
Throws:
RepositoryException

getNamespaceURI

public String getNamespaceURI(String prefix)
                       throws NamespaceException,
                              RepositoryException
Not implemented.

Specified by:
getNamespaceURI in interface Session
Throws:
NamespaceException
RepositoryException

getNamespacePrefix

public String getNamespacePrefix(String uri)
                          throws NamespaceException,
                                 RepositoryException
Implemented by iterating over the prefix array returned by getNamespacePrefixes() and calling getNamespaceURI(prefix) repeatedly until a match is found for the given namespace URI.

Specified by:
getNamespacePrefix in interface Session
Throws:
NamespaceException
RepositoryException

logout

public void logout()
Does nothing.

Specified by:
logout in interface Session

addLockToken

public void addLockToken(String lt)
Not implemented.

Specified by:
addLockToken in interface Session

getLockTokens

public String[] getLockTokens()
Not implemented.

Specified by:
getLockTokens in interface Session

removeLockToken

public void removeLockToken(String lt)
Not implemented.

Specified by:
removeLockToken in interface Session

getValueFactory

public ValueFactory getValueFactory()
                             throws UnsupportedRepositoryOperationException,
                                    RepositoryException
Not implemented.

Specified by:
getValueFactory in interface Session
Throws:
UnsupportedRepositoryOperationException
RepositoryException

isLive

public boolean isLive()
Always returns true.

Specified by:
isLive in interface Session


Copyright © 2004-2005 . All Rights Reserved.