public final class JCASessionHandle extends Object implements Session, XAResource
ACTION_ADD_NODE, ACTION_READ, ACTION_REMOVE, ACTION_SET_PROPERTY
TMENDRSCAN, 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 Session
public String getUserID()
public Object getAttribute(String name)
getAttribute
in interface Session
public String[] getAttributeNames()
getAttributeNames
in interface Session
public Workspace getWorkspace()
getWorkspace
in interface Session
public Session impersonate(Credentials cred) throws LoginException, RepositoryException
impersonate
in interface Session
LoginException
RepositoryException
public Node getRootNode() throws RepositoryException
getRootNode
in interface Session
RepositoryException
public Node getNodeByUUID(String uuid) throws ItemNotFoundException, RepositoryException
getNodeByUUID
in interface Session
ItemNotFoundException
RepositoryException
public Item getItem(String arg0) throws PathNotFoundException, RepositoryException
getItem
in interface Session
PathNotFoundException
RepositoryException
public boolean itemExists(String arg0) throws RepositoryException
itemExists
in interface Session
RepositoryException
public void move(String arg0, String arg1) throws ItemExistsException, PathNotFoundException, VersionException, ConstraintViolationException, LockException, RepositoryException
move
in interface Session
ItemExistsException
PathNotFoundException
VersionException
ConstraintViolationException
LockException
RepositoryException
public void save() throws AccessDeniedException, ItemExistsException, ConstraintViolationException, InvalidItemStateException, VersionException, LockException, NoSuchNodeTypeException, RepositoryException
save
in interface Session
AccessDeniedException
ItemExistsException
ConstraintViolationException
InvalidItemStateException
VersionException
LockException
NoSuchNodeTypeException
RepositoryException
public void refresh(boolean arg0) throws RepositoryException
refresh
in interface Session
RepositoryException
public boolean hasPendingChanges() throws RepositoryException
hasPendingChanges
in interface Session
RepositoryException
public ValueFactory getValueFactory() throws UnsupportedRepositoryOperationException, RepositoryException
getValueFactory
in interface Session
UnsupportedRepositoryOperationException
RepositoryException
public void checkPermission(String arg0, String arg1) throws AccessControlException, RepositoryException
checkPermission
in interface Session
AccessControlException
RepositoryException
public ContentHandler getImportContentHandler(String arg0, int arg1) throws PathNotFoundException, ConstraintViolationException, VersionException, LockException, RepositoryException
getImportContentHandler
in interface Session
PathNotFoundException
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 Session
IOException
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 Session
PathNotFoundException
SAXException
RepositoryException
public void exportSystemView(String arg0, OutputStream arg1, boolean arg2, boolean arg3) throws IOException, PathNotFoundException, RepositoryException
exportSystemView
in interface Session
IOException
PathNotFoundException
RepositoryException
public void exportDocumentView(String arg0, ContentHandler arg1, boolean arg2, boolean arg3) throws PathNotFoundException, SAXException, RepositoryException
exportDocumentView
in interface Session
PathNotFoundException
SAXException
RepositoryException
public void exportDocumentView(String arg0, OutputStream arg1, boolean arg2, boolean arg3) throws IOException, PathNotFoundException, RepositoryException
exportDocumentView
in interface Session
IOException
PathNotFoundException
RepositoryException
public void setNamespacePrefix(String arg0, String arg1) throws NamespaceException, RepositoryException
setNamespacePrefix
in interface Session
NamespaceException
RepositoryException
public String[] getNamespacePrefixes() throws RepositoryException
getNamespacePrefixes
in interface Session
RepositoryException
public String getNamespaceURI(String arg0) throws NamespaceException, RepositoryException
getNamespaceURI
in interface Session
NamespaceException
RepositoryException
public String getNamespacePrefix(String arg0) throws NamespaceException, RepositoryException
getNamespacePrefix
in interface Session
NamespaceException
RepositoryException
public boolean isLive()
public void addLockToken(String arg0)
addLockToken
in interface Session
public String[] getLockTokens()
getLockTokens
in interface Session
public void removeLockToken(String arg0)
removeLockToken
in interface Session
public AccessControlManager getAccessControlManager() throws RepositoryException
getAccessControlManager
in interface Session
RepositoryException
public Node getNode(String arg0) throws RepositoryException
getNode
in interface Session
RepositoryException
public Node getNodeByIdentifier(String arg0) throws RepositoryException
getNodeByIdentifier
in interface Session
RepositoryException
public Property getProperty(String arg0) throws RepositoryException
getProperty
in interface Session
RepositoryException
public RetentionManager getRetentionManager() throws RepositoryException
getRetentionManager
in interface Session
RepositoryException
public boolean hasCapability(String arg0, Object arg1, Object[] arg2) throws RepositoryException
hasCapability
in interface Session
RepositoryException
public boolean hasPermission(String arg0, String arg1) throws RepositoryException
hasPermission
in interface Session
RepositoryException
public boolean nodeExists(String path) throws RepositoryException
nodeExists
in interface Session
RepositoryException
public boolean propertyExists(String path) throws RepositoryException
propertyExists
in interface Session
RepositoryException
public void removeItem(String path) throws RepositoryException
removeItem
in interface Session
RepositoryException
public void start(Xid xid, int flags) throws XAException
start
in interface XAResource
XAException
public void end(Xid xid, int flags) throws XAException
end
in interface XAResource
XAException
public int prepare(Xid xid) throws XAException
prepare
in interface XAResource
XAException
public void rollback(Xid xid) throws XAException
rollback
in interface XAResource
XAException
public void commit(Xid xid, boolean onePhase) throws XAException
commit
in interface XAResource
XAException
public void forget(Xid xid) throws XAException
forget
in interface XAResource
XAException
public Xid[] recover(int flag) throws XAException
recover
in interface XAResource
XAException
public boolean isSameRM(XAResource xares) throws XAException
isSameRM
in interface XAResource
XAException
public int getTransactionTimeout() throws XAException
getTransactionTimeout
in interface XAResource
XAException
public boolean setTransactionTimeout(int seconds) throws XAException
setTransactionTimeout
in interface XAResource
XAException
Copyright © 2004–2021 The Apache Software Foundation. All rights reserved.