public class SimpleEqualityContentWrapper
extends info.magnolia.cms.util.ContentWrapper
ContentWrapper
which simply defines equals() and hashCode() methods
based on the node's path and HierarchyManager name.
It also caches the handle of the node, so that equals() and hashCode()
can be used even if the node's JCR session was terminated.Constructor and Description |
---|
SimpleEqualityContentWrapper(info.magnolia.cms.core.Content node) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getHandle() |
int |
hashCode() |
addMixin, addVersion, addVersion, createContent, delete, deleteNodeData, getAllVersions, getAncestor, getAncestors, getBaseVersion, getChildByName, getChildren, getContent, getHierarchyManager, getIndex, getItemType, getJCRNode, getLevel, getLock, getMetaData, getMixinNodeTypes, getName, getNodeDataCollection, getNodeType, getNodeTypeName, getParent, getTemplate, getTitle, getUUID, getVersionedContent, getVersionedContent, getVersionHistory, getWorkspace, getWrappedContent, 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, wrap, wrapContentNodes, wrapNodeDatas
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
clone, getAccessManager, setAccessManager
public SimpleEqualityContentWrapper(info.magnolia.cms.core.Content node)
public String getHandle()
getHandle
in interface info.magnolia.cms.core.Content
getHandle
in class info.magnolia.cms.util.ContentWrapper
Copyright © 2016 Magnolia International Ltd.. All rights reserved.