info.magnolia.jcr.wrapper
Class NodeWrappingDelegateSessionWrapper

java.lang.Object
  extended by info.magnolia.jcr.wrapper.DelegateSessionWrapper
      extended by info.magnolia.jcr.wrapper.NodeWrappingDelegateSessionWrapper
All Implemented Interfaces:
javax.jcr.Session
Direct Known Subclasses:
MgnlVersioningSession

public abstract class NodeWrappingDelegateSessionWrapper
extends DelegateSessionWrapper

Session wrapper for wrapping nodes returned by a session.

Version:
$Id$

Field Summary
 
Fields inherited from class info.magnolia.jcr.wrapper.DelegateSessionWrapper
wrapped
 
Fields inherited from interface javax.jcr.Session
ACTION_ADD_NODE, ACTION_READ, ACTION_REMOVE, ACTION_SET_PROPERTY
 
Constructor Summary
NodeWrappingDelegateSessionWrapper(javax.jcr.Session wrapped)
           
 
Method Summary
 javax.jcr.Node getNode(String absPath)
           
 javax.jcr.Node getNodeByIdentifier(String id)
           
 javax.jcr.Node getNodeByUUID(String uuid)
           
 javax.jcr.Node getRootNode()
           
protected abstract  javax.jcr.Node wrapNode(javax.jcr.Node node)
           
 
Methods inherited from class info.magnolia.jcr.wrapper.DelegateSessionWrapper
addLockToken, checkPermission, exportDocumentView, exportDocumentView, exportSystemView, exportSystemView, getAccessControlManager, getAttribute, getAttributeNames, getImportContentHandler, getItem, getLockTokens, getNamespacePrefix, getNamespacePrefixes, getNamespaceURI, getProperty, getRepository, getRetentionManager, getUserID, getValueFactory, getWorkspace, getWrappedSession, hasCapability, hasPendingChanges, hasPermission, impersonate, importXML, isLive, itemExists, logout, move, nodeExists, propertyExists, refresh, removeItem, removeLockToken, save, setNamespacePrefix, setWrappedSession, toString, unwrap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NodeWrappingDelegateSessionWrapper

public NodeWrappingDelegateSessionWrapper(javax.jcr.Session wrapped)
Method Detail

getNode

public javax.jcr.Node getNode(String absPath)
                       throws javax.jcr.PathNotFoundException,
                              javax.jcr.RepositoryException
Specified by:
getNode in interface javax.jcr.Session
Overrides:
getNode in class DelegateSessionWrapper
Throws:
javax.jcr.PathNotFoundException
javax.jcr.RepositoryException

getNodeByIdentifier

public javax.jcr.Node getNodeByIdentifier(String id)
                                   throws javax.jcr.ItemNotFoundException,
                                          javax.jcr.RepositoryException
Specified by:
getNodeByIdentifier in interface javax.jcr.Session
Overrides:
getNodeByIdentifier in class DelegateSessionWrapper
Throws:
javax.jcr.ItemNotFoundException
javax.jcr.RepositoryException

getNodeByUUID

public javax.jcr.Node getNodeByUUID(String uuid)
                             throws javax.jcr.ItemNotFoundException,
                                    javax.jcr.RepositoryException
Specified by:
getNodeByUUID in interface javax.jcr.Session
Overrides:
getNodeByUUID in class DelegateSessionWrapper
Throws:
javax.jcr.ItemNotFoundException
javax.jcr.RepositoryException

getRootNode

public javax.jcr.Node getRootNode()
                           throws javax.jcr.RepositoryException
Specified by:
getRootNode in interface javax.jcr.Session
Overrides:
getRootNode in class DelegateSessionWrapper
Throws:
javax.jcr.RepositoryException

wrapNode

protected abstract javax.jcr.Node wrapNode(javax.jcr.Node node)


Copyright © 2003-2012 Magnolia International Ltd.. All Rights Reserved.