public interface RemoteSession extends Remote
Session
interface.
Used by the
ServerSession
and
ClientSession
adapters to provide transparent RMI access to remote sessions.
Most of the methods in this interface are documented only with a reference to a corresponding Session method. In these cases the remote object will simply forward the method call to the underlying Session instance. Complex return values like workspaces and other objects are returned as remote references to the corresponding remote interface. Simple return values and possible exceptions are simply copied over the network to the client. RMI errors are signaled with RemoteExceptions.
Session
,
ClientSession
,
ServerSession
Modifier and Type | Method and Description |
---|---|
void |
addLockToken(String name)
Remote version of the
Session.addLockToken(String)
method. |
byte[] |
exportDocumentView(String path,
boolean skipBinary,
boolean noRecurse)
Exports the identified repository subtree as a document view XML
stream.
|
byte[] |
exportSystemView(String path,
boolean skipBinary,
boolean noRecurse)
Exports the identified repository subtree as a system view XML
stream.
|
RemoteAccessControlManager |
getAccessControlManager()
Remote version of the
Session.getAccessControlManager() method. |
Object |
getAttribute(String name)
Returns the named attribute.
|
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 |
getNode(String path)
Remote version of the
Session.getNode(String)
method. |
RemoteNode |
getNodeByIdentifier(String id)
Remote version of the
Session.getNodeByIdentifier(String)
method. |
RemoteNode |
getNodeByUUID(String uuid)
Remote version of the
Session.getNodeByUUID(String)
method. |
RemoteProperty |
getProperty(String path)
Remote version of the
Session.getProperty(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. |
boolean |
hasPermission(String path,
String actions)
Remote version of the
Session.hasPermission(String,String)
method. |
RemoteSession |
impersonate(javax.jcr.Credentials credentials)
Remote version of the
Session.impersonate(Credentials)
method. |
void |
importXML(String path,
byte[] xml,
int uuidBehaviour)
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(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. |
boolean |
nodeExists(String path)
Remote version of the
Session.nodeExists(String)
method. |
boolean |
propertyExists(String path)
Remote version of the
Session.propertyExists(String)
method. |
void |
refresh(boolean keepChanges)
Remote version of the
Session.refresh(boolean)
method. |
void |
removeItem(String path)
Remote version of the
Session.removeItem(String)
method. |
void |
removeLockToken(String name)
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. |
String getUserID() throws RemoteException
Session.getUserID()
method.RemoteException
- on RMI errorsSession.getUserID()
Object getAttribute(String name) throws RemoteException
name
- attribute nameRemoteException
- on RMI errorsSession.getAttribute(java.lang.String)
String[] getAttributeNames() throws RemoteException
Session.getAttributeNames()
method.RemoteException
- on RMI errorsRemoteWorkspace getWorkspace() throws RemoteException
Session.getWorkspace()
method.RemoteException
- on RMI errorsSession.getWorkspace()
RemoteSession impersonate(javax.jcr.Credentials credentials) throws javax.jcr.RepositoryException, RemoteException
Session.impersonate(Credentials)
method.credentials
- credentials for the new sessionjavax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorsRemoteNode getNodeByIdentifier(String id) throws javax.jcr.RepositoryException, RemoteException
Session.getNodeByIdentifier(String)
method.id
- node identifierjavax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorsRemoteNode getNodeByUUID(String uuid) throws javax.jcr.RepositoryException, RemoteException
Session.getNodeByUUID(String)
method.uuid
- node uuidjavax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorsRemoteItem getItem(String path) throws javax.jcr.RepositoryException, RemoteException
Session.getItem(String)
method.path
- item pathjavax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorsRemoteNode getNode(String path) throws javax.jcr.RepositoryException, RemoteException
Session.getNode(String)
method.path
- node pathjavax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorsRemoteProperty getProperty(String path) throws javax.jcr.RepositoryException, RemoteException
Session.getProperty(String)
method.path
- property pathjavax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorsboolean itemExists(String path) throws javax.jcr.RepositoryException, RemoteException
Session.itemExists(String)
method.path
- item pathtrue
if the item exists,
false
otherwisejavax.jcr.RepositoryException
- on repository exceptionRemoteException
- on RMI errorsboolean nodeExists(String path) throws javax.jcr.RepositoryException, RemoteException
Session.nodeExists(String)
method.path
- node pathtrue
if the node exists,
false
otherwisejavax.jcr.RepositoryException
- on repository exceptionRemoteException
- on RMI errorsboolean propertyExists(String path) throws javax.jcr.RepositoryException, RemoteException
Session.propertyExists(String)
method.path
- property pathtrue
if the property exists,
false
otherwisejavax.jcr.RepositoryException
- on repository exceptionRemoteException
- on RMI errorsvoid removeItem(String path) throws javax.jcr.RepositoryException, RemoteException
Session.removeItem(String)
method.path
- item pathjavax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorsvoid move(String from, String to) throws javax.jcr.RepositoryException, RemoteException
Session.move(String,String)
method.from
- source pathto
- destination pathjavax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorsvoid save() throws javax.jcr.RepositoryException, RemoteException
Session.save()
method.javax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorsvoid refresh(boolean keepChanges) throws javax.jcr.RepositoryException, RemoteException
Session.refresh(boolean)
method.keepChanges
- flag to keep transient changesjavax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorsvoid logout() throws RemoteException
Session.logout()
method.RemoteException
- on RMI errorsboolean isLive() throws RemoteException
Session.isLive()
method.true
if the session is live,
false
otherwiseRemoteException
- on RMI errorsRemoteNode getRootNode() throws javax.jcr.RepositoryException, RemoteException
Session.getRootNode()
method.javax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorsboolean hasPendingChanges() throws javax.jcr.RepositoryException, RemoteException
Session.hasPendingChanges()
method.true
if the session has pending changes,
false
otherwisejavax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorsboolean hasPermission(String path, String actions) throws javax.jcr.RepositoryException, RemoteException
Session.hasPermission(String,String)
method.path
- item pathactions
- actionstrue
if permission is granted,
false
otherwisejavax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorsvoid importXML(String path, byte[] xml, int uuidBehaviour) throws IOException, javax.jcr.RepositoryException, RemoteException
ByteArrayInputStream
and feed
it to the normal importXML method.path
- node pathxml
- imported XML documentuuidBehaviour
- UUID handling modeIOException
- on IO errorsjavax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorsSession.importXML(java.lang.String, java.io.InputStream, int)
void setNamespacePrefix(String prefix, String uri) throws javax.jcr.RepositoryException, RemoteException
Session.setNamespacePrefix(String,String)
method.prefix
- namespace prefixuri
- namespace urijavax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorsString[] getNamespacePrefixes() throws javax.jcr.RepositoryException, RemoteException
Session.getNamespacePrefixes()
method.javax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorsString getNamespaceURI(String prefix) throws javax.jcr.RepositoryException, RemoteException
Session.getNamespaceURI(String)
method.prefix
- namespace prefixjavax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorsString getNamespacePrefix(String uri) throws javax.jcr.RepositoryException, RemoteException
Session.getNamespacePrefix(String)
method.uri
- namespace urijavax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorsvoid addLockToken(String name) throws RemoteException
Session.addLockToken(String)
method.name
- lock tokenRemoteException
- on RMI errorsString[] getLockTokens() throws RemoteException
Session.getLockTokens()
method.RemoteException
- on RMI errorsvoid removeLockToken(String name) throws RemoteException
Session.removeLockToken(String)
method.name
- lock tokenRemoteException
- on RMI errorsbyte[] exportSystemView(String path, boolean skipBinary, boolean noRecurse) throws IOException, javax.jcr.RepositoryException, RemoteException
ByteArrayOutputStream
to capture
the XML data written by the normal exportSysView method.path
- node pathskipBinary
- binary skip flagnoRecurse
- no recursion flagIOException
- on IO errorsjavax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorsSession.exportSystemView(java.lang.String, org.xml.sax.ContentHandler, boolean, boolean)
byte[] exportDocumentView(String path, boolean skipBinary, boolean noRecurse) throws IOException, javax.jcr.RepositoryException, RemoteException
ByteArrayOutputStream
to capture
the XML data written by the normal exportDocView method.path
- node pathskipBinary
- skip binary flagnoRecurse
- no recursion flagIOException
- on IO errorsjavax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorsSession.exportDocumentView(java.lang.String, org.xml.sax.ContentHandler, boolean, boolean)
RemoteAccessControlManager getAccessControlManager() throws javax.jcr.UnsupportedRepositoryOperationException, javax.jcr.RepositoryException, RemoteException
Session.getAccessControlManager()
method.javax.jcr.UnsupportedRepositoryOperationException
- if the remote session
does not support this methodjavax.jcr.RepositoryException
- if an error occurred getting the access
control managerRemoteException
- on RMI errorsCopyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.