info.magnolia.jcr.decoration
Class ContentDecoratorSessionWrapper<D extends ContentDecorator>

java.lang.Object
  extended by info.magnolia.jcr.wrapper.DelegateSessionWrapper
      extended by info.magnolia.jcr.decoration.ContentDecoratorSessionWrapper<D>
Type Parameters:
D - implementation of decorator.
All Implemented Interfaces:
javax.jcr.Session
Direct Known Subclasses:
ChannelVisibilitySessionWrapper, MgnlAuditLoggingContentDecoratorSessionWrapper

public class ContentDecoratorSessionWrapper<D extends ContentDecorator>
extends DelegateSessionWrapper

Session wrapper that applies wrappers and filtering by delegating to a ContentDecorator.


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
ContentDecoratorSessionWrapper(javax.jcr.Session session, D contentDecorator)
           
 
Method Summary
 D getContentDecorator()
           
 javax.jcr.Item getItem(String absPath)
           
 javax.jcr.Node getNode(String absPath)
           
 javax.jcr.Node getNodeByIdentifier(String id)
           
 javax.jcr.Node getNodeByUUID(String uuid)
           
 javax.jcr.Property getProperty(String absPath)
           
 javax.jcr.Node getRootNode()
           
 javax.jcr.Workspace getWorkspace()
           
 boolean itemExists(String absPath)
           
 void move(String srcAbsPath, String destAbsPath)
           
 boolean nodeExists(String absPath)
           
 boolean propertyExists(String absPath)
           
 void removeItem(String absPath)
           
protected  javax.jcr.Node wrapNode(javax.jcr.Node node)
           
protected  javax.jcr.Property wrapProperty(javax.jcr.Property property)
           
protected  javax.jcr.Workspace wrapWorkspace(javax.jcr.Workspace workspace)
           
 
Methods inherited from class info.magnolia.jcr.wrapper.DelegateSessionWrapper
addLockToken, checkPermission, exportDocumentView, exportDocumentView, exportSystemView, exportSystemView, getAccessControlManager, getAttribute, getAttributeNames, getImportContentHandler, getLockTokens, getNamespacePrefix, getNamespacePrefixes, getNamespaceURI, getRepository, getRetentionManager, getUserID, getValueFactory, getWrappedSession, hasCapability, hasPendingChanges, hasPermission, impersonate, importXML, isLive, logout, refresh, removeLockToken, save, setNamespacePrefix, setWrappedSession, toString, unwrap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ContentDecoratorSessionWrapper

public ContentDecoratorSessionWrapper(javax.jcr.Session session,
                                      D contentDecorator)
Method Detail

getContentDecorator

public D getContentDecorator()

itemExists

public boolean itemExists(String absPath)
                   throws javax.jcr.RepositoryException
Specified by:
itemExists in interface javax.jcr.Session
Overrides:
itemExists in class DelegateSessionWrapper
Throws:
javax.jcr.RepositoryException

getItem

public javax.jcr.Item getItem(String absPath)
                       throws javax.jcr.PathNotFoundException,
                              javax.jcr.RepositoryException
Specified by:
getItem in interface javax.jcr.Session
Overrides:
getItem in class DelegateSessionWrapper
Throws:
javax.jcr.PathNotFoundException
javax.jcr.RepositoryException

removeItem

public void removeItem(String absPath)
                throws javax.jcr.version.VersionException,
                       javax.jcr.lock.LockException,
                       javax.jcr.nodetype.ConstraintViolationException,
                       javax.jcr.AccessDeniedException,
                       javax.jcr.RepositoryException
Specified by:
removeItem in interface javax.jcr.Session
Overrides:
removeItem in class DelegateSessionWrapper
Throws:
javax.jcr.version.VersionException
javax.jcr.lock.LockException
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.AccessDeniedException
javax.jcr.RepositoryException

getRootNode

public javax.jcr.Node getRootNode()
                           throws javax.jcr.RepositoryException
Specified by:
getRootNode in interface javax.jcr.Session
Overrides:
getRootNode in class DelegateSessionWrapper
Throws:
javax.jcr.RepositoryException

nodeExists

public boolean nodeExists(String absPath)
                   throws javax.jcr.RepositoryException
Specified by:
nodeExists in interface javax.jcr.Session
Overrides:
nodeExists in class DelegateSessionWrapper
Throws:
javax.jcr.RepositoryException

getNode

public javax.jcr.Node getNode(String absPath)
                       throws javax.jcr.PathNotFoundException,
                              javax.jcr.RepositoryException
Specified by:
getNode in interface javax.jcr.Session
Overrides:
getNode in class DelegateSessionWrapper
Throws:
javax.jcr.PathNotFoundException
javax.jcr.RepositoryException

getNodeByIdentifier

public javax.jcr.Node getNodeByIdentifier(String id)
                                   throws javax.jcr.ItemNotFoundException,
                                          javax.jcr.RepositoryException
Specified by:
getNodeByIdentifier in interface javax.jcr.Session
Overrides:
getNodeByIdentifier in class DelegateSessionWrapper
Throws:
javax.jcr.ItemNotFoundException
javax.jcr.RepositoryException

getNodeByUUID

public javax.jcr.Node getNodeByUUID(String uuid)
                             throws javax.jcr.ItemNotFoundException,
                                    javax.jcr.RepositoryException
Specified by:
getNodeByUUID in interface javax.jcr.Session
Overrides:
getNodeByUUID in class DelegateSessionWrapper
Throws:
javax.jcr.ItemNotFoundException
javax.jcr.RepositoryException

propertyExists

public boolean propertyExists(String absPath)
                       throws javax.jcr.RepositoryException
Specified by:
propertyExists in interface javax.jcr.Session
Overrides:
propertyExists in class DelegateSessionWrapper
Throws:
javax.jcr.RepositoryException

getProperty

public javax.jcr.Property getProperty(String absPath)
                               throws javax.jcr.PathNotFoundException,
                                      javax.jcr.RepositoryException
Specified by:
getProperty in interface javax.jcr.Session
Overrides:
getProperty in class DelegateSessionWrapper
Throws:
javax.jcr.PathNotFoundException
javax.jcr.RepositoryException

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 DelegateSessionWrapper
Throws:
javax.jcr.ItemExistsException
javax.jcr.PathNotFoundException
javax.jcr.version.VersionException
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.lock.LockException
javax.jcr.RepositoryException

getWorkspace

public javax.jcr.Workspace getWorkspace()
Specified by:
getWorkspace in interface javax.jcr.Session
Overrides:
getWorkspace in class DelegateSessionWrapper

wrapWorkspace

protected javax.jcr.Workspace wrapWorkspace(javax.jcr.Workspace workspace)

wrapNode

protected javax.jcr.Node wrapNode(javax.jcr.Node node)

wrapProperty

protected javax.jcr.Property wrapProperty(javax.jcr.Property property)


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