info.magnolia.cms.util
Class LazyNodeDataWrapper

java.lang.Object
  extended by info.magnolia.cms.util.NodeDataWrapper
      extended by info.magnolia.cms.util.LazyNodeDataWrapper
All Implemented Interfaces:
NodeData, java.io.Serializable, java.lang.Cloneable
Direct Known Subclasses:
SystemNodeDataWrapper

public class LazyNodeDataWrapper
extends NodeDataWrapper
implements java.io.Serializable

Stores a path and will re-fetch the node data in getWrappedNodeData() if the session is closed.

Version:
$Id$
Author:
ochytil
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface info.magnolia.cms.core.NodeData
MULTIVALUE_FALSE, MULTIVALUE_TRUE, MULTIVALUE_UNDEFINED
 
Constructor Summary
LazyNodeDataWrapper(NodeData nodeData)
           
 
Method Summary
 HierarchyManager getHierarchyManager()
           
protected  java.lang.String getPath()
           
protected  java.lang.String getRepository()
           
 NodeData getWrappedNodeData()
           
protected  void setPath(java.lang.String uuid)
           
protected  void setRepository(java.lang.String repository)
           
protected  Content wrap(Content content)
          Default implementation of content wrapping for cases where NodeData needs to return content.
 
Methods inherited from class info.magnolia.cms.util.NodeDataWrapper
delete, getAttribute, getAttributeNames, getBoolean, getContentLength, getDate, getDouble, getHandle, getJCRProperty, getLong, getName, getParent, getReferencedContent, getReferencedContent, getStream, getString, getString, getType, getValue, getValues, isExist, isGranted, isMultiValue, refresh, save, setAttribute, setAttribute, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setWrappedNodeData, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LazyNodeDataWrapper

public LazyNodeDataWrapper(NodeData nodeData)
Method Detail

getWrappedNodeData

public NodeData getWrappedNodeData()
Overrides:
getWrappedNodeData in class NodeDataWrapper

getHierarchyManager

public HierarchyManager getHierarchyManager()
Specified by:
getHierarchyManager in interface NodeData
Overrides:
getHierarchyManager in class NodeDataWrapper

setPath

protected void setPath(java.lang.String uuid)

getPath

protected java.lang.String getPath()

setRepository

protected void setRepository(java.lang.String repository)

getRepository

protected java.lang.String getRepository()

wrap

protected Content wrap(Content content)
Description copied from class: NodeDataWrapper
Default implementation of content wrapping for cases where NodeData needs to return content.

Overrides:
wrap in class NodeDataWrapper
Returns:


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