info.magnolia.jcr.wrapper
Class MgnlPropertySettingContentDecorator
java.lang.Object
info.magnolia.jcr.decoration.AbstractContentDecorator
info.magnolia.jcr.wrapper.PropertyAndChildWrappingContentDecorator
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).
Field Summary |
protected List<info.magnolia.jcr.wrapper.MgnlPropertySettingContentDecorator.DirtyOp> |
dirtyOps
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
dirtyOps
protected List<info.magnolia.jcr.wrapper.MgnlPropertySettingContentDecorator.DirtyOp> dirtyOps
MgnlPropertySettingContentDecorator
public MgnlPropertySettingContentDecorator()
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.