info.magnolia.jcr.wrapper
Class LastUpdateContentDecorator

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

public class LastUpdateContentDecorator
extends PropertyAndChildWrappingContentDecorator
implements ContentDecorator

Decorator to keep Last Update Data (LUD) status of content up to date.


Nested Class Summary
 class LastUpdateContentDecorator.LastUpdatePropertyWrapper
          Updates parent page or parent content mgnl:lastUpdated property on modification.
 class LastUpdateContentDecorator.LastUpdateSessionWrapper
          Updates destination parent page or content mgnl:lastModified property on move.
 class LastUpdateContentDecorator.LastUpdateWorkspaceWrapper
          Updates destination parent page or parent content mgnl:lastUpdated property on move or copy operations.
 
Field Summary
protected  boolean isSysSessionDirty
           
 
Constructor Summary
LastUpdateContentDecorator()
           
 
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

isSysSessionDirty

protected boolean isSysSessionDirty
Constructor Detail

LastUpdateContentDecorator

public LastUpdateContentDecorator()
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-2013 Magnolia International Ltd.. All Rights Reserved.