info.magnolia.jcr.wrapper
Class MgnlPropertySettingContentDecorator.MgnlPropertySettingSessionWrapper

java.lang.Object
  extended by info.magnolia.jcr.wrapper.DelegateSessionWrapper
      extended by info.magnolia.jcr.decoration.ContentDecoratorSessionWrapper<MgnlPropertySettingContentDecorator>
          extended by info.magnolia.jcr.wrapper.MgnlPropertySettingContentDecorator.MgnlPropertySettingSessionWrapper
All Implemented Interfaces:
Cloneable, javax.jcr.Session
Direct Known Subclasses:
MgnlPropertySettingContentDecorator.LastUpdateSessionWrapper
Enclosing class:
MgnlPropertySettingContentDecorator

public class MgnlPropertySettingContentDecorator.MgnlPropertySettingSessionWrapper
extends ContentDecoratorSessionWrapper<MgnlPropertySettingContentDecorator>
implements javax.jcr.Session

Updates all specific properties upon certain actions. Right now it's just updating the destination parent page or content mgnl:lastModified property on move.


Field Summary
 
Fields inherited from class info.magnolia.jcr.wrapper.DelegateSessionWrapper
wrapped
 
Fields inherited from interface javax.jcr.Session
ACTION_ADD_NODE, ACTION_READ, ACTION_REMOVE, ACTION_SET_PROPERTY
 
Constructor Summary
MgnlPropertySettingContentDecorator.MgnlPropertySettingSessionWrapper(javax.jcr.Session session, MgnlPropertySettingContentDecorator contentDecorator)
           
 
Method Summary
protected  void applyPendingChanges(javax.jcr.Session session)
           
 void move(String srcAbsPath, String destAbsPath)
           
 void save()
           
 
Methods inherited from class info.magnolia.jcr.decoration.ContentDecoratorSessionWrapper
getContentDecorator, getItem, getNode, getNodeByIdentifier, getNodeByUUID, getProperty, getRootNode, getWorkspace, itemExists, nodeExists, propertyExists, removeItem, wrapNode, wrapProperty, wrapWorkspace
 
Methods inherited from class info.magnolia.jcr.wrapper.DelegateSessionWrapper
addLockToken, checkPermission, clone, deepUnwrap, equals, exportDocumentView, exportDocumentView, exportSystemView, exportSystemView, getAccessControlManager, getAttribute, getAttributeNames, getImportContentHandler, getLockTokens, getNamespacePrefix, getNamespacePrefixes, getNamespaceURI, getRepository, getRetentionManager, getUserID, getValueFactory, getWrappedSession, hasCapability, hasPendingChanges, hasPermission, impersonate, importXML, initClone, isLive, logout, refresh, removeLockToken, setNamespacePrefix, setWrappedSession, toString, unwrap
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.jcr.Session
addLockToken, checkPermission, exportDocumentView, exportDocumentView, exportSystemView, exportSystemView, getAccessControlManager, getAttribute, getAttributeNames, getImportContentHandler, getItem, getLockTokens, getNamespacePrefix, getNamespacePrefixes, getNamespaceURI, getNode, getNodeByIdentifier, getNodeByUUID, getProperty, getRepository, getRetentionManager, getRootNode, getUserID, getValueFactory, getWorkspace, hasCapability, hasPendingChanges, hasPermission, impersonate, importXML, isLive, itemExists, logout, nodeExists, propertyExists, refresh, removeItem, removeLockToken, setNamespacePrefix
 

Constructor Detail

MgnlPropertySettingContentDecorator.MgnlPropertySettingSessionWrapper

public MgnlPropertySettingContentDecorator.MgnlPropertySettingSessionWrapper(javax.jcr.Session session,
                                                                             MgnlPropertySettingContentDecorator contentDecorator)
Method Detail

move

public void move(String srcAbsPath,
                 String destAbsPath)
          throws javax.jcr.ItemExistsException,
                 javax.jcr.PathNotFoundException,
                 javax.jcr.version.VersionException,
                 javax.jcr.nodetype.ConstraintViolationException,
                 javax.jcr.lock.LockException,
                 javax.jcr.RepositoryException
Specified by:
move in interface javax.jcr.Session
Overrides:
move in class ContentDecoratorSessionWrapper<MgnlPropertySettingContentDecorator>
Throws:
javax.jcr.ItemExistsException
javax.jcr.PathNotFoundException
javax.jcr.version.VersionException
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.lock.LockException
javax.jcr.RepositoryException

save

public void save()
          throws javax.jcr.AccessDeniedException,
                 javax.jcr.ItemExistsException,
                 javax.jcr.ReferentialIntegrityException,
                 javax.jcr.nodetype.ConstraintViolationException,
                 javax.jcr.InvalidItemStateException,
                 javax.jcr.version.VersionException,
                 javax.jcr.lock.LockException,
                 javax.jcr.nodetype.NoSuchNodeTypeException,
                 javax.jcr.RepositoryException
Specified by:
save in interface javax.jcr.Session
Overrides:
save in class DelegateSessionWrapper
Throws:
javax.jcr.AccessDeniedException
javax.jcr.ItemExistsException
javax.jcr.ReferentialIntegrityException
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.InvalidItemStateException
javax.jcr.version.VersionException
javax.jcr.lock.LockException
javax.jcr.nodetype.NoSuchNodeTypeException
javax.jcr.RepositoryException

applyPendingChanges

protected void applyPendingChanges(javax.jcr.Session session)
                            throws javax.jcr.RepositoryException,
                                   javax.jcr.PathNotFoundException
Throws:
javax.jcr.RepositoryException
javax.jcr.PathNotFoundException


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