|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.jca.JCASessionHandle
public final class JCASessionHandle
This class implements the JCA implementation of session.
| Constructor Summary | |
|---|---|
JCASessionHandle(JCAManagedConnection mc)
Construct a new session. |
|
| Method Summary | |
|---|---|
void |
addLockToken(java.lang.String arg0)
Add lock token. |
void |
checkPermission(java.lang.String arg0,
java.lang.String arg1)
Check permission. |
void |
exportDocumentView(java.lang.String arg0,
org.xml.sax.ContentHandler arg1,
boolean arg2,
boolean arg3)
Export document view. |
void |
exportDocumentView(java.lang.String arg0,
java.io.OutputStream arg1,
boolean arg2,
boolean arg3)
Export document view. |
void |
exportSystemView(java.lang.String arg0,
org.xml.sax.ContentHandler arg1,
boolean arg2,
boolean arg3)
Export system view. |
void |
exportSystemView(java.lang.String arg0,
java.io.OutputStream arg1,
boolean arg2,
boolean arg3)
Export system view. |
java.lang.Object |
getAttribute(java.lang.String name)
Return the attribute. |
java.lang.String[] |
getAttributeNames()
Return the attribute names. |
org.xml.sax.ContentHandler |
getImportContentHandler(java.lang.String arg0,
int arg1)
Return the import content handler. |
javax.jcr.Item |
getItem(java.lang.String arg0)
Return the item. |
java.lang.String[] |
getLockTokens()
Return the lock tokens. |
JCAManagedConnection |
getManagedConnection()
Return the managed connection. |
java.lang.String |
getNamespacePrefix(java.lang.String arg0)
Return namespace prefix. |
java.lang.String[] |
getNamespacePrefixes()
Return namespace prefixes. |
java.lang.String |
getNamespaceURI(java.lang.String arg0)
Return namespace URI. |
javax.jcr.Node |
getNodeByUUID(java.lang.String uuid)
Return node by UUID. |
javax.jcr.Repository |
getRepository()
Return the repository. |
javax.jcr.Node |
getRootNode()
Return the root node. |
java.lang.String |
getUserID()
Return the user id. |
javax.jcr.ValueFactory |
getValueFactory()
Return the value factory. |
javax.jcr.Workspace |
getWorkspace()
Return the workspace. |
javax.transaction.xa.XAResource |
getXAResource()
Returns the XAResource associated with this session. |
boolean |
hasPendingChanges()
Return true if it has pending changes. |
javax.jcr.Session |
impersonate(javax.jcr.Credentials cred)
Impersonate another user. |
void |
importXML(java.lang.String arg0,
java.io.InputStream arg1,
int arg2)
Import XML content. |
boolean |
isLive()
Return true if session is live. |
boolean |
itemExists(java.lang.String arg0)
Return true if item exists. |
void |
logout()
Logout the session. |
void |
move(java.lang.String arg0,
java.lang.String arg1)
Move the item. |
void |
refresh(boolean arg0)
Refresh the session. |
void |
removeLockToken(java.lang.String arg0)
Remove lock token. |
void |
save()
Save the session. |
void |
setManagedConnection(JCAManagedConnection mc)
Set the managed connection. |
void |
setNamespacePrefix(java.lang.String arg0,
java.lang.String arg1)
Set namespace prefix. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JCASessionHandle(JCAManagedConnection mc)
| Method Detail |
|---|
public JCAManagedConnection getManagedConnection()
public void setManagedConnection(JCAManagedConnection mc)
public javax.jcr.Repository getRepository()
getRepository in interface javax.jcr.Sessionpublic java.lang.String getUserID()
getUserID in interface javax.jcr.Sessionpublic java.lang.Object getAttribute(java.lang.String name)
getAttribute in interface javax.jcr.Sessionpublic java.lang.String[] getAttributeNames()
getAttributeNames in interface javax.jcr.Sessionpublic javax.jcr.Workspace getWorkspace()
getWorkspace in interface javax.jcr.Session
public javax.jcr.Session impersonate(javax.jcr.Credentials cred)
throws javax.jcr.LoginException,
javax.jcr.RepositoryException
impersonate in interface javax.jcr.Sessionjavax.jcr.LoginException
javax.jcr.RepositoryException
public javax.jcr.Node getRootNode()
throws javax.jcr.RepositoryException
getRootNode in interface javax.jcr.Sessionjavax.jcr.RepositoryException
public javax.jcr.Node getNodeByUUID(java.lang.String uuid)
throws javax.jcr.ItemNotFoundException,
javax.jcr.RepositoryException
getNodeByUUID in interface javax.jcr.Sessionjavax.jcr.ItemNotFoundException
javax.jcr.RepositoryException
public javax.jcr.Item getItem(java.lang.String arg0)
throws javax.jcr.PathNotFoundException,
javax.jcr.RepositoryException
getItem in interface javax.jcr.Sessionjavax.jcr.PathNotFoundException
javax.jcr.RepositoryException
public boolean itemExists(java.lang.String arg0)
throws javax.jcr.RepositoryException
itemExists in interface javax.jcr.Sessionjavax.jcr.RepositoryException
public void move(java.lang.String arg0,
java.lang.String arg1)
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.Sessionjavax.jcr.ItemExistsException
javax.jcr.PathNotFoundException
javax.jcr.version.VersionException
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.lock.LockException
javax.jcr.RepositoryException
public void save()
throws javax.jcr.AccessDeniedException,
javax.jcr.ItemExistsException,
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.Sessionjavax.jcr.AccessDeniedException
javax.jcr.ItemExistsException
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.InvalidItemStateException
javax.jcr.version.VersionException
javax.jcr.lock.LockException
javax.jcr.nodetype.NoSuchNodeTypeException
javax.jcr.RepositoryException
public void refresh(boolean arg0)
throws javax.jcr.RepositoryException
refresh in interface javax.jcr.Sessionjavax.jcr.RepositoryException
public boolean hasPendingChanges()
throws javax.jcr.RepositoryException
hasPendingChanges in interface javax.jcr.Sessionjavax.jcr.RepositoryException
public javax.jcr.ValueFactory getValueFactory()
throws javax.jcr.UnsupportedRepositoryOperationException,
javax.jcr.RepositoryException
getValueFactory in interface javax.jcr.Sessionjavax.jcr.UnsupportedRepositoryOperationException
javax.jcr.RepositoryException
public void checkPermission(java.lang.String arg0,
java.lang.String arg1)
throws java.security.AccessControlException,
javax.jcr.RepositoryException
checkPermission in interface javax.jcr.Sessionjava.security.AccessControlException
javax.jcr.RepositoryException
public org.xml.sax.ContentHandler getImportContentHandler(java.lang.String arg0,
int arg1)
throws javax.jcr.PathNotFoundException,
javax.jcr.nodetype.ConstraintViolationException,
javax.jcr.version.VersionException,
javax.jcr.lock.LockException,
javax.jcr.RepositoryException
getImportContentHandler in interface javax.jcr.Sessionjavax.jcr.PathNotFoundException
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.version.VersionException
javax.jcr.lock.LockException
javax.jcr.RepositoryException
public void importXML(java.lang.String arg0,
java.io.InputStream arg1,
int arg2)
throws java.io.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.Sessionjava.io.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 void exportSystemView(java.lang.String arg0,
org.xml.sax.ContentHandler arg1,
boolean arg2,
boolean arg3)
throws javax.jcr.PathNotFoundException,
org.xml.sax.SAXException,
javax.jcr.RepositoryException
exportSystemView in interface javax.jcr.Sessionjavax.jcr.PathNotFoundException
org.xml.sax.SAXException
javax.jcr.RepositoryException
public void exportSystemView(java.lang.String arg0,
java.io.OutputStream arg1,
boolean arg2,
boolean arg3)
throws java.io.IOException,
javax.jcr.PathNotFoundException,
javax.jcr.RepositoryException
exportSystemView in interface javax.jcr.Sessionjava.io.IOException
javax.jcr.PathNotFoundException
javax.jcr.RepositoryException
public void exportDocumentView(java.lang.String arg0,
org.xml.sax.ContentHandler arg1,
boolean arg2,
boolean arg3)
throws javax.jcr.PathNotFoundException,
org.xml.sax.SAXException,
javax.jcr.RepositoryException
exportDocumentView in interface javax.jcr.Sessionjavax.jcr.PathNotFoundException
org.xml.sax.SAXException
javax.jcr.RepositoryException
public void exportDocumentView(java.lang.String arg0,
java.io.OutputStream arg1,
boolean arg2,
boolean arg3)
throws java.io.IOException,
javax.jcr.PathNotFoundException,
javax.jcr.RepositoryException
exportDocumentView in interface javax.jcr.Sessionjava.io.IOException
javax.jcr.PathNotFoundException
javax.jcr.RepositoryException
public void setNamespacePrefix(java.lang.String arg0,
java.lang.String arg1)
throws javax.jcr.NamespaceException,
javax.jcr.RepositoryException
setNamespacePrefix in interface javax.jcr.Sessionjavax.jcr.NamespaceException
javax.jcr.RepositoryException
public java.lang.String[] getNamespacePrefixes()
throws javax.jcr.RepositoryException
getNamespacePrefixes in interface javax.jcr.Sessionjavax.jcr.RepositoryException
public java.lang.String getNamespaceURI(java.lang.String arg0)
throws javax.jcr.NamespaceException,
javax.jcr.RepositoryException
getNamespaceURI in interface javax.jcr.Sessionjavax.jcr.NamespaceException
javax.jcr.RepositoryException
public java.lang.String getNamespacePrefix(java.lang.String arg0)
throws javax.jcr.NamespaceException,
javax.jcr.RepositoryException
getNamespacePrefix in interface javax.jcr.Sessionjavax.jcr.NamespaceException
javax.jcr.RepositoryExceptionpublic void logout()
logout in interface javax.jcr.Sessionpublic boolean isLive()
isLive in interface javax.jcr.Sessionpublic void addLockToken(java.lang.String arg0)
addLockToken in interface javax.jcr.Sessionpublic java.lang.String[] getLockTokens()
getLockTokens in interface javax.jcr.Sessionpublic void removeLockToken(java.lang.String arg0)
removeLockToken in interface javax.jcr.Sessionpublic javax.transaction.xa.XAResource getXAResource()
getXAResource in interface XASession
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||