info.magnolia.jcr.decoration
Class ContentDecoratorSessionWrapper<D extends ContentDecorator>
java.lang.Object
info.magnolia.jcr.wrapper.DelegateSessionWrapper
info.magnolia.jcr.decoration.ContentDecoratorSessionWrapper<D>
- Type Parameters:
D
- implementation of decorator.
- All Implemented Interfaces:
- Cloneable, javax.jcr.Session
- Direct Known Subclasses:
- ChannelVisibilitySessionWrapper, LastUpdateContentDecorator.LastUpdateSessionWrapper, MgnlAuditLoggingContentDecoratorSessionWrapper
public class ContentDecoratorSessionWrapper<D extends ContentDecorator>
- extends DelegateSessionWrapper
Session wrapper that applies wrappers and filtering by delegating to a ContentDecorator
.
Fields inherited from interface javax.jcr.Session |
ACTION_ADD_NODE, ACTION_READ, ACTION_REMOVE, ACTION_SET_PROPERTY |
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, save, setNamespacePrefix, setWrappedSession, toString, unwrap |
ContentDecoratorSessionWrapper
public ContentDecoratorSessionWrapper(javax.jcr.Session session,
D contentDecorator)
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.