info.magnolia.jcr.decoration
Class ContentDecoratorPropertyWrapper<D extends ContentDecorator>

java.lang.Object
  extended by info.magnolia.jcr.wrapper.DelegatePropertyWrapper
      extended by info.magnolia.jcr.decoration.ContentDecoratorPropertyWrapper<D>
Type Parameters:
D - decorator implementation.
All Implemented Interfaces:
javax.jcr.Item, javax.jcr.Property
Direct Known Subclasses:
HTMLEscapingPropertyWrapper, MgnlAuditLoggingContentDecoratorPropertyWrapper

public class ContentDecoratorPropertyWrapper<D extends ContentDecorator>
extends DelegatePropertyWrapper

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


Field Summary
 
Fields inherited from interface javax.jcr.Property
JCR_ACTIVITY, JCR_AUTOCREATED, JCR_BASE_VERSION, JCR_CHILD_VERSION_HISTORY, JCR_CONFIGURATION, JCR_CONTENT, JCR_COPIED_FROM, JCR_CREATED, JCR_CREATED_BY, JCR_CURRENT_LIFECYCLE_STATE, JCR_DATA, JCR_DEFAULT_PRIMARY_TYPE, JCR_DEFAULT_VALUES, JCR_DESCRIPTION, JCR_ENCODING, JCR_FROZEN_MIXIN_TYPES, JCR_FROZEN_PRIMARY_TYPE, JCR_FROZEN_UUID, JCR_HAS_ORDERABLE_CHILD_NODES, JCR_HOST, JCR_ID, JCR_IS_ABSTRACT, JCR_IS_CHECKED_OUT, JCR_IS_MIXIN, JCR_LANGUAGE, JCR_LAST_MODIFIED, JCR_LAST_MODIFIED_BY, JCR_LIFECYCLE_POLICY, JCR_LOCK_IS_DEEP, JCR_LOCK_OWNER, JCR_MANDATORY, JCR_MERGE_FAILED, JCR_MIMETYPE, JCR_MIXIN_TYPES, JCR_MULTIPLE, JCR_NAME, JCR_NODE_TYPE_NAME, JCR_ON_PARENT_VERSION, JCR_PATH, JCR_PORT, JCR_PREDECESSORS, JCR_PRIMARY_ITEM_NAME, JCR_PRIMARY_TYPE, JCR_PROTECTED, JCR_PROTOCOL, JCR_REPOSITORY, JCR_REQUIRED_PRIMARY_TYPES, JCR_REQUIRED_TYPE, JCR_ROOT, JCR_SAME_NAME_SIBLINGS, JCR_STATEMENT, JCR_SUCCESSORS, JCR_SUPERTYPES, JCR_TITLE, JCR_UUID, JCR_VALUE_CONSTRAINTS, JCR_VERSION_HISTORY, JCR_VERSIONABLE_UUID, JCR_WORKSPACE
 
Constructor Summary
ContentDecoratorPropertyWrapper(javax.jcr.Property property, D contentDecorator)
           
 
Method Summary
 boolean equals(Object obj)
           
 javax.jcr.Item getAncestor(int depth)
           
 D getContentDecorator()
           
 javax.jcr.Node getNode()
           
 javax.jcr.Node getParent()
           
 javax.jcr.Property getProperty()
           
 javax.jcr.Session getSession()
           
 int hashCode()
           
protected  javax.jcr.Node wrapNode(javax.jcr.Node node)
           
protected  javax.jcr.Property wrapProperty(javax.jcr.Property property)
           
protected  javax.jcr.Session wrapSession(javax.jcr.Session session)
           
 
Methods inherited from class info.magnolia.jcr.wrapper.DelegatePropertyWrapper
accept, getBinary, getBoolean, getDate, getDecimal, getDefinition, getDepth, getDouble, getLength, getLengths, getLong, getName, getPath, getStream, getString, getType, getValue, getValues, getWrappedProperty, isModified, isMultiple, isNew, isNode, isSame, refresh, remove, save, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setWrappedProperty, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ContentDecoratorPropertyWrapper

public ContentDecoratorPropertyWrapper(javax.jcr.Property property,
                                       D contentDecorator)
Method Detail

getSession

public javax.jcr.Session getSession()
                             throws javax.jcr.RepositoryException
Specified by:
getSession in interface javax.jcr.Item
Overrides:
getSession in class DelegatePropertyWrapper
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 DelegatePropertyWrapper
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 DelegatePropertyWrapper
Throws:
javax.jcr.ItemNotFoundException
javax.jcr.AccessDeniedException
javax.jcr.RepositoryException

getNode

public javax.jcr.Node getNode()
                       throws javax.jcr.ItemNotFoundException,
                              javax.jcr.ValueFormatException,
                              javax.jcr.RepositoryException
Specified by:
getNode in interface javax.jcr.Property
Overrides:
getNode in class DelegatePropertyWrapper
Throws:
javax.jcr.ItemNotFoundException
javax.jcr.ValueFormatException
javax.jcr.RepositoryException

getProperty

public javax.jcr.Property getProperty()
                               throws javax.jcr.ItemNotFoundException,
                                      javax.jcr.ValueFormatException,
                                      javax.jcr.RepositoryException
Specified by:
getProperty in interface javax.jcr.Property
Overrides:
getProperty in class DelegatePropertyWrapper
Throws:
javax.jcr.ItemNotFoundException
javax.jcr.ValueFormatException
javax.jcr.RepositoryException

wrapSession

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

wrapNode

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

wrapProperty

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

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

getContentDecorator

public D getContentDecorator()


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