|
|||||||||
| 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.
| Field Summary |
|---|
| Fields inherited from interface javax.jcr.Session |
|---|
ACTION_ADD_NODE, ACTION_READ, ACTION_REMOVE, ACTION_SET_PROPERTY |
| Fields inherited from interface javax.transaction.xa.XAResource |
|---|
TMENDRSCAN, TMFAIL, TMJOIN, TMNOFLAGS, TMONEPHASE, TMRESUME, TMSTARTRSCAN, TMSUCCESS, TMSUSPEND, XA_OK, XA_RDONLY |
| Constructor Summary | |
|---|---|
JCASessionHandle(JCAManagedConnection mc)
Construct a new session. |
|
| Method Summary | |
|---|---|
void |
addLockToken(String arg0)
Add lock token. |
void |
checkPermission(String arg0,
String arg1)
Check permission. |
void |
commit(Xid xid,
boolean onePhase)
|
void |
end(Xid xid,
int flags)
|
void |
exportDocumentView(String arg0,
ContentHandler arg1,
boolean arg2,
boolean arg3)
Export document view. |
void |
exportDocumentView(String arg0,
OutputStream arg1,
boolean arg2,
boolean arg3)
Export document view. |
void |
exportSystemView(String arg0,
ContentHandler arg1,
boolean arg2,
boolean arg3)
Export system view. |
void |
exportSystemView(String arg0,
OutputStream arg1,
boolean arg2,
boolean arg3)
Export system view. |
void |
forget(Xid xid)
|
AccessControlManager |
getAccessControlManager()
|
Object |
getAttribute(String name)
Return the attribute. |
String[] |
getAttributeNames()
Return the attribute names. |
ContentHandler |
getImportContentHandler(String arg0,
int arg1)
Return the import content handler. |
Item |
getItem(String arg0)
Return the item. |
String[] |
getLockTokens()
Return the lock tokens. |
JCAManagedConnection |
getManagedConnection()
Return the managed connection. |
String |
getNamespacePrefix(String arg0)
Return namespace prefix. |
String[] |
getNamespacePrefixes()
Return namespace prefixes. |
String |
getNamespaceURI(String arg0)
Return namespace URI. |
Node |
getNode(String arg0)
|
Node |
getNodeByIdentifier(String arg0)
|
Node |
getNodeByUUID(String uuid)
Return node by UUID. |
Property |
getProperty(String arg0)
|
Repository |
getRepository()
Return the repository. |
RetentionManager |
getRetentionManager()
|
Node |
getRootNode()
Return the root node. |
int |
getTransactionTimeout()
|
String |
getUserID()
Return the user id. |
ValueFactory |
getValueFactory()
Return the value factory. |
Workspace |
getWorkspace()
Return the workspace. |
boolean |
hasCapability(String arg0,
Object arg1,
Object[] arg2)
|
boolean |
hasPendingChanges()
Return true if it has pending changes. |
boolean |
hasPermission(String arg0,
String arg1)
|
Session |
impersonate(Credentials cred)
Impersonate another user. |
void |
importXML(String arg0,
InputStream arg1,
int arg2)
Import XML content. |
boolean |
isLive()
Return true if session is live. |
boolean |
isSameRM(XAResource xares)
|
boolean |
itemExists(String arg0)
Return true if item exists. |
void |
logout()
Logout the session. |
void |
move(String arg0,
String arg1)
Move the item. |
boolean |
nodeExists(String path)
|
int |
prepare(Xid xid)
|
boolean |
propertyExists(String path)
|
Xid[] |
recover(int flag)
|
void |
refresh(boolean arg0)
Refresh the session. |
void |
removeItem(String path)
|
void |
removeLockToken(String arg0)
Remove lock token. |
void |
rollback(Xid xid)
|
void |
save()
Save the session. |
void |
setManagedConnection(JCAManagedConnection mc)
Set the managed connection. |
void |
setNamespacePrefix(String arg0,
String arg1)
Set namespace prefix. |
boolean |
setTransactionTimeout(int seconds)
|
void |
start(Xid xid,
int flags)
|
| 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 Repository getRepository()
getRepository in interface Sessionpublic String getUserID()
getUserID in interface Sessionpublic Object getAttribute(String name)
getAttribute in interface Sessionpublic String[] getAttributeNames()
getAttributeNames in interface Sessionpublic Workspace getWorkspace()
getWorkspace in interface Session
public Session impersonate(Credentials cred)
throws LoginException,
RepositoryException
impersonate in interface SessionLoginException
RepositoryException
public Node getRootNode()
throws RepositoryException
getRootNode in interface SessionRepositoryException
public Node getNodeByUUID(String uuid)
throws ItemNotFoundException,
RepositoryException
getNodeByUUID in interface SessionItemNotFoundException
RepositoryException
public Item getItem(String arg0)
throws PathNotFoundException,
RepositoryException
getItem in interface SessionPathNotFoundException
RepositoryException
public boolean itemExists(String arg0)
throws RepositoryException
itemExists in interface SessionRepositoryException
public void move(String arg0,
String arg1)
throws ItemExistsException,
PathNotFoundException,
VersionException,
ConstraintViolationException,
LockException,
RepositoryException
move in interface SessionItemExistsException
PathNotFoundException
VersionException
ConstraintViolationException
LockException
RepositoryException
public void save()
throws AccessDeniedException,
ItemExistsException,
ConstraintViolationException,
InvalidItemStateException,
VersionException,
LockException,
NoSuchNodeTypeException,
RepositoryException
save in interface SessionAccessDeniedException
ItemExistsException
ConstraintViolationException
InvalidItemStateException
VersionException
LockException
NoSuchNodeTypeException
RepositoryException
public void refresh(boolean arg0)
throws RepositoryException
refresh in interface SessionRepositoryException
public boolean hasPendingChanges()
throws RepositoryException
hasPendingChanges in interface SessionRepositoryException
public ValueFactory getValueFactory()
throws UnsupportedRepositoryOperationException,
RepositoryException
getValueFactory in interface SessionUnsupportedRepositoryOperationException
RepositoryException
public void checkPermission(String arg0,
String arg1)
throws AccessControlException,
RepositoryException
checkPermission in interface SessionAccessControlException
RepositoryException
public ContentHandler getImportContentHandler(String arg0,
int arg1)
throws PathNotFoundException,
ConstraintViolationException,
VersionException,
LockException,
RepositoryException
getImportContentHandler in interface SessionPathNotFoundException
ConstraintViolationException
VersionException
LockException
RepositoryException
public void importXML(String arg0,
InputStream arg1,
int arg2)
throws IOException,
PathNotFoundException,
ItemExistsException,
ConstraintViolationException,
VersionException,
InvalidSerializedDataException,
LockException,
RepositoryException
importXML in interface SessionIOException
PathNotFoundException
ItemExistsException
ConstraintViolationException
VersionException
InvalidSerializedDataException
LockException
RepositoryException
public void exportSystemView(String arg0,
ContentHandler arg1,
boolean arg2,
boolean arg3)
throws PathNotFoundException,
SAXException,
RepositoryException
exportSystemView in interface SessionPathNotFoundException
SAXException
RepositoryException
public void exportSystemView(String arg0,
OutputStream arg1,
boolean arg2,
boolean arg3)
throws IOException,
PathNotFoundException,
RepositoryException
exportSystemView in interface SessionIOException
PathNotFoundException
RepositoryException
public void exportDocumentView(String arg0,
ContentHandler arg1,
boolean arg2,
boolean arg3)
throws PathNotFoundException,
SAXException,
RepositoryException
exportDocumentView in interface SessionPathNotFoundException
SAXException
RepositoryException
public void exportDocumentView(String arg0,
OutputStream arg1,
boolean arg2,
boolean arg3)
throws IOException,
PathNotFoundException,
RepositoryException
exportDocumentView in interface SessionIOException
PathNotFoundException
RepositoryException
public void setNamespacePrefix(String arg0,
String arg1)
throws NamespaceException,
RepositoryException
setNamespacePrefix in interface SessionNamespaceException
RepositoryException
public String[] getNamespacePrefixes()
throws RepositoryException
getNamespacePrefixes in interface SessionRepositoryException
public String getNamespaceURI(String arg0)
throws NamespaceException,
RepositoryException
getNamespaceURI in interface SessionNamespaceException
RepositoryException
public String getNamespacePrefix(String arg0)
throws NamespaceException,
RepositoryException
getNamespacePrefix in interface SessionNamespaceException
RepositoryExceptionpublic void logout()
logout in interface Sessionpublic boolean isLive()
isLive in interface Sessionpublic void addLockToken(String arg0)
addLockToken in interface Sessionpublic String[] getLockTokens()
getLockTokens in interface Sessionpublic void removeLockToken(String arg0)
removeLockToken in interface Session
public AccessControlManager getAccessControlManager()
throws RepositoryException
getAccessControlManager in interface SessionRepositoryException
public Node getNode(String arg0)
throws RepositoryException
getNode in interface SessionRepositoryException
public Node getNodeByIdentifier(String arg0)
throws RepositoryException
getNodeByIdentifier in interface SessionRepositoryException
public Property getProperty(String arg0)
throws RepositoryException
getProperty in interface SessionRepositoryException
public RetentionManager getRetentionManager()
throws RepositoryException
getRetentionManager in interface SessionRepositoryException
public boolean hasCapability(String arg0,
Object arg1,
Object[] arg2)
throws RepositoryException
hasCapability in interface SessionRepositoryException
public boolean hasPermission(String arg0,
String arg1)
throws RepositoryException
hasPermission in interface SessionRepositoryException
public boolean nodeExists(String path)
throws RepositoryException
nodeExists in interface SessionRepositoryException
public boolean propertyExists(String path)
throws RepositoryException
propertyExists in interface SessionRepositoryException
public void removeItem(String path)
throws RepositoryException
removeItem in interface SessionRepositoryException
public void start(Xid xid,
int flags)
throws XAException
start in interface XAResourceXAException
public void end(Xid xid,
int flags)
throws XAException
end in interface XAResourceXAException
public int prepare(Xid xid)
throws XAException
prepare in interface XAResourceXAException
public void rollback(Xid xid)
throws XAException
rollback in interface XAResourceXAException
public void commit(Xid xid,
boolean onePhase)
throws XAException
commit in interface XAResourceXAException
public void forget(Xid xid)
throws XAException
forget in interface XAResourceXAException
public Xid[] recover(int flag)
throws XAException
recover in interface XAResourceXAException
public boolean isSameRM(XAResource xares)
throws XAException
isSameRM in interface XAResourceXAException
public int getTransactionTimeout()
throws XAException
getTransactionTimeout in interface XAResourceXAException
public boolean setTransactionTimeout(int seconds)
throws XAException
setTransactionTimeout in interface XAResourceXAException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||