info.magnolia.jcr.wrapper
Class MgnlPropertySettingContentDecorator

java.lang.Object
  extended by info.magnolia.jcr.decoration.AbstractContentDecorator
      extended by info.magnolia.jcr.wrapper.PropertyAndChildWrappingContentDecorator
          extended by info.magnolia.jcr.wrapper.MgnlPropertySettingContentDecorator
All Implemented Interfaces:
ContentDecorator
Direct Known Subclasses:
LastUpdateContentDecorator

public class MgnlPropertySettingContentDecorator
extends PropertyAndChildWrappingContentDecorator
implements ContentDecorator

Decorator to set appropriate Mgnl specific properties (e.g. mgnl:lastModification, mgnl:created). Caution: upon workspace clone the wrapper does not update the lastModification date in order to preserve contract of clone (make an identical copy).


Nested Class Summary
 class MgnlPropertySettingContentDecorator.LastUpdatePropertyWrapper
          Updates parent page or parent content mgnl:lastUpdated property on modification.
 class MgnlPropertySettingContentDecorator.LastUpdateSessionWrapper
          Deprecated. since 5.2.2 - pls use MgnlPropertySettingSessionWrapper instead.
 class MgnlPropertySettingContentDecorator.LastUpdateWorkspaceWrapper
          Deprecated. since 5.2.2 - pls use MgnlPropertySettingWorkspaceWrapper instead.
 class MgnlPropertySettingContentDecorator.MgnlPropertySettingSessionWrapper
          Updates all specific properties upon certain actions.
 class MgnlPropertySettingContentDecorator.MgnlPropertySettingWorkspaceWrapper
          Updates destination parent page or parent content mgnl:lastUpdated property on move or copy operations.
 
Field Summary
protected  List<info.magnolia.jcr.wrapper.MgnlPropertySettingContentDecorator.DirtyOp> dirtyOps
           
 
Constructor Summary
MgnlPropertySettingContentDecorator()
           
 
Method Summary
protected  boolean shouldIgnoreUpdate(String propertyName)
           
 javax.jcr.Node wrapNode(javax.jcr.Node node)
           
 javax.jcr.Property wrapProperty(javax.jcr.Property property)
           
 javax.jcr.Session wrapSession(javax.jcr.Session session)
           
 javax.jcr.Workspace wrapWorkspace(javax.jcr.Workspace workspace)
           
 
Methods inherited from class info.magnolia.jcr.wrapper.PropertyAndChildWrappingContentDecorator
isMultipleWrapEnabled, wrapPropertyIterator
 
Methods inherited from class info.magnolia.jcr.decoration.AbstractContentDecorator
evaluateNode, evaluateProperty, wrapNodeIterator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface info.magnolia.jcr.decoration.ContentDecorator
evaluateNode, evaluateProperty, isMultipleWrapEnabled, wrapNodeIterator, wrapPropertyIterator
 

Field Detail

dirtyOps

protected List<info.magnolia.jcr.wrapper.MgnlPropertySettingContentDecorator.DirtyOp> dirtyOps
Constructor Detail

MgnlPropertySettingContentDecorator

public MgnlPropertySettingContentDecorator()
Method Detail

wrapSession

public javax.jcr.Session wrapSession(javax.jcr.Session session)
Specified by:
wrapSession in interface ContentDecorator
Overrides:
wrapSession in class AbstractContentDecorator

wrapWorkspace

public javax.jcr.Workspace wrapWorkspace(javax.jcr.Workspace workspace)
Specified by:
wrapWorkspace in interface ContentDecorator
Overrides:
wrapWorkspace in class AbstractContentDecorator

wrapNode

public javax.jcr.Node wrapNode(javax.jcr.Node node)
Specified by:
wrapNode in interface ContentDecorator
Overrides:
wrapNode in class AbstractContentDecorator

wrapProperty

public javax.jcr.Property wrapProperty(javax.jcr.Property property)
Specified by:
wrapProperty in interface ContentDecorator
Overrides:
wrapProperty in class AbstractContentDecorator

shouldIgnoreUpdate

protected boolean shouldIgnoreUpdate(String propertyName)
Returns:
whether a modification to the property with the provided name should trigger an update of the last modification or not.


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