|
|||||||||||
| 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
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(Session session,
RemoteAdapterFactory factory)
Creates a remote adapter for the given local session. |
|
| Method Summary | |
void |
addLockToken(String token)
Remote version of the Session.addLockToken(String)
method. |
void |
checkPermission(String path,
String actions)
Remote version of the Session.checkPermission(String,String)
method. |
byte[] |
exportDocumentView(String path,
boolean binaryAsLink,
boolean noRecurse)
Exports the identified repository subtree as a document view XML stream. Note that the entire XML stream is transferred as a single byte array over the network. This may cause problems with large exports. The remote server uses a ByteArrayOutputStream to capture
the XML data written by the normal exportDocView method. |
byte[] |
exportSystemView(String path,
boolean binaryAsLink,
boolean noRecurse)
Exports the identified repository subtree as a system view XML stream. Note that the entire XML stream is transferred as a single byte array over the network. This may cause problems with large exports. The remote server uses a ByteArrayOutputStream to capture
the XML data written by the normal exportSysView method. |
Object |
getAttribute(String name)
Returns the named attribute. Note that only serializable attribute values can be transmitted over the network and that the client should have (or be able to fetch) the object class to access the returned value. Failures to meet these conditions are signalled with RemoteExceptions. |
String[] |
getAttributeNames()
Remote version of the Session.getAttributeNames()
method. |
RemoteItem |
getItem(String path)
Remote version of the Session.getItem(String)
method. |
String[] |
getLockTokens()
Remote version of the Session.getLockTokens()
method. |
String |
getNamespacePrefix(String uri)
Remote version of the Session.getNamespacePrefix(String)
method. |
String[] |
getNamespacePrefixes()
Remote version of the Session.getNamespacePrefixes()
method. |
String |
getNamespaceURI(String prefix)
Remote version of the Session.getNamespaceURI(String)
method. |
RemoteNode |
getNodeByUUID(String uuid)
Remote version of the Session.getNodeByUUID(String)
method. |
RemoteNode |
getRootNode()
Remote version of the Session.getRootNode() method. |
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(Credentials credentials)
Remote version of the Session.impersonate(Credentials)
method. |
void |
importXML(String path,
byte[] xml,
int mode)
Imports the system or document view XML data into a subtree of the identified node. Note that the entire XML stream is transferred as a single byte array over the network. This may cause problems with large XML streams. The remote server will wrap the XML data into a ByteArrayInputStream and feed
it to the normal importXML method. |
boolean |
isLive()
Remote version of the Session.isLive()
method. |
boolean |
itemExists(String path)
Remote version of the Session.itemExists(String)
method. |
void |
logout()
Remote version of the Session.logout()
method. |
void |
move(String from,
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(String token)
Remote version of the Session.removeLockToken(String)
method. |
void |
save()
Remote version of the Session.save() method. |
void |
setNamespacePrefix(String prefix,
String uri)
Remote version of the Session.setNamespacePrefix(String,String)
method. |
| Methods inherited from class org.apache.jackrabbit.rmi.server.ServerObject |
getFactory, getRemoteItem, getRemoteNode, getRemoteNodeArray, getRemoteNodeDefArray, getRemoteNodeTypeArray, getRemoteNodeTypeArray, getRemotePropertyArray, getRemotePropertyDefArray, getRemoteRowArray, getRemoteVersionArray, getRemoteVersionArray, 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(Session session,
RemoteAdapterFactory factory)
throws RemoteException
session - local sessionfactory - remote adapter factory
RemoteException - on RMI errors| Method Detail |
public String getUserID()
throws RemoteException
Session.getUserID() method.
getUserID in interface RemoteSessionRemoteException - on RMI errorsSession.getUserID()
public Object getAttribute(String name)
throws RemoteException
getAttribute in interface RemoteSessionname - attribute name
RemoteException - on RMI errorsSession.getAttribute(java.lang.String)
public String[] getAttributeNames()
throws RemoteException
Session.getAttributeNames()
method.
getAttributeNames in interface RemoteSessionRemoteException - on RMI errors
public RemoteSession impersonate(Credentials credentials)
throws RepositoryException,
RemoteException
Session.impersonate(Credentials)
method.
impersonate in interface RemoteSessioncredentials - credentials for the new session
RepositoryException - on repository errors
RemoteException - on RMI errors
public RemoteWorkspace getWorkspace()
throws RemoteException
Session.getWorkspace() method.
getWorkspace in interface RemoteSessionRemoteException - on RMI errorsSession.getWorkspace()
public void checkPermission(String path,
String actions)
throws AccessControlException,
RepositoryException,
RemoteException
Session.checkPermission(String,String)
method.
checkPermission in interface RemoteSessionpath - item pathactions - actions
RemoteException - on RMI errors
AccessControlException - if permission is denied
RepositoryException - on repository errors
public String getNamespacePrefix(String uri)
throws RepositoryException,
RemoteException
Session.getNamespacePrefix(String)
method.
getNamespacePrefix in interface RemoteSessionuri - namespace uri
RepositoryException - on repository errors
RemoteException - on RMI errors
public String[] getNamespacePrefixes()
throws RepositoryException,
RemoteException
Session.getNamespacePrefixes()
method.
getNamespacePrefixes in interface RemoteSessionRepositoryException - on repository errors
RemoteException - on RMI errors
public String getNamespaceURI(String prefix)
throws RepositoryException,
RemoteException
Session.getNamespaceURI(String)
method.
getNamespaceURI in interface RemoteSessionprefix - namespace prefix
RepositoryException - on repository errors
RemoteException - on RMI errors
public void setNamespacePrefix(String prefix,
String uri)
throws RepositoryException,
RemoteException
Session.setNamespacePrefix(String,String)
method.
setNamespacePrefix in interface RemoteSessionprefix - namespace prefixuri - namespace uri
RemoteException - on RMI errors
RepositoryException - on repository errors
public boolean itemExists(String path)
throws RepositoryException,
RemoteException
Session.itemExists(String)
method.
itemExists in interface RemoteSessionpath - item path
true if the item exists,
false otherwise
RemoteException - on RMI errors
RepositoryException - on repository exception
public RemoteNode getNodeByUUID(String uuid)
throws RepositoryException,
RemoteException
Session.getNodeByUUID(String)
method.
getNodeByUUID in interface RemoteSessionuuid - node uuid
RemoteException - on RMI errors
RepositoryException - on repository errors
public RemoteNode getRootNode()
throws RepositoryException,
RemoteException
Session.getRootNode() method.
getRootNode in interface RemoteSessionRepositoryException - on repository errors
RemoteException - on RMI errors
public RemoteItem getItem(String path)
throws RepositoryException,
RemoteException
Session.getItem(String)
method.
getItem in interface RemoteSessionpath - item path
RepositoryException - on repository errors
RemoteException - on RMI errors
public boolean hasPendingChanges()
throws RepositoryException,
RemoteException
Session.hasPendingChanges()
method.
hasPendingChanges in interface RemoteSessiontrue if the session has pending changes,
false otherwise
RemoteException - on RMI errors
RepositoryException - on repository errors
public void move(String from,
String to)
throws RepositoryException,
RemoteException
Session.move(String,String)
method.
move in interface RemoteSessionfrom - source pathto - destination path
RemoteException - on RMI errors
RepositoryException - on repository errors
public void save()
throws RepositoryException,
RemoteException
Session.save() method.
save in interface RemoteSessionRemoteException - on RMI errors
RepositoryException - on repository errors
public void refresh(boolean keepChanges)
throws RepositoryException,
RemoteException
Session.refresh(boolean)
method.
refresh in interface RemoteSessionkeepChanges - flag to keep transient changes
RepositoryException - on repository errors
RemoteException - on RMI errors
public void logout()
throws RemoteException
Session.logout()
method.
logout in interface RemoteSessionRemoteException - on RMI errors
public boolean isLive()
throws RemoteException
Session.isLive()
method.
isLive in interface RemoteSessiontrue if the session is live,
false otherwise
RemoteException - on RMI errors
public void importXML(String path,
byte[] xml,
int mode)
throws IOException,
RepositoryException,
RemoteException
ByteArrayInputStream and feed
it to the normal importXML method.
importXML in interface RemoteSessionpath - node pathxml - imported XML documentmode - UUID handling mode
RemoteException - on RMI errors
IOException - on IO errors
RepositoryException - on repository errorsSession.importXML(java.lang.String, java.io.InputStream, int)
public void addLockToken(String token)
throws RemoteException
Session.addLockToken(String)
method.
addLockToken in interface RemoteSessiontoken - lock token
RemoteException - on RMI errors
public String[] getLockTokens()
throws RemoteException
Session.getLockTokens()
method.
getLockTokens in interface RemoteSessionRemoteException - on RMI errors
public void removeLockToken(String token)
throws RemoteException
Session.removeLockToken(String)
method.
removeLockToken in interface RemoteSessiontoken - lock token
RemoteException - on RMI errors
public byte[] exportDocumentView(String path,
boolean binaryAsLink,
boolean noRecurse)
throws IOException,
RepositoryException,
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
IOException - on IO errors
RepositoryException - on repository errors
RemoteException - on RMI errorsSession.exportDocumentView(java.lang.String, org.xml.sax.ContentHandler, boolean, boolean)
public byte[] exportSystemView(String path,
boolean binaryAsLink,
boolean noRecurse)
throws IOException,
RepositoryException,
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
IOException - on IO errors
RepositoryException - on repository errors
RemoteException - on RMI 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 | ||||||||||