info.magnolia.jcr.decoration
Class ContentDecoratorNodeWrapper
java.lang.Object
info.magnolia.jcr.wrapper.DelegateNodeWrapper
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$
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 |
Methods inherited from class info.magnolia.jcr.wrapper.DelegateNodeWrapper |
accept, addMixin, canAddMixin, cancelMerge, checkin, checkout, clone, deepUnwrap, doneMerge, followLifecycleTransition, getAllowedLifecycleTransistions, getAncestor, 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 |
ContentDecoratorNodeWrapper
public ContentDecoratorNodeWrapper(javax.jcr.Node node,
ContentDecorator contentDecorator)
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
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.