|
||||||||||
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 |
checkPermission(String arg0,
String arg1)
Check permission. |
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. |
javax.jcr.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. |
javax.jcr.Node |
getNodeByUUID(String uuid)
Return node by UUID. |
javax.jcr.Repository |
getRepository()
Return the repository. |
javax.jcr.Node |
getRootNode()
Return the root node. |
String |
getUserID()
Return the user id. |
javax.jcr.ValueFactory |
getValueFactory()
Return the value factory. |
javax.jcr.Workspace |
getWorkspace()
Return the workspace. |
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(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 javax.jcr.Repository getRepository()
getRepository
in interface javax.jcr.Session
public String getUserID()
getUserID
in interface javax.jcr.Session
public Object getAttribute(String name)
getAttribute
in interface javax.jcr.Session
public String[] getAttributeNames()
getAttributeNames
in interface javax.jcr.Session
public 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.Session
javax.jcr.LoginException
javax.jcr.RepositoryException
public javax.jcr.Node getRootNode() throws javax.jcr.RepositoryException
getRootNode
in interface javax.jcr.Session
javax.jcr.RepositoryException
public javax.jcr.Node getNodeByUUID(String uuid) throws javax.jcr.ItemNotFoundException, javax.jcr.RepositoryException
getNodeByUUID
in interface javax.jcr.Session
javax.jcr.ItemNotFoundException
javax.jcr.RepositoryException
public javax.jcr.Item getItem(String arg0) throws javax.jcr.PathNotFoundException, javax.jcr.RepositoryException
getItem
in interface javax.jcr.Session
javax.jcr.PathNotFoundException
javax.jcr.RepositoryException
public boolean itemExists(String arg0) throws javax.jcr.RepositoryException
itemExists
in interface javax.jcr.Session
javax.jcr.RepositoryException
public void move(String arg0, 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.Session
javax.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.Session
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
public void refresh(boolean arg0) throws javax.jcr.RepositoryException
refresh
in interface javax.jcr.Session
javax.jcr.RepositoryException
public boolean hasPendingChanges() throws javax.jcr.RepositoryException
hasPendingChanges
in interface javax.jcr.Session
javax.jcr.RepositoryException
public javax.jcr.ValueFactory getValueFactory() throws javax.jcr.UnsupportedRepositoryOperationException, javax.jcr.RepositoryException
getValueFactory
in interface javax.jcr.Session
javax.jcr.UnsupportedRepositoryOperationException
javax.jcr.RepositoryException
public void checkPermission(String arg0, String arg1) throws AccessControlException, javax.jcr.RepositoryException
checkPermission
in interface javax.jcr.Session
AccessControlException
javax.jcr.RepositoryException
public ContentHandler getImportContentHandler(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.Session
javax.jcr.PathNotFoundException
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.version.VersionException
javax.jcr.lock.LockException
javax.jcr.RepositoryException
public void importXML(String arg0, InputStream arg1, int arg2) throws 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.Session
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(String arg0, ContentHandler arg1, boolean arg2, boolean arg3) throws javax.jcr.PathNotFoundException, SAXException, javax.jcr.RepositoryException
exportSystemView
in interface javax.jcr.Session
javax.jcr.PathNotFoundException
SAXException
javax.jcr.RepositoryException
public void exportSystemView(String arg0, OutputStream arg1, boolean arg2, boolean arg3) throws IOException, javax.jcr.PathNotFoundException, javax.jcr.RepositoryException
exportSystemView
in interface javax.jcr.Session
IOException
javax.jcr.PathNotFoundException
javax.jcr.RepositoryException
public void exportDocumentView(String arg0, ContentHandler arg1, boolean arg2, boolean arg3) throws javax.jcr.PathNotFoundException, SAXException, javax.jcr.RepositoryException
exportDocumentView
in interface javax.jcr.Session
javax.jcr.PathNotFoundException
SAXException
javax.jcr.RepositoryException
public void exportDocumentView(String arg0, OutputStream arg1, boolean arg2, boolean arg3) throws IOException, javax.jcr.PathNotFoundException, javax.jcr.RepositoryException
exportDocumentView
in interface javax.jcr.Session
IOException
javax.jcr.PathNotFoundException
javax.jcr.RepositoryException
public void setNamespacePrefix(String arg0, String arg1) throws javax.jcr.NamespaceException, javax.jcr.RepositoryException
setNamespacePrefix
in interface javax.jcr.Session
javax.jcr.NamespaceException
javax.jcr.RepositoryException
public String[] getNamespacePrefixes() throws javax.jcr.RepositoryException
getNamespacePrefixes
in interface javax.jcr.Session
javax.jcr.RepositoryException
public String getNamespaceURI(String arg0) throws javax.jcr.NamespaceException, javax.jcr.RepositoryException
getNamespaceURI
in interface javax.jcr.Session
javax.jcr.NamespaceException
javax.jcr.RepositoryException
public String getNamespacePrefix(String arg0) throws javax.jcr.NamespaceException, javax.jcr.RepositoryException
getNamespacePrefix
in interface javax.jcr.Session
javax.jcr.NamespaceException
javax.jcr.RepositoryException
public void logout()
logout
in interface javax.jcr.Session
public boolean isLive()
isLive
in interface javax.jcr.Session
public void addLockToken(String arg0)
addLockToken
in interface javax.jcr.Session
public String[] getLockTokens()
getLockTokens
in interface javax.jcr.Session
public void removeLockToken(String arg0)
removeLockToken
in interface javax.jcr.Session
public XAResource getXAResource()
getXAResource
in interface XASession
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |