public final class JCASessionHandle extends Object implements Session, XAResource
ACTION_ADD_NODE, ACTION_READ, ACTION_REMOVE, ACTION_SET_PROPERTYTMENDRSCAN, TMFAIL, TMJOIN, TMNOFLAGS, TMONEPHASE, TMRESUME, TMSTARTRSCAN, TMSUCCESS, TMSUSPEND, XA_OK, XA_RDONLY| Constructor and Description |
|---|
JCASessionHandle(JCAManagedConnection mc)
Construct a new session.
|
| Modifier and Type | Method and Description |
|---|---|
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) |
public JCASessionHandle(JCAManagedConnection mc)
public JCAManagedConnection getManagedConnection()
public void setManagedConnection(JCAManagedConnection mc)
public Repository getRepository()
getRepository in interface Sessionpublic String getUserID()
public Object getAttribute(String name)
getAttribute in interface Sessionpublic String[] getAttributeNames()
getAttributeNames in interface Sessionpublic Workspace getWorkspace()
getWorkspace in interface Sessionpublic Session impersonate(Credentials cred) throws LoginException, RepositoryException
impersonate in interface SessionLoginExceptionRepositoryExceptionpublic Node getRootNode() throws RepositoryException
getRootNode in interface SessionRepositoryExceptionpublic Node getNodeByUUID(String uuid) throws ItemNotFoundException, RepositoryException
getNodeByUUID in interface SessionItemNotFoundExceptionRepositoryExceptionpublic Item getItem(String arg0) throws PathNotFoundException, RepositoryException
getItem in interface SessionPathNotFoundExceptionRepositoryExceptionpublic boolean itemExists(String arg0) throws RepositoryException
itemExists in interface SessionRepositoryExceptionpublic void move(String arg0, String arg1) throws ItemExistsException, PathNotFoundException, VersionException, ConstraintViolationException, LockException, RepositoryException
move in interface SessionItemExistsExceptionPathNotFoundExceptionVersionExceptionConstraintViolationExceptionLockExceptionRepositoryExceptionpublic void save()
throws AccessDeniedException,
ItemExistsException,
ConstraintViolationException,
InvalidItemStateException,
VersionException,
LockException,
NoSuchNodeTypeException,
RepositoryException
save in interface SessionAccessDeniedExceptionItemExistsExceptionConstraintViolationExceptionInvalidItemStateExceptionVersionExceptionLockExceptionNoSuchNodeTypeExceptionRepositoryExceptionpublic void refresh(boolean arg0)
throws RepositoryException
refresh in interface SessionRepositoryExceptionpublic boolean hasPendingChanges()
throws RepositoryException
hasPendingChanges in interface SessionRepositoryExceptionpublic ValueFactory getValueFactory() throws UnsupportedRepositoryOperationException, RepositoryException
getValueFactory in interface SessionUnsupportedRepositoryOperationExceptionRepositoryExceptionpublic void checkPermission(String arg0, String arg1) throws AccessControlException, RepositoryException
checkPermission in interface SessionAccessControlExceptionRepositoryExceptionpublic ContentHandler getImportContentHandler(String arg0, int arg1) throws PathNotFoundException, ConstraintViolationException, VersionException, LockException, RepositoryException
getImportContentHandler in interface SessionPathNotFoundExceptionConstraintViolationExceptionVersionExceptionLockExceptionRepositoryExceptionpublic void importXML(String arg0, InputStream arg1, int arg2) throws IOException, PathNotFoundException, ItemExistsException, ConstraintViolationException, VersionException, InvalidSerializedDataException, LockException, RepositoryException
importXML in interface SessionIOExceptionPathNotFoundExceptionItemExistsExceptionConstraintViolationExceptionVersionExceptionInvalidSerializedDataExceptionLockExceptionRepositoryExceptionpublic void exportSystemView(String arg0, ContentHandler arg1, boolean arg2, boolean arg3) throws PathNotFoundException, SAXException, RepositoryException
exportSystemView in interface SessionPathNotFoundExceptionSAXExceptionRepositoryExceptionpublic void exportSystemView(String arg0, OutputStream arg1, boolean arg2, boolean arg3) throws IOException, PathNotFoundException, RepositoryException
exportSystemView in interface SessionIOExceptionPathNotFoundExceptionRepositoryExceptionpublic void exportDocumentView(String arg0, ContentHandler arg1, boolean arg2, boolean arg3) throws PathNotFoundException, SAXException, RepositoryException
exportDocumentView in interface SessionPathNotFoundExceptionSAXExceptionRepositoryExceptionpublic void exportDocumentView(String arg0, OutputStream arg1, boolean arg2, boolean arg3) throws IOException, PathNotFoundException, RepositoryException
exportDocumentView in interface SessionIOExceptionPathNotFoundExceptionRepositoryExceptionpublic void setNamespacePrefix(String arg0, String arg1) throws NamespaceException, RepositoryException
setNamespacePrefix in interface SessionNamespaceExceptionRepositoryExceptionpublic String[] getNamespacePrefixes() throws RepositoryException
getNamespacePrefixes in interface SessionRepositoryExceptionpublic String getNamespaceURI(String arg0) throws NamespaceException, RepositoryException
getNamespaceURI in interface SessionNamespaceExceptionRepositoryExceptionpublic String getNamespacePrefix(String arg0) throws NamespaceException, RepositoryException
getNamespacePrefix in interface SessionNamespaceExceptionRepositoryExceptionpublic boolean isLive()
public void addLockToken(String arg0)
addLockToken in interface Sessionpublic String[] getLockTokens()
getLockTokens in interface Sessionpublic void removeLockToken(String arg0)
removeLockToken in interface Sessionpublic AccessControlManager getAccessControlManager() throws RepositoryException
getAccessControlManager in interface SessionRepositoryExceptionpublic Node getNode(String arg0) throws RepositoryException
getNode in interface SessionRepositoryExceptionpublic Node getNodeByIdentifier(String arg0) throws RepositoryException
getNodeByIdentifier in interface SessionRepositoryExceptionpublic Property getProperty(String arg0) throws RepositoryException
getProperty in interface SessionRepositoryExceptionpublic RetentionManager getRetentionManager() throws RepositoryException
getRetentionManager in interface SessionRepositoryExceptionpublic boolean hasCapability(String arg0, Object arg1, Object[] arg2) throws RepositoryException
hasCapability in interface SessionRepositoryExceptionpublic boolean hasPermission(String arg0, String arg1) throws RepositoryException
hasPermission in interface SessionRepositoryExceptionpublic boolean nodeExists(String path) throws RepositoryException
nodeExists in interface SessionRepositoryExceptionpublic boolean propertyExists(String path) throws RepositoryException
propertyExists in interface SessionRepositoryExceptionpublic void removeItem(String path) throws RepositoryException
removeItem in interface SessionRepositoryExceptionpublic void start(Xid xid, int flags) throws XAException
start in interface XAResourceXAExceptionpublic void end(Xid xid, int flags) throws XAException
end in interface XAResourceXAExceptionpublic int prepare(Xid xid) throws XAException
prepare in interface XAResourceXAExceptionpublic void rollback(Xid xid) throws XAException
rollback in interface XAResourceXAExceptionpublic void commit(Xid xid, boolean onePhase) throws XAException
commit in interface XAResourceXAExceptionpublic void forget(Xid xid) throws XAException
forget in interface XAResourceXAExceptionpublic Xid[] recover(int flag) throws XAException
recover in interface XAResourceXAExceptionpublic boolean isSameRM(XAResource xares) throws XAException
isSameRM in interface XAResourceXAExceptionpublic int getTransactionTimeout()
throws XAException
getTransactionTimeout in interface XAResourceXAExceptionpublic boolean setTransactionTimeout(int seconds)
throws XAException
setTransactionTimeout in interface XAResourceXAExceptionCopyright © 2004–2024 The Apache Software Foundation. All rights reserved.