info.magnolia.cms.util
Class LazyContentWrapper
java.lang.Object
info.magnolia.cms.core.ContentHandler
info.magnolia.cms.core.AbstractContent
info.magnolia.cms.util.ContentWrapper
info.magnolia.cms.util.LazyContentWrapper
- All Implemented Interfaces:
- Content, Serializable, Cloneable
- Direct Known Subclasses:
- SystemContentWrapper
public class LazyContentWrapper
- extends ContentWrapper
- implements Serializable
Stores an uuid and will re-fetch the node in getWrappedContent()
if the session is closed.
- See Also:
- Serialized Form
Methods inherited from class info.magnolia.cms.util.ContentWrapper |
addMixin, addVersion, addVersion, createContent, delete, deleteNodeData, getAllVersions, getAncestor, getAncestors, getBaseVersion, getChildByName, getChildren, getContent, getHandle, getIndex, getItemType, getJCRNode, getLevel, getLock, getMetaData, getMixinNodeTypes, getName, getNodeDataCollection, getNodeType, getNodeTypeName, getParent, getTemplate, getTitle, getUUID, getVersionedContent, getVersionedContent, getVersionHistory, getWorkspace, hasContent, hasMetaData, hasMixin, holdsLock, isGranted, isLocked, isModified, isNodeData, isNodeType, lock, lock, newNodeDataInstance, orderBefore, refresh, removeMixin, removeVersionHistory, restore, restore, restore, restoreByLabel, save, setWrappedContent, toString, unlock, updateMetaData, wrap, wrapContentNodes, wrapNodeDatas |
Methods inherited from class info.magnolia.cms.core.AbstractContent |
createContent, createContent, createNodeData, createNodeData, createNodeData, createNodeData, createNodeData, delete, getBinaryNodeDatas, getChildren, getChildren, getChildren, getChildren, getChildren, getChildren, getNodeData, getNodeDataCollection, hasChildren, hasChildren, hasNodeData, setNodeData, setNodeData, setNodeData, setNodeData, setNodeData, setNodeData, setNodeData, setNodeData, setNodeData, setNodeData |
LazyContentWrapper
public LazyContentWrapper(String repository,
String uuid)
LazyContentWrapper
public LazyContentWrapper(Content node)
getWrappedContent
public Content getWrappedContent()
- Overrides:
getWrappedContent
in class ContentWrapper
getHierarchyManager
public HierarchyManager getHierarchyManager()
- Description copied from class:
ContentHandler
- Get hierarchy manager if previously set for this object.
- Specified by:
getHierarchyManager
in interface Content
- Overrides:
getHierarchyManager
in class ContentWrapper
wrap
public NodeData wrap(NodeData nodeData)
- Description copied from class:
ContentWrapper
- Override if a wrapper wants to wrap returned node data objects. The default implementation returns the original value.
- Overrides:
wrap
in class ContentWrapper
setUuid
protected void setUuid(String uuid)
getUuid
protected String getUuid()
setRepository
protected void setRepository(String repository)
getRepository
protected String getRepository()
Copyright © 2003-2014 Magnolia International Ltd.. All Rights Reserved.