|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
org.apache.jackrabbit.rmi.server.ServerObject
org.apache.jackrabbit.rmi.server.ServerSession
public class ServerSession
Remote adapter for the JCR Session interface.
This class makes a local session available as an RMI service using the
RemoteSession
interface.
Session,
RemoteSession,
Serialized Form| Field Summary |
|---|
| Fields inherited from class java.rmi.server.RemoteObject |
|---|
ref |
| Constructor Summary | |
|---|---|
ServerSession(javax.jcr.Session session,
RemoteAdapterFactory factory)
Creates a remote adapter for the given local session. |
|
| Method Summary | |
|---|---|
void |
addLockToken(java.lang.String token)
Remote version of the Session.addLockToken(String)
method. |
void |
checkPermission(java.lang.String path,
java.lang.String actions)
Remote version of the Session.checkPermission(String,String)
method. |
byte[] |
exportDocumentView(java.lang.String path,
boolean binaryAsLink,
boolean noRecurse)
Exports the identified repository subtree as a document view XML stream. |
byte[] |
exportSystemView(java.lang.String path,
boolean binaryAsLink,
boolean noRecurse)
Exports the identified repository subtree as a system view XML stream. |
java.lang.Object |
getAttribute(java.lang.String name)
Returns the named attribute. |
java.lang.String[] |
getAttributeNames()
Remote version of the Session.getAttributeNames()
method. |
RemoteItem |
getItem(java.lang.String path)
Remote version of the Session.getItem(String)
method. |
java.lang.String[] |
getLockTokens()
Remote version of the Session.getLockTokens()
method. |
java.lang.String |
getNamespacePrefix(java.lang.String uri)
Remote version of the Session.getNamespacePrefix(String)
method. |
java.lang.String[] |
getNamespacePrefixes()
Remote version of the Session.getNamespacePrefixes()
method. |
java.lang.String |
getNamespaceURI(java.lang.String prefix)
Remote version of the Session.getNamespaceURI(String)
method. |
RemoteNode |
getNodeByUUID(java.lang.String uuid)
Remote version of the Session.getNodeByUUID(String)
method. |
RemoteNode |
getRootNode()
Remote version of the Session.getRootNode() method. |
java.lang.String |
getUserID()
Remote version of the Session.getUserID() method. |
RemoteWorkspace |
getWorkspace()
Remote version of the Session.getWorkspace() method. |
boolean |
hasPendingChanges()
Remote version of the Session.hasPendingChanges()
method. |
RemoteSession |
impersonate(javax.jcr.Credentials credentials)
Remote version of the Session.impersonate(Credentials)
method. |
void |
importXML(java.lang.String path,
byte[] xml,
int mode)
Imports the system or document view XML data into a subtree of the identified node. |
boolean |
isLive()
Remote version of the Session.isLive()
method. |
boolean |
itemExists(java.lang.String path)
Remote version of the Session.itemExists(String)
method. |
void |
logout()
Remote version of the Session.logout()
method. |
void |
move(java.lang.String from,
java.lang.String to)
Remote version of the Session.move(String,String)
method. |
void |
refresh(boolean keepChanges)
Remote version of the Session.refresh(boolean)
method. |
void |
removeLockToken(java.lang.String token)
Remote version of the Session.removeLockToken(String)
method. |
void |
save()
Remote version of the Session.save() method. |
void |
setNamespacePrefix(java.lang.String prefix,
java.lang.String uri)
Remote version of the Session.setNamespacePrefix(String,String)
method. |
| Methods inherited from class org.apache.jackrabbit.rmi.server.ServerObject |
|---|
getFactory, getRemoteItem, getRemoteNode, getRemoteNodeTypeArray, getRepositoryException |
| Methods inherited from class java.rmi.server.UnicastRemoteObject |
|---|
clone, exportObject, exportObject, exportObject, unexportObject |
| Methods inherited from class java.rmi.server.RemoteServer |
|---|
getClientHost, getLog, setLog |
| Methods inherited from class java.rmi.server.RemoteObject |
|---|
equals, getRef, hashCode, toString, toStub |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ServerSession(javax.jcr.Session session,
RemoteAdapterFactory factory)
throws java.rmi.RemoteException
session - local sessionfactory - remote adapter factory
java.rmi.RemoteException - on RMI errors| Method Detail |
|---|
public java.lang.String getUserID()
throws java.rmi.RemoteException
Session.getUserID() method.
getUserID in interface RemoteSessionjava.rmi.RemoteException - on RMI errorsSession.getUserID()
public java.lang.Object getAttribute(java.lang.String name)
throws java.rmi.RemoteException
getAttribute in interface RemoteSessionname - attribute name
java.rmi.RemoteException - on RMI errorsSession.getAttribute(java.lang.String)
public java.lang.String[] getAttributeNames()
throws java.rmi.RemoteException
Session.getAttributeNames()
method.
getAttributeNames in interface RemoteSessionjava.rmi.RemoteException - on RMI errors
public RemoteSession impersonate(javax.jcr.Credentials credentials)
throws javax.jcr.RepositoryException,
java.rmi.RemoteException
Session.impersonate(Credentials)
method.
impersonate in interface RemoteSessioncredentials - credentials for the new session
javax.jcr.RepositoryException - on repository errors
java.rmi.RemoteException - on RMI errors
public RemoteWorkspace getWorkspace()
throws java.rmi.RemoteException
Session.getWorkspace() method.
getWorkspace in interface RemoteSessionjava.rmi.RemoteException - on RMI errorsSession.getWorkspace()
public void checkPermission(java.lang.String path,
java.lang.String actions)
throws java.security.AccessControlException,
javax.jcr.RepositoryException,
java.rmi.RemoteException
Session.checkPermission(String,String)
method.
checkPermission in interface RemoteSessionpath - item pathactions - actions
java.security.AccessControlException - if permission is denied
javax.jcr.RepositoryException - on repository errors
java.rmi.RemoteException - on RMI errors
public java.lang.String getNamespacePrefix(java.lang.String uri)
throws javax.jcr.RepositoryException,
java.rmi.RemoteException
Session.getNamespacePrefix(String)
method.
getNamespacePrefix in interface RemoteSessionuri - namespace uri
javax.jcr.RepositoryException - on repository errors
java.rmi.RemoteException - on RMI errors
public java.lang.String[] getNamespacePrefixes()
throws javax.jcr.RepositoryException,
java.rmi.RemoteException
Session.getNamespacePrefixes()
method.
getNamespacePrefixes in interface RemoteSessionjavax.jcr.RepositoryException - on repository errors
java.rmi.RemoteException - on RMI errors
public java.lang.String getNamespaceURI(java.lang.String prefix)
throws javax.jcr.RepositoryException,
java.rmi.RemoteException
Session.getNamespaceURI(String)
method.
getNamespaceURI in interface RemoteSessionprefix - namespace prefix
javax.jcr.RepositoryException - on repository errors
java.rmi.RemoteException - on RMI errors
public void setNamespacePrefix(java.lang.String prefix,
java.lang.String uri)
throws javax.jcr.RepositoryException,
java.rmi.RemoteException
Session.setNamespacePrefix(String,String)
method.
setNamespacePrefix in interface RemoteSessionprefix - namespace prefixuri - namespace uri
javax.jcr.RepositoryException - on repository errors
java.rmi.RemoteException - on RMI errors
public boolean itemExists(java.lang.String path)
throws javax.jcr.RepositoryException,
java.rmi.RemoteException
Session.itemExists(String)
method.
itemExists in interface RemoteSessionpath - item path
true if the item exists,
false otherwise
javax.jcr.RepositoryException - on repository exception
java.rmi.RemoteException - on RMI errors
public RemoteNode getNodeByUUID(java.lang.String uuid)
throws javax.jcr.RepositoryException,
java.rmi.RemoteException
Session.getNodeByUUID(String)
method.
getNodeByUUID in interface RemoteSessionuuid - node uuid
javax.jcr.RepositoryException - on repository errors
java.rmi.RemoteException - on RMI errors
public RemoteNode getRootNode()
throws javax.jcr.RepositoryException,
java.rmi.RemoteException
Session.getRootNode() method.
getRootNode in interface RemoteSessionjavax.jcr.RepositoryException - on repository errors
java.rmi.RemoteException - on RMI errors
public RemoteItem getItem(java.lang.String path)
throws javax.jcr.RepositoryException,
java.rmi.RemoteException
Session.getItem(String)
method.
getItem in interface RemoteSessionpath - item path
javax.jcr.RepositoryException - on repository errors
java.rmi.RemoteException - on RMI errors
public boolean hasPendingChanges()
throws javax.jcr.RepositoryException,
java.rmi.RemoteException
Session.hasPendingChanges()
method.
hasPendingChanges in interface RemoteSessiontrue if the session has pending changes,
false otherwise
javax.jcr.RepositoryException - on repository errors
java.rmi.RemoteException - on RMI errors
public void move(java.lang.String from,
java.lang.String to)
throws javax.jcr.RepositoryException,
java.rmi.RemoteException
Session.move(String,String)
method.
move in interface RemoteSessionfrom - source pathto - destination path
javax.jcr.RepositoryException - on repository errors
java.rmi.RemoteException - on RMI errors
public void save()
throws javax.jcr.RepositoryException,
java.rmi.RemoteException
Session.save() method.
save in interface RemoteSessionjavax.jcr.RepositoryException - on repository errors
java.rmi.RemoteException - on RMI errors
public void refresh(boolean keepChanges)
throws javax.jcr.RepositoryException,
java.rmi.RemoteException
Session.refresh(boolean)
method.
refresh in interface RemoteSessionkeepChanges - flag to keep transient changes
javax.jcr.RepositoryException - on repository errors
java.rmi.RemoteException - on RMI errors
public void logout()
throws java.rmi.RemoteException
Session.logout()
method.
logout in interface RemoteSessionjava.rmi.RemoteException - on RMI errors
public boolean isLive()
throws java.rmi.RemoteException
Session.isLive()
method.
isLive in interface RemoteSessiontrue if the session is live,
false otherwise
java.rmi.RemoteException - on RMI errors
public void importXML(java.lang.String path,
byte[] xml,
int mode)
throws java.io.IOException,
javax.jcr.RepositoryException,
java.rmi.RemoteException
ByteArrayInputStream and feed
it to the normal importXML method.
importXML in interface RemoteSessionpath - node pathxml - imported XML documentmode - UUID handling mode
java.io.IOException - on IO errors
java.rmi.RemoteException - on RMI errors
javax.jcr.RepositoryException - on repository errorsSession.importXML(java.lang.String, java.io.InputStream, int)
public void addLockToken(java.lang.String token)
throws java.rmi.RemoteException
Session.addLockToken(String)
method.
addLockToken in interface RemoteSessiontoken - lock token
java.rmi.RemoteException - on RMI errors
public java.lang.String[] getLockTokens()
throws java.rmi.RemoteException
Session.getLockTokens()
method.
getLockTokens in interface RemoteSessionjava.rmi.RemoteException - on RMI errors
public void removeLockToken(java.lang.String token)
throws java.rmi.RemoteException
Session.removeLockToken(String)
method.
removeLockToken in interface RemoteSessiontoken - lock token
java.rmi.RemoteException - on RMI errors
public byte[] exportDocumentView(java.lang.String path,
boolean binaryAsLink,
boolean noRecurse)
throws java.io.IOException,
javax.jcr.RepositoryException,
java.rmi.RemoteException
ByteArrayOutputStream to capture
the XML data written by the normal exportDocView method.
exportDocumentView in interface RemoteSessionpath - node pathbinaryAsLink - skip binary flagnoRecurse - no recursion flag
java.io.IOException - on IO errors
java.rmi.RemoteException - on RMI errors
javax.jcr.RepositoryException - on repository errorsSession.exportDocumentView(java.lang.String, org.xml.sax.ContentHandler, boolean, boolean)
public byte[] exportSystemView(java.lang.String path,
boolean binaryAsLink,
boolean noRecurse)
throws java.io.IOException,
javax.jcr.RepositoryException,
java.rmi.RemoteException
ByteArrayOutputStream to capture
the XML data written by the normal exportSysView method.
exportSystemView in interface RemoteSessionpath - node pathbinaryAsLink - binary skip flagnoRecurse - no recursion flag
java.io.IOException - on IO errors
java.rmi.RemoteException - on RMI errors
javax.jcr.RepositoryException - on repository errorsSession.exportSystemView(java.lang.String, org.xml.sax.ContentHandler, boolean, boolean)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||