info.magnolia.jcr.wrapper
Class DelegateSessionWrapper
java.lang.Object
info.magnolia.jcr.wrapper.DelegateSessionWrapper
- All Implemented Interfaces:
- javax.jcr.Session
- Direct Known Subclasses:
- ContentDecoratorSessionWrapper, NodeWrappingDelegateSessionWrapper, TrackingSessionWrapper
public abstract class DelegateSessionWrapper
- extends Object
- implements javax.jcr.Session
Wrapper for JCR Session.
- Version:
- $Id$
Field Summary |
protected javax.jcr.Session |
wrapped
|
Fields inherited from interface javax.jcr.Session |
ACTION_ADD_NODE, ACTION_READ, ACTION_REMOVE, ACTION_SET_PROPERTY |
Method Summary |
void |
addLockToken(String lt)
|
void |
checkPermission(String absPath,
String actions)
|
void |
exportDocumentView(String absPath,
ContentHandler contentHandler,
boolean skipBinary,
boolean noRecurse)
|
void |
exportDocumentView(String absPath,
OutputStream out,
boolean skipBinary,
boolean noRecurse)
|
void |
exportSystemView(String absPath,
ContentHandler contentHandler,
boolean skipBinary,
boolean noRecurse)
|
void |
exportSystemView(String absPath,
OutputStream out,
boolean skipBinary,
boolean noRecurse)
|
javax.jcr.security.AccessControlManager |
getAccessControlManager()
|
Object |
getAttribute(String name)
|
String[] |
getAttributeNames()
|
ContentHandler |
getImportContentHandler(String parentAbsPath,
int uuidBehavior)
|
javax.jcr.Item |
getItem(String absPath)
|
String[] |
getLockTokens()
|
String |
getNamespacePrefix(String uri)
|
String[] |
getNamespacePrefixes()
|
String |
getNamespaceURI(String prefix)
|
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.Repository |
getRepository()
|
javax.jcr.retention.RetentionManager |
getRetentionManager()
|
javax.jcr.Node |
getRootNode()
|
String |
getUserID()
|
javax.jcr.ValueFactory |
getValueFactory()
|
javax.jcr.Workspace |
getWorkspace()
|
javax.jcr.Session |
getWrappedSession()
|
boolean |
hasCapability(String methodName,
Object target,
Object[] arguments)
|
boolean |
hasPendingChanges()
|
boolean |
hasPermission(String absPath,
String actions)
|
javax.jcr.Session |
impersonate(javax.jcr.Credentials credentials)
|
void |
importXML(String parentAbsPath,
InputStream in,
int uuidBehavior)
|
boolean |
isLive()
|
boolean |
itemExists(String absPath)
|
void |
logout()
|
void |
move(String srcAbsPath,
String destAbsPath)
|
boolean |
nodeExists(String absPath)
|
boolean |
propertyExists(String absPath)
|
void |
refresh(boolean keepChanges)
|
void |
removeItem(String absPath)
|
void |
removeLockToken(String lt)
|
void |
save()
|
void |
setNamespacePrefix(String prefix,
String uri)
|
void |
setWrappedSession(javax.jcr.Session session)
|
String |
toString()
|
javax.jcr.Session |
unwrap()
|
wrapped
protected javax.jcr.Session wrapped
DelegateSessionWrapper
protected DelegateSessionWrapper(javax.jcr.Session wrapped)
getWrappedSession
public javax.jcr.Session getWrappedSession()
setWrappedSession
public void setWrappedSession(javax.jcr.Session session)
toString
public String toString()
- Overrides:
toString
in class Object
addLockToken
public void addLockToken(String lt)
- Specified by:
addLockToken
in interface javax.jcr.Session
checkPermission
public void checkPermission(String absPath,
String actions)
throws AccessControlException,
javax.jcr.RepositoryException
- Specified by:
checkPermission
in interface javax.jcr.Session
- Throws:
AccessControlException
javax.jcr.RepositoryException
exportDocumentView
public void exportDocumentView(String absPath,
ContentHandler contentHandler,
boolean skipBinary,
boolean noRecurse)
throws javax.jcr.PathNotFoundException,
SAXException,
javax.jcr.RepositoryException
- Specified by:
exportDocumentView
in interface javax.jcr.Session
- Throws:
javax.jcr.PathNotFoundException
SAXException
javax.jcr.RepositoryException
exportDocumentView
public void exportDocumentView(String absPath,
OutputStream out,
boolean skipBinary,
boolean noRecurse)
throws IOException,
javax.jcr.PathNotFoundException,
javax.jcr.RepositoryException
- Specified by:
exportDocumentView
in interface javax.jcr.Session
- Throws:
IOException
javax.jcr.PathNotFoundException
javax.jcr.RepositoryException
exportSystemView
public void exportSystemView(String absPath,
ContentHandler contentHandler,
boolean skipBinary,
boolean noRecurse)
throws javax.jcr.PathNotFoundException,
SAXException,
javax.jcr.RepositoryException
- Specified by:
exportSystemView
in interface javax.jcr.Session
- Throws:
javax.jcr.PathNotFoundException
SAXException
javax.jcr.RepositoryException
exportSystemView
public void exportSystemView(String absPath,
OutputStream out,
boolean skipBinary,
boolean noRecurse)
throws IOException,
javax.jcr.PathNotFoundException,
javax.jcr.RepositoryException
- Specified by:
exportSystemView
in interface javax.jcr.Session
- Throws:
IOException
javax.jcr.PathNotFoundException
javax.jcr.RepositoryException
getAccessControlManager
public javax.jcr.security.AccessControlManager getAccessControlManager()
throws javax.jcr.UnsupportedRepositoryOperationException,
javax.jcr.RepositoryException
- Specified by:
getAccessControlManager
in interface javax.jcr.Session
- Throws:
javax.jcr.UnsupportedRepositoryOperationException
javax.jcr.RepositoryException
getAttribute
public Object getAttribute(String name)
- Specified by:
getAttribute
in interface javax.jcr.Session
getAttributeNames
public String[] getAttributeNames()
- Specified by:
getAttributeNames
in interface javax.jcr.Session
getImportContentHandler
public ContentHandler getImportContentHandler(String parentAbsPath,
int uuidBehavior)
throws javax.jcr.PathNotFoundException,
javax.jcr.nodetype.ConstraintViolationException,
javax.jcr.version.VersionException,
javax.jcr.lock.LockException,
javax.jcr.RepositoryException
- Specified by:
getImportContentHandler
in interface javax.jcr.Session
- Throws:
javax.jcr.PathNotFoundException
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.version.VersionException
javax.jcr.lock.LockException
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
- Throws:
javax.jcr.PathNotFoundException
javax.jcr.RepositoryException
getLockTokens
public String[] getLockTokens()
- Specified by:
getLockTokens
in interface javax.jcr.Session
getNamespacePrefix
public String getNamespacePrefix(String uri)
throws javax.jcr.NamespaceException,
javax.jcr.RepositoryException
- Specified by:
getNamespacePrefix
in interface javax.jcr.Session
- Throws:
javax.jcr.NamespaceException
javax.jcr.RepositoryException
getNamespacePrefixes
public String[] getNamespacePrefixes()
throws javax.jcr.RepositoryException
- Specified by:
getNamespacePrefixes
in interface javax.jcr.Session
- Throws:
javax.jcr.RepositoryException
getNamespaceURI
public String getNamespaceURI(String prefix)
throws javax.jcr.NamespaceException,
javax.jcr.RepositoryException
- Specified by:
getNamespaceURI
in interface javax.jcr.Session
- Throws:
javax.jcr.NamespaceException
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
- 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
- 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
- Throws:
javax.jcr.ItemNotFoundException
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
- Throws:
javax.jcr.PathNotFoundException
javax.jcr.RepositoryException
getRepository
public javax.jcr.Repository getRepository()
- Specified by:
getRepository
in interface javax.jcr.Session
getRetentionManager
public javax.jcr.retention.RetentionManager getRetentionManager()
throws javax.jcr.UnsupportedRepositoryOperationException,
javax.jcr.RepositoryException
- Specified by:
getRetentionManager
in interface javax.jcr.Session
- Throws:
javax.jcr.UnsupportedRepositoryOperationException
javax.jcr.RepositoryException
getRootNode
public javax.jcr.Node getRootNode()
throws javax.jcr.RepositoryException
- Specified by:
getRootNode
in interface javax.jcr.Session
- Throws:
javax.jcr.RepositoryException
getUserID
public String getUserID()
- Specified by:
getUserID
in interface javax.jcr.Session
getValueFactory
public javax.jcr.ValueFactory getValueFactory()
throws javax.jcr.UnsupportedRepositoryOperationException,
javax.jcr.RepositoryException
- Specified by:
getValueFactory
in interface javax.jcr.Session
- Throws:
javax.jcr.UnsupportedRepositoryOperationException
javax.jcr.RepositoryException
getWorkspace
public javax.jcr.Workspace getWorkspace()
- Specified by:
getWorkspace
in interface javax.jcr.Session
hasCapability
public boolean hasCapability(String methodName,
Object target,
Object[] arguments)
throws javax.jcr.RepositoryException
- Specified by:
hasCapability
in interface javax.jcr.Session
- Throws:
javax.jcr.RepositoryException
hasPendingChanges
public boolean hasPendingChanges()
throws javax.jcr.RepositoryException
- Specified by:
hasPendingChanges
in interface javax.jcr.Session
- Throws:
javax.jcr.RepositoryException
hasPermission
public boolean hasPermission(String absPath,
String actions)
throws javax.jcr.RepositoryException
- Specified by:
hasPermission
in interface javax.jcr.Session
- Throws:
javax.jcr.RepositoryException
impersonate
public javax.jcr.Session impersonate(javax.jcr.Credentials credentials)
throws javax.jcr.LoginException,
javax.jcr.RepositoryException
- Specified by:
impersonate
in interface javax.jcr.Session
- Throws:
javax.jcr.LoginException
javax.jcr.RepositoryException
importXML
public void importXML(String parentAbsPath,
InputStream in,
int uuidBehavior)
throws IOException,
javax.jcr.PathNotFoundException,
javax.jcr.ItemExistsException,
javax.jcr.nodetype.ConstraintViolationException,
javax.jcr.version.VersionException,
javax.jcr.InvalidSerializedDataException,
javax.jcr.lock.LockException,
javax.jcr.RepositoryException
- Specified by:
importXML
in interface javax.jcr.Session
- Throws:
IOException
javax.jcr.PathNotFoundException
javax.jcr.ItemExistsException
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.version.VersionException
javax.jcr.InvalidSerializedDataException
javax.jcr.lock.LockException
javax.jcr.RepositoryException
isLive
public boolean isLive()
- Specified by:
isLive
in interface javax.jcr.Session
itemExists
public boolean itemExists(String absPath)
throws javax.jcr.RepositoryException
- Specified by:
itemExists
in interface javax.jcr.Session
- Throws:
javax.jcr.RepositoryException
logout
public void logout()
- Specified by:
logout
in interface javax.jcr.Session
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
- Throws:
javax.jcr.ItemExistsException
javax.jcr.PathNotFoundException
javax.jcr.version.VersionException
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.lock.LockException
javax.jcr.RepositoryException
nodeExists
public boolean nodeExists(String absPath)
throws javax.jcr.RepositoryException
- Specified by:
nodeExists
in interface javax.jcr.Session
- Throws:
javax.jcr.RepositoryException
propertyExists
public boolean propertyExists(String absPath)
throws javax.jcr.RepositoryException
- Specified by:
propertyExists
in interface javax.jcr.Session
- Throws:
javax.jcr.RepositoryException
refresh
public void refresh(boolean keepChanges)
throws javax.jcr.RepositoryException
- Specified by:
refresh
in interface javax.jcr.Session
- Throws:
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
- Throws:
javax.jcr.version.VersionException
javax.jcr.lock.LockException
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.AccessDeniedException
javax.jcr.RepositoryException
removeLockToken
public void removeLockToken(String lt)
- Specified by:
removeLockToken
in interface javax.jcr.Session
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
- 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
setNamespacePrefix
public void setNamespacePrefix(String prefix,
String uri)
throws javax.jcr.NamespaceException,
javax.jcr.RepositoryException
- Specified by:
setNamespacePrefix
in interface javax.jcr.Session
- Throws:
javax.jcr.NamespaceException
javax.jcr.RepositoryException
unwrap
public javax.jcr.Session unwrap()
- Returns:
- the unwrapped proper JCRSession
Copyright © 2003–2014 Magnolia International Ltd.. All rights reserved.