|
|||||||||
| 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(String arg0)
Add lock token. |
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. |
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 |
getNodeByUUID(String uuid)
Return node by UUID. |
Repository |
getRepository()
Return the repository. |
Node |
getRootNode()
Return the root node. |
String |
getUserID()
Return the user id. |
ValueFactory |
getValueFactory()
Return the value factory. |
Workspace |
getWorkspace()
Return the workspace. |
XAResource |
getXAResource()
Returns the XAResource associated with this session. |
boolean |
hasPendingChanges()
Return true if it has pending changes. |
void |
checkPermission(String arg0,
String arg1)
Check permission. |
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 |
itemExists(String arg0)
Return true if item exists. |
void |
logout()
Logout the session. |
void |
move(String arg0,
String arg1)
Move the item. |
void |
refresh(boolean arg0)
Refresh the session. |
void |
removeLockToken(String arg0)
Remove lock token. |
void |
save()
Save the session. |
void |
setManagedConnection(JCAManagedConnection mc)
Set the managed connection. |
void |
setNamespacePrefix(String arg0,
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 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 Sessionpublic XAResource getXAResource()
getXAResource in interface XASession
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||