public abstract class DelegateSessionWrapper extends Object implements javax.jcr.Session, Cloneable
Modifier and Type | Field and Description |
---|---|
protected javax.jcr.Session |
wrapped |
Modifier | Constructor and Description |
---|---|
protected |
DelegateSessionWrapper(javax.jcr.Session wrapped) |
Modifier and Type | Method and Description |
---|---|
void |
addLockToken(String lt) |
void |
checkPermission(String absPath,
String actions) |
protected Object |
clone() |
javax.jcr.Session |
deepUnwrap(Class<? extends DelegateSessionWrapper> wrapper)
Removes a wrapper by type.
|
boolean |
equals(Object obj) |
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) |
protected void |
initClone(javax.jcr.Session newSession) |
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() |
protected DelegateSessionWrapper(javax.jcr.Session wrapped)
public javax.jcr.Session getWrappedSession()
public void setWrappedSession(javax.jcr.Session session)
public void addLockToken(String lt)
addLockToken
in interface javax.jcr.Session
public void checkPermission(String absPath, String actions) throws AccessControlException, javax.jcr.RepositoryException
checkPermission
in interface javax.jcr.Session
AccessControlException
javax.jcr.RepositoryException
public void exportDocumentView(String absPath, ContentHandler contentHandler, boolean skipBinary, boolean noRecurse) throws javax.jcr.PathNotFoundException, SAXException, javax.jcr.RepositoryException
exportDocumentView
in interface javax.jcr.Session
javax.jcr.PathNotFoundException
SAXException
javax.jcr.RepositoryException
public void exportDocumentView(String absPath, OutputStream out, boolean skipBinary, boolean noRecurse) throws IOException, javax.jcr.PathNotFoundException, javax.jcr.RepositoryException
exportDocumentView
in interface javax.jcr.Session
IOException
javax.jcr.PathNotFoundException
javax.jcr.RepositoryException
public void exportSystemView(String absPath, ContentHandler contentHandler, boolean skipBinary, boolean noRecurse) throws javax.jcr.PathNotFoundException, SAXException, javax.jcr.RepositoryException
exportSystemView
in interface javax.jcr.Session
javax.jcr.PathNotFoundException
SAXException
javax.jcr.RepositoryException
public void exportSystemView(String absPath, OutputStream out, boolean skipBinary, boolean noRecurse) throws IOException, javax.jcr.PathNotFoundException, javax.jcr.RepositoryException
exportSystemView
in interface javax.jcr.Session
IOException
javax.jcr.PathNotFoundException
javax.jcr.RepositoryException
public javax.jcr.security.AccessControlManager getAccessControlManager() throws javax.jcr.UnsupportedRepositoryOperationException, javax.jcr.RepositoryException
getAccessControlManager
in interface javax.jcr.Session
javax.jcr.UnsupportedRepositoryOperationException
javax.jcr.RepositoryException
public Object getAttribute(String name)
getAttribute
in interface javax.jcr.Session
public String[] getAttributeNames()
getAttributeNames
in interface javax.jcr.Session
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
getImportContentHandler
in interface javax.jcr.Session
javax.jcr.PathNotFoundException
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.version.VersionException
javax.jcr.lock.LockException
javax.jcr.RepositoryException
public javax.jcr.Item getItem(String absPath) throws javax.jcr.PathNotFoundException, javax.jcr.RepositoryException
getItem
in interface javax.jcr.Session
javax.jcr.PathNotFoundException
javax.jcr.RepositoryException
public String[] getLockTokens()
getLockTokens
in interface javax.jcr.Session
public String getNamespacePrefix(String uri) throws javax.jcr.NamespaceException, javax.jcr.RepositoryException
getNamespacePrefix
in interface javax.jcr.Session
javax.jcr.NamespaceException
javax.jcr.RepositoryException
public String[] getNamespacePrefixes() throws javax.jcr.RepositoryException
getNamespacePrefixes
in interface javax.jcr.Session
javax.jcr.RepositoryException
public String getNamespaceURI(String prefix) throws javax.jcr.NamespaceException, javax.jcr.RepositoryException
getNamespaceURI
in interface javax.jcr.Session
javax.jcr.NamespaceException
javax.jcr.RepositoryException
public javax.jcr.Node getNode(String absPath) throws javax.jcr.PathNotFoundException, javax.jcr.RepositoryException
getNode
in interface javax.jcr.Session
javax.jcr.PathNotFoundException
javax.jcr.RepositoryException
public javax.jcr.Node getNodeByIdentifier(String id) throws javax.jcr.ItemNotFoundException, javax.jcr.RepositoryException
getNodeByIdentifier
in interface javax.jcr.Session
javax.jcr.ItemNotFoundException
javax.jcr.RepositoryException
public javax.jcr.Node getNodeByUUID(String uuid) throws javax.jcr.ItemNotFoundException, javax.jcr.RepositoryException
getNodeByUUID
in interface javax.jcr.Session
javax.jcr.ItemNotFoundException
javax.jcr.RepositoryException
public javax.jcr.Property getProperty(String absPath) throws javax.jcr.PathNotFoundException, javax.jcr.RepositoryException
getProperty
in interface javax.jcr.Session
javax.jcr.PathNotFoundException
javax.jcr.RepositoryException
public javax.jcr.Repository getRepository()
getRepository
in interface javax.jcr.Session
public javax.jcr.retention.RetentionManager getRetentionManager() throws javax.jcr.UnsupportedRepositoryOperationException, javax.jcr.RepositoryException
getRetentionManager
in interface javax.jcr.Session
javax.jcr.UnsupportedRepositoryOperationException
javax.jcr.RepositoryException
public javax.jcr.Node getRootNode() throws javax.jcr.RepositoryException
getRootNode
in interface javax.jcr.Session
javax.jcr.RepositoryException
public String getUserID()
getUserID
in interface javax.jcr.Session
public javax.jcr.ValueFactory getValueFactory() throws javax.jcr.UnsupportedRepositoryOperationException, javax.jcr.RepositoryException
getValueFactory
in interface javax.jcr.Session
javax.jcr.UnsupportedRepositoryOperationException
javax.jcr.RepositoryException
public javax.jcr.Workspace getWorkspace()
getWorkspace
in interface javax.jcr.Session
public boolean hasCapability(String methodName, Object target, Object[] arguments) throws javax.jcr.RepositoryException
hasCapability
in interface javax.jcr.Session
javax.jcr.RepositoryException
public boolean hasPendingChanges() throws javax.jcr.RepositoryException
hasPendingChanges
in interface javax.jcr.Session
javax.jcr.RepositoryException
public boolean hasPermission(String absPath, String actions) throws javax.jcr.RepositoryException
hasPermission
in interface javax.jcr.Session
javax.jcr.RepositoryException
public javax.jcr.Session impersonate(javax.jcr.Credentials credentials) throws javax.jcr.LoginException, javax.jcr.RepositoryException
impersonate
in interface javax.jcr.Session
javax.jcr.LoginException
javax.jcr.RepositoryException
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
importXML
in interface javax.jcr.Session
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
public boolean isLive()
isLive
in interface javax.jcr.Session
public boolean itemExists(String absPath) throws javax.jcr.RepositoryException
itemExists
in interface javax.jcr.Session
javax.jcr.RepositoryException
public void logout()
logout
in interface javax.jcr.Session
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
move
in interface javax.jcr.Session
javax.jcr.ItemExistsException
javax.jcr.PathNotFoundException
javax.jcr.version.VersionException
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.lock.LockException
javax.jcr.RepositoryException
public boolean nodeExists(String absPath) throws javax.jcr.RepositoryException
nodeExists
in interface javax.jcr.Session
javax.jcr.RepositoryException
public boolean propertyExists(String absPath) throws javax.jcr.RepositoryException
propertyExists
in interface javax.jcr.Session
javax.jcr.RepositoryException
public void refresh(boolean keepChanges) throws javax.jcr.RepositoryException
refresh
in interface javax.jcr.Session
javax.jcr.RepositoryException
public void removeItem(String absPath) throws javax.jcr.version.VersionException, javax.jcr.lock.LockException, javax.jcr.nodetype.ConstraintViolationException, javax.jcr.AccessDeniedException, javax.jcr.RepositoryException
removeItem
in interface javax.jcr.Session
javax.jcr.version.VersionException
javax.jcr.lock.LockException
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.AccessDeniedException
javax.jcr.RepositoryException
public void removeLockToken(String lt)
removeLockToken
in interface javax.jcr.Session
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
save
in interface javax.jcr.Session
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
public void setNamespacePrefix(String prefix, String uri) throws javax.jcr.NamespaceException, javax.jcr.RepositoryException
setNamespacePrefix
in interface javax.jcr.Session
javax.jcr.NamespaceException
javax.jcr.RepositoryException
public javax.jcr.Session unwrap()
public javax.jcr.Session deepUnwrap(Class<? extends DelegateSessionWrapper> wrapper)
protected void initClone(javax.jcr.Session newSession)
protected Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
Copyright © 2003–2020 Magnolia International Ltd.. All rights reserved.