|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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. |
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. |
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 Session
public String getUserID()
getUserID
in interface Session
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 void logout()
logout
in interface Session
public boolean isLive()
isLive
in interface Session
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 XAResource getXAResource()
getXAResource
in interface XASession
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |