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, Serializable, Cloneable
Direct Known Subclasses:
SystemNodeDataWrapper

public class LazyNodeDataWrapper
extends NodeDataWrapper
implements 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  String getPath()
           
protected  String getRepository()
           
 NodeData getWrappedNodeData()
           
protected  void setPath(String uuid)
           
protected  void setRepository(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(String uuid)

getPath

protected String getPath()

setRepository

protected void setRepository(String repository)

getRepository

protected 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-2013 Magnolia International Ltd.. All Rights Reserved.