info.magnolia.jcr.decoration
Class ContentDecoratorNodeWrapper

java.lang.Object
  extended by info.magnolia.jcr.wrapper.DelegateNodeWrapper
      extended by info.magnolia.jcr.decoration.ContentDecoratorNodeWrapper
All Implemented Interfaces:
Cloneable, javax.jcr.Item, javax.jcr.Node
Direct Known Subclasses:
InheritanceContentDecorator.DestinationNodeInheritanceNodeWrapper

public class ContentDecoratorNodeWrapper
extends DelegateNodeWrapper

Node wrapper that applies wrappers and filtering by delegating to a ContentDecorator.

Version:
$Id$

Field Summary
 
Fields inherited from class info.magnolia.jcr.wrapper.DelegateNodeWrapper
wrapped
 
Fields inherited from interface javax.jcr.Node
JCR_CHILD_NODE_DEFINITION, JCR_CONTENT, JCR_FROZEN_NODE, JCR_PROPERTY_DEFINITION, JCR_ROOT_VERSION, JCR_VERSION_LABELS
 
Constructor Summary
ContentDecoratorNodeWrapper(javax.jcr.Node node, ContentDecorator contentDecorator)
           
 
Method Summary
 javax.jcr.Node addNode(String relPath)
           
 javax.jcr.Node addNode(String relPath, String primaryNodeTypeName)
           
 javax.jcr.Item getAncestor(int depth)
           
 ContentDecorator getContentDecorator()
           
 javax.jcr.Node getNode(String relPath)
           
 javax.jcr.NodeIterator getNodes()
           
 javax.jcr.NodeIterator getNodes(String namePattern)
           
 javax.jcr.NodeIterator getNodes(String[] nameGlobs)
           
 javax.jcr.Node getParent()
           
 javax.jcr.PropertyIterator getProperties()
           
 javax.jcr.PropertyIterator getProperties(String namePattern)
           
 javax.jcr.PropertyIterator getProperties(String[] nameGlobs)
           
 javax.jcr.Property getProperty(String relPath)
           
 javax.jcr.PropertyIterator getReferences()
           
 javax.jcr.PropertyIterator getReferences(String name)
           
 javax.jcr.Session getSession()
           
 javax.jcr.PropertyIterator getWeakReferences()
           
 javax.jcr.PropertyIterator getWeakReferences(String name)
           
 boolean hasNode(String relPath)
           
 boolean hasNodes()
           
protected  javax.jcr.Node wrapNode(javax.jcr.Node node)
           
protected  javax.jcr.NodeIterator wrapNodeIterator(javax.jcr.NodeIterator nodeIterator)
           
protected  javax.jcr.Property wrapProperty(javax.jcr.Property property)
           
protected  javax.jcr.PropertyIterator wrapPropertyIterator(javax.jcr.PropertyIterator propertyIterator)
           
protected  javax.jcr.Session wrapSession(javax.jcr.Session session)
           
 
Methods inherited from class info.magnolia.jcr.wrapper.DelegateNodeWrapper
accept, addMixin, canAddMixin, cancelMerge, checkin, checkout, clone, deepUnwrap, doneMerge, followLifecycleTransition, getAllowedLifecycleTransistions, getBaseVersion, getCorrespondingNodePath, getDefinition, getDepth, getIdentifier, getIndex, getLock, getMixinNodeTypes, getName, getPath, getPrimaryItem, getPrimaryNodeType, getSharedSet, getUUID, getVersionHistory, getWrappedNode, hasProperties, hasProperty, holdsLock, initClone, isCheckedOut, isLocked, isModified, isNew, isNode, isNodeType, isSame, lock, merge, orderBefore, refresh, remove, removeMixin, removeShare, removeSharedSet, restore, restore, restore, restoreByLabel, save, setPrimaryType, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setWrappedNode, toString, unlock, update
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ContentDecoratorNodeWrapper

public ContentDecoratorNodeWrapper(javax.jcr.Node node,
                                   ContentDecorator contentDecorator)
Method Detail

getContentDecorator

public ContentDecorator getContentDecorator()

getSession

public javax.jcr.Session getSession()
                             throws javax.jcr.RepositoryException
Specified by:
getSession in interface javax.jcr.Item
Overrides:
getSession in class DelegateNodeWrapper
Throws:
javax.jcr.RepositoryException

getAncestor

public javax.jcr.Item getAncestor(int depth)
                           throws javax.jcr.ItemNotFoundException,
                                  javax.jcr.AccessDeniedException,
                                  javax.jcr.RepositoryException
Specified by:
getAncestor in interface javax.jcr.Item
Overrides:
getAncestor in class DelegateNodeWrapper
Throws:
javax.jcr.ItemNotFoundException
javax.jcr.AccessDeniedException
javax.jcr.RepositoryException

getParent

public javax.jcr.Node getParent()
                         throws javax.jcr.ItemNotFoundException,
                                javax.jcr.AccessDeniedException,
                                javax.jcr.RepositoryException
Specified by:
getParent in interface javax.jcr.Item
Overrides:
getParent in class DelegateNodeWrapper
Throws:
javax.jcr.ItemNotFoundException
javax.jcr.AccessDeniedException
javax.jcr.RepositoryException

addNode

public javax.jcr.Node addNode(String relPath)
                       throws javax.jcr.ItemExistsException,
                              javax.jcr.PathNotFoundException,
                              javax.jcr.version.VersionException,
                              javax.jcr.nodetype.ConstraintViolationException,
                              javax.jcr.lock.LockException,
                              javax.jcr.RepositoryException
Specified by:
addNode in interface javax.jcr.Node
Overrides:
addNode in class DelegateNodeWrapper
Throws:
javax.jcr.ItemExistsException
javax.jcr.PathNotFoundException
javax.jcr.version.VersionException
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.lock.LockException
javax.jcr.RepositoryException

addNode

public javax.jcr.Node addNode(String relPath,
                              String primaryNodeTypeName)
                       throws javax.jcr.ItemExistsException,
                              javax.jcr.PathNotFoundException,
                              javax.jcr.nodetype.NoSuchNodeTypeException,
                              javax.jcr.lock.LockException,
                              javax.jcr.version.VersionException,
                              javax.jcr.nodetype.ConstraintViolationException,
                              javax.jcr.RepositoryException
Specified by:
addNode in interface javax.jcr.Node
Overrides:
addNode in class DelegateNodeWrapper
Throws:
javax.jcr.ItemExistsException
javax.jcr.PathNotFoundException
javax.jcr.nodetype.NoSuchNodeTypeException
javax.jcr.lock.LockException
javax.jcr.version.VersionException
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.RepositoryException

getNode

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

getNodes

public javax.jcr.NodeIterator getNodes()
                                throws javax.jcr.RepositoryException
Specified by:
getNodes in interface javax.jcr.Node
Overrides:
getNodes in class DelegateNodeWrapper
Throws:
javax.jcr.RepositoryException

getNodes

public javax.jcr.NodeIterator getNodes(String namePattern)
                                throws javax.jcr.RepositoryException
Specified by:
getNodes in interface javax.jcr.Node
Overrides:
getNodes in class DelegateNodeWrapper
Throws:
javax.jcr.RepositoryException

getNodes

public javax.jcr.NodeIterator getNodes(String[] nameGlobs)
                                throws javax.jcr.RepositoryException
Specified by:
getNodes in interface javax.jcr.Node
Overrides:
getNodes in class DelegateNodeWrapper
Throws:
javax.jcr.RepositoryException

hasNode

public boolean hasNode(String relPath)
                throws javax.jcr.RepositoryException
Specified by:
hasNode in interface javax.jcr.Node
Overrides:
hasNode in class DelegateNodeWrapper
Throws:
javax.jcr.RepositoryException

hasNodes

public boolean hasNodes()
                 throws javax.jcr.RepositoryException
Specified by:
hasNodes in interface javax.jcr.Node
Overrides:
hasNodes in class DelegateNodeWrapper
Throws:
javax.jcr.RepositoryException

getProperties

public javax.jcr.PropertyIterator getProperties()
                                         throws javax.jcr.RepositoryException
Specified by:
getProperties in interface javax.jcr.Node
Overrides:
getProperties in class DelegateNodeWrapper
Throws:
javax.jcr.RepositoryException

getProperties

public javax.jcr.PropertyIterator getProperties(String namePattern)
                                         throws javax.jcr.RepositoryException
Specified by:
getProperties in interface javax.jcr.Node
Overrides:
getProperties in class DelegateNodeWrapper
Throws:
javax.jcr.RepositoryException

getProperties

public javax.jcr.PropertyIterator getProperties(String[] nameGlobs)
                                         throws javax.jcr.RepositoryException
Specified by:
getProperties in interface javax.jcr.Node
Overrides:
getProperties in class DelegateNodeWrapper
Throws:
javax.jcr.RepositoryException

getWeakReferences

public javax.jcr.PropertyIterator getWeakReferences()
                                             throws javax.jcr.RepositoryException
Specified by:
getWeakReferences in interface javax.jcr.Node
Overrides:
getWeakReferences in class DelegateNodeWrapper
Throws:
javax.jcr.RepositoryException

getProperty

public javax.jcr.Property getProperty(String relPath)
                               throws javax.jcr.PathNotFoundException,
                                      javax.jcr.RepositoryException
Specified by:
getProperty in interface javax.jcr.Node
Overrides:
getProperty in class DelegateNodeWrapper
Throws:
javax.jcr.PathNotFoundException
javax.jcr.RepositoryException

getReferences

public javax.jcr.PropertyIterator getReferences(String name)
                                         throws javax.jcr.RepositoryException
Specified by:
getReferences in interface javax.jcr.Node
Overrides:
getReferences in class DelegateNodeWrapper
Throws:
javax.jcr.RepositoryException

getWeakReferences

public javax.jcr.PropertyIterator getWeakReferences(String name)
                                             throws javax.jcr.RepositoryException
Specified by:
getWeakReferences in interface javax.jcr.Node
Overrides:
getWeakReferences in class DelegateNodeWrapper
Throws:
javax.jcr.RepositoryException

getReferences

public javax.jcr.PropertyIterator getReferences()
                                         throws javax.jcr.RepositoryException
Specified by:
getReferences in interface javax.jcr.Node
Overrides:
getReferences in class DelegateNodeWrapper
Throws:
javax.jcr.RepositoryException

wrapSession

protected javax.jcr.Session wrapSession(javax.jcr.Session session)

wrapNode

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

wrapNodeIterator

protected javax.jcr.NodeIterator wrapNodeIterator(javax.jcr.NodeIterator nodeIterator)

wrapProperty

protected javax.jcr.Property wrapProperty(javax.jcr.Property property)

wrapPropertyIterator

protected javax.jcr.PropertyIterator wrapPropertyIterator(javax.jcr.PropertyIterator propertyIterator)


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