info.magnolia.jcr.wrapper
Class LazyNodeWrapper

java.lang.Object
  extended by info.magnolia.jcr.wrapper.DelegateNodeWrapper
      extended by info.magnolia.jcr.wrapper.LazyNodeWrapper
All Implemented Interfaces:
Cloneable, javax.jcr.Item, javax.jcr.Node
Direct Known Subclasses:
SystemNodeWrapper

public class LazyNodeWrapper
extends DelegateNodeWrapper

Node wrapper that will reacquire the node if its session is closed.

Version:
$Id$

Field Summary
 
Fields inherited from class info.magnolia.jcr.wrapper.DelegateNodeWrapper
wrapped
 
Fields inherited from interface javax.jcr.Node
JCR_CHILD_NODE_DEFINITION, JCR_CONTENT, JCR_FROZEN_NODE, JCR_PROPERTY_DEFINITION, JCR_ROOT_VERSION, JCR_VERSION_LABELS
 
Constructor Summary
LazyNodeWrapper(javax.jcr.Node node)
           
LazyNodeWrapper(String workspace, String nodeIdentifier)
           
 
Method Summary
protected  javax.jcr.Session getSessionForWrappedNode(String workspace)
           
 javax.jcr.Node getWrappedNode()
           
 void setWrappedNode(javax.jcr.Node node)
           
 
Methods inherited from class info.magnolia.jcr.wrapper.DelegateNodeWrapper
accept, addMixin, addNode, addNode, canAddMixin, cancelMerge, checkin, checkout, clone, deepUnwrap, doneMerge, followLifecycleTransition, getAllowedLifecycleTransistions, getAncestor, getBaseVersion, getCorrespondingNodePath, getDefinition, getDepth, getIdentifier, getIndex, getLock, getMixinNodeTypes, getName, getNode, getNodes, getNodes, getNodes, getParent, getPath, getPrimaryItem, getPrimaryNodeType, getProperties, getProperties, getProperties, getProperty, getReferences, getReferences, getSession, getSharedSet, getUUID, getVersionHistory, getWeakReferences, getWeakReferences, hasNode, hasNodes, hasProperties, hasProperty, holdsLock, initClone, isCheckedOut, isLocked, isModified, isNew, isNode, isNodeType, isSame, lock, merge, orderBefore, refresh, remove, removeMixin, removeShare, removeSharedSet, restore, restore, restore, restoreByLabel, save, setPrimaryType, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, toString, unlock, update
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LazyNodeWrapper

public LazyNodeWrapper(String workspace,
                       String nodeIdentifier)

LazyNodeWrapper

public LazyNodeWrapper(javax.jcr.Node node)
                throws javax.jcr.RepositoryException
Throws:
javax.jcr.RepositoryException
Method Detail

getWrappedNode

public javax.jcr.Node getWrappedNode()
Overrides:
getWrappedNode in class DelegateNodeWrapper

setWrappedNode

public void setWrappedNode(javax.jcr.Node node)
Overrides:
setWrappedNode in class DelegateNodeWrapper

getSessionForWrappedNode

protected javax.jcr.Session getSessionForWrappedNode(String workspace)
                                              throws javax.jcr.RepositoryException
Throws:
javax.jcr.RepositoryException


Copyright © 2003–2014 Magnolia International Ltd.. All rights reserved.