info.magnolia.jcr.decoration
Class ContentDecoratorNodeWrapper<D extends ContentDecorator>
java.lang.Object
info.magnolia.jcr.wrapper.DelegateNodeWrapper
info.magnolia.jcr.decoration.ContentDecoratorNodeWrapper<D>
- Type Parameters:
D
- implementation of decorator.
- All Implemented Interfaces:
- Cloneable, javax.jcr.Item, javax.jcr.Node
- Direct Known Subclasses:
- ChildFilteringNodeWrapper, HTMLEscapingNodeWrapper, I18nNodeWrapper, InheritanceContentDecorator.DestinationNodeInheritanceNodeWrapper, MgnlAuditLoggingContentDecoratorNodeWrapper, MgnlVersioningNodeWrapper, PropertyAndChildWrappingNodeWrapper, PropertyFilteringNodeWrapper
public class ContentDecoratorNodeWrapper<D extends ContentDecorator>
- extends DelegateNodeWrapper
Node wrapper that applies wrappers and filtering by delegating to a ContentDecorator
.
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 |
Method Summary |
javax.jcr.Node |
addNode(String relPath)
|
javax.jcr.Node |
addNode(String relPath,
String primaryNodeTypeName)
|
boolean |
equals(Object obj)
|
javax.jcr.Item |
getAncestor(int depth)
|
D |
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)
|
int |
hashCode()
|
boolean |
hasNode(String relPath)
|
boolean |
hasNodes()
|
javax.jcr.Property |
setProperty(String name,
BigDecimal value)
|
javax.jcr.Property |
setProperty(String name,
javax.jcr.Binary value)
|
javax.jcr.Property |
setProperty(String name,
boolean value)
|
javax.jcr.Property |
setProperty(String name,
Calendar value)
|
javax.jcr.Property |
setProperty(String name,
double value)
|
javax.jcr.Property |
setProperty(String name,
InputStream value)
|
javax.jcr.Property |
setProperty(String name,
long value)
|
javax.jcr.Property |
setProperty(String name,
javax.jcr.Node value)
|
javax.jcr.Property |
setProperty(String name,
String value)
|
javax.jcr.Property |
setProperty(String name,
String[] values)
|
javax.jcr.Property |
setProperty(String name,
String[] values,
int type)
|
javax.jcr.Property |
setProperty(String name,
String value,
int type)
|
javax.jcr.Property |
setProperty(String name,
javax.jcr.Value value)
|
javax.jcr.Property |
setProperty(String name,
javax.jcr.Value[] values)
|
javax.jcr.Property |
setProperty(String name,
javax.jcr.Value[] values,
int type)
|
javax.jcr.Property |
setProperty(String name,
javax.jcr.Value value,
int type)
|
void |
setWrappedNode(javax.jcr.Node node)
|
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, toString, unlock, update |
ContentDecoratorNodeWrapper
public ContentDecoratorNodeWrapper(javax.jcr.Node node,
D contentDecorator)
getContentDecorator
public D getContentDecorator()
setWrappedNode
public void setWrappedNode(javax.jcr.Node node)
- Overrides:
setWrappedNode
in class DelegateNodeWrapper
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
setProperty
public javax.jcr.Property setProperty(String name,
BigDecimal value)
throws javax.jcr.ValueFormatException,
javax.jcr.version.VersionException,
javax.jcr.lock.LockException,
javax.jcr.nodetype.ConstraintViolationException,
javax.jcr.RepositoryException
- Specified by:
setProperty
in interface javax.jcr.Node
- Overrides:
setProperty
in class DelegateNodeWrapper
- Throws:
javax.jcr.ValueFormatException
javax.jcr.version.VersionException
javax.jcr.lock.LockException
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.RepositoryException
setProperty
public javax.jcr.Property setProperty(String name,
javax.jcr.Binary value)
throws javax.jcr.ValueFormatException,
javax.jcr.version.VersionException,
javax.jcr.lock.LockException,
javax.jcr.nodetype.ConstraintViolationException,
javax.jcr.RepositoryException
- Specified by:
setProperty
in interface javax.jcr.Node
- Overrides:
setProperty
in class DelegateNodeWrapper
- Throws:
javax.jcr.ValueFormatException
javax.jcr.version.VersionException
javax.jcr.lock.LockException
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.RepositoryException
setProperty
public javax.jcr.Property setProperty(String name,
boolean value)
throws javax.jcr.ValueFormatException,
javax.jcr.version.VersionException,
javax.jcr.lock.LockException,
javax.jcr.nodetype.ConstraintViolationException,
javax.jcr.RepositoryException
- Specified by:
setProperty
in interface javax.jcr.Node
- Overrides:
setProperty
in class DelegateNodeWrapper
- Throws:
javax.jcr.ValueFormatException
javax.jcr.version.VersionException
javax.jcr.lock.LockException
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.RepositoryException
setProperty
public javax.jcr.Property setProperty(String name,
Calendar value)
throws javax.jcr.ValueFormatException,
javax.jcr.version.VersionException,
javax.jcr.lock.LockException,
javax.jcr.nodetype.ConstraintViolationException,
javax.jcr.RepositoryException
- Specified by:
setProperty
in interface javax.jcr.Node
- Overrides:
setProperty
in class DelegateNodeWrapper
- Throws:
javax.jcr.ValueFormatException
javax.jcr.version.VersionException
javax.jcr.lock.LockException
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.RepositoryException
setProperty
public javax.jcr.Property setProperty(String name,
double value)
throws javax.jcr.ValueFormatException,
javax.jcr.version.VersionException,
javax.jcr.lock.LockException,
javax.jcr.nodetype.ConstraintViolationException,
javax.jcr.RepositoryException
- Specified by:
setProperty
in interface javax.jcr.Node
- Overrides:
setProperty
in class DelegateNodeWrapper
- Throws:
javax.jcr.ValueFormatException
javax.jcr.version.VersionException
javax.jcr.lock.LockException
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.RepositoryException
setProperty
public javax.jcr.Property setProperty(String name,
InputStream value)
throws javax.jcr.ValueFormatException,
javax.jcr.version.VersionException,
javax.jcr.lock.LockException,
javax.jcr.nodetype.ConstraintViolationException,
javax.jcr.RepositoryException
- Specified by:
setProperty
in interface javax.jcr.Node
- Overrides:
setProperty
in class DelegateNodeWrapper
- Throws:
javax.jcr.ValueFormatException
javax.jcr.version.VersionException
javax.jcr.lock.LockException
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.RepositoryException
setProperty
public javax.jcr.Property setProperty(String name,
long value)
throws javax.jcr.ValueFormatException,
javax.jcr.version.VersionException,
javax.jcr.lock.LockException,
javax.jcr.nodetype.ConstraintViolationException,
javax.jcr.RepositoryException
- Specified by:
setProperty
in interface javax.jcr.Node
- Overrides:
setProperty
in class DelegateNodeWrapper
- Throws:
javax.jcr.ValueFormatException
javax.jcr.version.VersionException
javax.jcr.lock.LockException
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.RepositoryException
setProperty
public javax.jcr.Property setProperty(String name,
javax.jcr.Node value)
throws javax.jcr.ValueFormatException,
javax.jcr.version.VersionException,
javax.jcr.lock.LockException,
javax.jcr.nodetype.ConstraintViolationException,
javax.jcr.RepositoryException
- Specified by:
setProperty
in interface javax.jcr.Node
- Overrides:
setProperty
in class DelegateNodeWrapper
- Throws:
javax.jcr.ValueFormatException
javax.jcr.version.VersionException
javax.jcr.lock.LockException
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.RepositoryException
setProperty
public javax.jcr.Property setProperty(String name,
String value)
throws javax.jcr.ValueFormatException,
javax.jcr.version.VersionException,
javax.jcr.lock.LockException,
javax.jcr.nodetype.ConstraintViolationException,
javax.jcr.RepositoryException
- Specified by:
setProperty
in interface javax.jcr.Node
- Overrides:
setProperty
in class DelegateNodeWrapper
- Throws:
javax.jcr.ValueFormatException
javax.jcr.version.VersionException
javax.jcr.lock.LockException
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.RepositoryException
setProperty
public javax.jcr.Property setProperty(String name,
String value,
int type)
throws javax.jcr.ValueFormatException,
javax.jcr.version.VersionException,
javax.jcr.lock.LockException,
javax.jcr.nodetype.ConstraintViolationException,
javax.jcr.RepositoryException
- Specified by:
setProperty
in interface javax.jcr.Node
- Overrides:
setProperty
in class DelegateNodeWrapper
- Throws:
javax.jcr.ValueFormatException
javax.jcr.version.VersionException
javax.jcr.lock.LockException
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.RepositoryException
setProperty
public javax.jcr.Property setProperty(String name,
String[] values)
throws javax.jcr.ValueFormatException,
javax.jcr.version.VersionException,
javax.jcr.lock.LockException,
javax.jcr.nodetype.ConstraintViolationException,
javax.jcr.RepositoryException
- Specified by:
setProperty
in interface javax.jcr.Node
- Overrides:
setProperty
in class DelegateNodeWrapper
- Throws:
javax.jcr.ValueFormatException
javax.jcr.version.VersionException
javax.jcr.lock.LockException
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.RepositoryException
setProperty
public javax.jcr.Property setProperty(String name,
String[] values,
int type)
throws javax.jcr.ValueFormatException,
javax.jcr.version.VersionException,
javax.jcr.lock.LockException,
javax.jcr.nodetype.ConstraintViolationException,
javax.jcr.RepositoryException
- Specified by:
setProperty
in interface javax.jcr.Node
- Overrides:
setProperty
in class DelegateNodeWrapper
- Throws:
javax.jcr.ValueFormatException
javax.jcr.version.VersionException
javax.jcr.lock.LockException
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.RepositoryException
setProperty
public javax.jcr.Property setProperty(String name,
javax.jcr.Value value)
throws javax.jcr.ValueFormatException,
javax.jcr.version.VersionException,
javax.jcr.lock.LockException,
javax.jcr.nodetype.ConstraintViolationException,
javax.jcr.RepositoryException
- Specified by:
setProperty
in interface javax.jcr.Node
- Overrides:
setProperty
in class DelegateNodeWrapper
- Throws:
javax.jcr.ValueFormatException
javax.jcr.version.VersionException
javax.jcr.lock.LockException
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.RepositoryException
setProperty
public javax.jcr.Property setProperty(String name,
javax.jcr.Value value,
int type)
throws javax.jcr.ValueFormatException,
javax.jcr.version.VersionException,
javax.jcr.lock.LockException,
javax.jcr.nodetype.ConstraintViolationException,
javax.jcr.RepositoryException
- Specified by:
setProperty
in interface javax.jcr.Node
- Overrides:
setProperty
in class DelegateNodeWrapper
- Throws:
javax.jcr.ValueFormatException
javax.jcr.version.VersionException
javax.jcr.lock.LockException
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.RepositoryException
setProperty
public javax.jcr.Property setProperty(String name,
javax.jcr.Value[] values)
throws javax.jcr.ValueFormatException,
javax.jcr.version.VersionException,
javax.jcr.lock.LockException,
javax.jcr.nodetype.ConstraintViolationException,
javax.jcr.RepositoryException
- Specified by:
setProperty
in interface javax.jcr.Node
- Overrides:
setProperty
in class DelegateNodeWrapper
- Throws:
javax.jcr.ValueFormatException
javax.jcr.version.VersionException
javax.jcr.lock.LockException
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.RepositoryException
setProperty
public javax.jcr.Property setProperty(String name,
javax.jcr.Value[] values,
int type)
throws javax.jcr.ValueFormatException,
javax.jcr.version.VersionException,
javax.jcr.lock.LockException,
javax.jcr.nodetype.ConstraintViolationException,
javax.jcr.RepositoryException
- Specified by:
setProperty
in interface javax.jcr.Node
- Overrides:
setProperty
in class DelegateNodeWrapper
- Throws:
javax.jcr.ValueFormatException
javax.jcr.version.VersionException
javax.jcr.lock.LockException
javax.jcr.nodetype.ConstraintViolationException
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)
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
Copyright © 2003-2013 Magnolia International Ltd.. All Rights Reserved.