Package org.apache.jackrabbit.rmi.remote
Interface RemoteSession
-
- All Superinterfaces:
Remote
- All Known Subinterfaces:
RemoteXASession
- All Known Implementing Classes:
ServerSession,ServerXASession
@Deprecated public interface RemoteSession extends Remote
Deprecated.RMI support is deprecated and will be removed in a future version of Jackrabbit; see Jira ticket JCR-4972 for more information.Remote version of the JCR
Sessioninterface. Used by theServerSessionandClientSessionadapters 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.
- See Also:
Session,ClientSession,ServerSession
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description voidaddLockToken(String name)Deprecated.Remote version of theSession.addLockToken(String)method.byte[]exportDocumentView(String path, boolean skipBinary, boolean noRecurse)Deprecated.Exports the identified repository subtree as a document view XML stream.byte[]exportSystemView(String path, boolean skipBinary, boolean noRecurse)Deprecated.Exports the identified repository subtree as a system view XML stream.RemoteAccessControlManagergetAccessControlManager()Deprecated.Remote version of theSession.getAccessControlManager()method.ObjectgetAttribute(String name)Deprecated.Returns the named attribute.String[]getAttributeNames()Deprecated.Remote version of theSession.getAttributeNames()method.RemoteItemgetItem(String path)Deprecated.Remote version of theSession.getItem(String)method.String[]getLockTokens()Deprecated.Remote version of theSession.getLockTokens()method.StringgetNamespacePrefix(String uri)Deprecated.Remote version of theSession.getNamespacePrefix(String)method.String[]getNamespacePrefixes()Deprecated.Remote version of theSession.getNamespacePrefixes()method.StringgetNamespaceURI(String prefix)Deprecated.Remote version of theSession.getNamespaceURI(String)method.RemoteNodegetNode(String path)Deprecated.Remote version of theSession.getNode(String)method.RemoteNodegetNodeByIdentifier(String id)Deprecated.Remote version of theSession.getNodeByIdentifier(String)method.RemoteNodegetNodeByUUID(String uuid)Deprecated.Remote version of theSession.getNodeByUUID(String)method.RemotePropertygetProperty(String path)Deprecated.Remote version of theSession.getProperty(String)method.RemoteNodegetRootNode()Deprecated.Remote version of theSession.getRootNode()method.StringgetUserID()Deprecated.Remote version of theSession.getUserID()method.RemoteWorkspacegetWorkspace()Deprecated.Remote version of theSession.getWorkspace()method.booleanhasPendingChanges()Deprecated.Remote version of theSession.hasPendingChanges()method.booleanhasPermission(String path, String actions)Deprecated.Remote version of theSession.hasPermission(String,String)method.RemoteSessionimpersonate(Credentials credentials)Deprecated.Remote version of theSession.impersonate(Credentials)method.voidimportXML(String path, byte[] xml, int uuidBehaviour)Deprecated.Imports the system or document view XML data into a subtree of the identified node.booleanisLive()Deprecated.Remote version of theSession.isLive()method.booleanitemExists(String path)Deprecated.Remote version of theSession.itemExists(String)method.voidlogout()Deprecated.Remote version of theSession.logout()method.voidmove(String from, String to)Deprecated.Remote version of theSession.move(String,String)method.booleannodeExists(String path)Deprecated.Remote version of theSession.nodeExists(String)method.booleanpropertyExists(String path)Deprecated.Remote version of theSession.propertyExists(String)method.voidrefresh(boolean keepChanges)Deprecated.Remote version of theSession.refresh(boolean)method.voidremoveItem(String path)Deprecated.Remote version of theSession.removeItem(String)method.voidremoveLockToken(String name)Deprecated.Remote version of theSession.removeLockToken(String)method.voidsave()Deprecated.Remote version of theSession.save()method.voidsetNamespacePrefix(String prefix, String uri)Deprecated.Remote version of theSession.setNamespacePrefix(String,String)method.
-
-
-
Method Detail
-
getUserID
String getUserID() throws RemoteException
Deprecated.Remote version of theSession.getUserID()method.- Returns:
- user id
- Throws:
RemoteException- on RMI errors- See Also:
Session.getUserID()
-
getAttribute
Object getAttribute(String name) throws RemoteException
Deprecated.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.- Parameters:
name- attribute name- Returns:
- attribute value
- Throws:
RemoteException- on RMI errors- See Also:
Session.getAttribute(java.lang.String)
-
getAttributeNames
String[] getAttributeNames() throws RemoteException
Deprecated.Remote version of theSession.getAttributeNames()method.- Returns:
- attribute names
- Throws:
RemoteException- on RMI errors
-
getWorkspace
RemoteWorkspace getWorkspace() throws RemoteException
Deprecated.Remote version of theSession.getWorkspace()method.- Returns:
- workspace
- Throws:
RemoteException- on RMI errors- See Also:
Session.getWorkspace()
-
impersonate
RemoteSession impersonate(Credentials credentials) throws RepositoryException, RemoteException
Deprecated.Remote version of theSession.impersonate(Credentials)method.- Parameters:
credentials- credentials for the new session- Returns:
- new session
- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
getNodeByIdentifier
RemoteNode getNodeByIdentifier(String id) throws RepositoryException, RemoteException
Deprecated.Remote version of theSession.getNodeByIdentifier(String)method.- Parameters:
id- node identifier- Returns:
- node
- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
getNodeByUUID
RemoteNode getNodeByUUID(String uuid) throws RepositoryException, RemoteException
Deprecated.Remote version of theSession.getNodeByUUID(String)method.- Parameters:
uuid- node uuid- Returns:
- node
- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
getItem
RemoteItem getItem(String path) throws RepositoryException, RemoteException
Deprecated.Remote version of theSession.getItem(String)method.- Parameters:
path- item path- Returns:
- item
- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
getNode
RemoteNode getNode(String path) throws RepositoryException, RemoteException
Deprecated.Remote version of theSession.getNode(String)method.- Parameters:
path- node path- Returns:
- node
- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
getProperty
RemoteProperty getProperty(String path) throws RepositoryException, RemoteException
Deprecated.Remote version of theSession.getProperty(String)method.- Parameters:
path- property path- Returns:
- property
- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
itemExists
boolean itemExists(String path) throws RepositoryException, RemoteException
Deprecated.Remote version of theSession.itemExists(String)method.- Parameters:
path- item path- Returns:
trueif the item exists,falseotherwise- Throws:
RepositoryException- on repository exceptionRemoteException- on RMI errors
-
nodeExists
boolean nodeExists(String path) throws RepositoryException, RemoteException
Deprecated.Remote version of theSession.nodeExists(String)method.- Parameters:
path- node path- Returns:
trueif the node exists,falseotherwise- Throws:
RepositoryException- on repository exceptionRemoteException- on RMI errors
-
propertyExists
boolean propertyExists(String path) throws RepositoryException, RemoteException
Deprecated.Remote version of theSession.propertyExists(String)method.- Parameters:
path- property path- Returns:
trueif the property exists,falseotherwise- Throws:
RepositoryException- on repository exceptionRemoteException- on RMI errors
-
removeItem
void removeItem(String path) throws RepositoryException, RemoteException
Deprecated.Remote version of theSession.removeItem(String)method.- Parameters:
path- item path- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
move
void move(String from, String to) throws RepositoryException, RemoteException
Deprecated.Remote version of theSession.move(String,String)method.- Parameters:
from- source pathto- destination path- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
save
void save() throws RepositoryException, RemoteException
Deprecated.Remote version of theSession.save()method.- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
refresh
void refresh(boolean keepChanges) throws RepositoryException, RemoteExceptionDeprecated.Remote version of theSession.refresh(boolean)method.- Parameters:
keepChanges- flag to keep transient changes- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
logout
void logout() throws RemoteExceptionDeprecated.Remote version of theSession.logout()method.- Throws:
RemoteException- on RMI errors
-
isLive
boolean isLive() throws RemoteExceptionDeprecated.Remote version of theSession.isLive()method.- Returns:
trueif the session is live,falseotherwise- Throws:
RemoteException- on RMI errors
-
getRootNode
RemoteNode getRootNode() throws RepositoryException, RemoteException
Deprecated.Remote version of theSession.getRootNode()method.- Returns:
- root node
- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
hasPendingChanges
boolean hasPendingChanges() throws RepositoryException, RemoteExceptionDeprecated.Remote version of theSession.hasPendingChanges()method.- Returns:
trueif the session has pending changes,falseotherwise- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
hasPermission
boolean hasPermission(String path, String actions) throws RepositoryException, RemoteException
Deprecated.Remote version of theSession.hasPermission(String,String)method.- Parameters:
path- item pathactions- actions- Returns:
trueif permission is granted,falseotherwise- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
importXML
void importXML(String path, byte[] xml, int uuidBehaviour) throws IOException, RepositoryException, RemoteException
Deprecated.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 aByteArrayInputStreamand feed it to the normal importXML method.- Parameters:
path- node pathxml- imported XML documentuuidBehaviour- UUID handling mode- Throws:
IOException- on IO errorsRepositoryException- on repository errorsRemoteException- on RMI errors- See Also:
Session.importXML(java.lang.String, java.io.InputStream, int)
-
setNamespacePrefix
void setNamespacePrefix(String prefix, String uri) throws RepositoryException, RemoteException
Deprecated.Remote version of theSession.setNamespacePrefix(String,String)method.- Parameters:
prefix- namespace prefixuri- namespace uri- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
getNamespacePrefixes
String[] getNamespacePrefixes() throws RepositoryException, RemoteException
Deprecated.Remote version of theSession.getNamespacePrefixes()method.- Returns:
- namespace prefixes
- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
getNamespaceURI
String getNamespaceURI(String prefix) throws RepositoryException, RemoteException
Deprecated.Remote version of theSession.getNamespaceURI(String)method.- Parameters:
prefix- namespace prefix- Returns:
- namespace uri
- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
getNamespacePrefix
String getNamespacePrefix(String uri) throws RepositoryException, RemoteException
Deprecated.Remote version of theSession.getNamespacePrefix(String)method.- Parameters:
uri- namespace uri- Returns:
- namespace prefix
- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
addLockToken
void addLockToken(String name) throws RemoteException
Deprecated.Remote version of theSession.addLockToken(String)method.- Parameters:
name- lock token- Throws:
RemoteException- on RMI errors
-
getLockTokens
String[] getLockTokens() throws RemoteException
Deprecated.Remote version of theSession.getLockTokens()method.- Returns:
- lock tokens
- Throws:
RemoteException- on RMI errors
-
removeLockToken
void removeLockToken(String name) throws RemoteException
Deprecated.Remote version of theSession.removeLockToken(String)method.- Parameters:
name- lock token- Throws:
RemoteException- on RMI errors
-
exportSystemView
byte[] exportSystemView(String path, boolean skipBinary, boolean noRecurse) throws IOException, RepositoryException, RemoteException
Deprecated.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 aByteArrayOutputStreamto capture the XML data written by the normal exportSysView method.- Parameters:
path- node pathskipBinary- binary skip flagnoRecurse- no recursion flag- Returns:
- exported XML document
- Throws:
IOException- on IO errorsRepositoryException- on repository errorsRemoteException- on RMI errors- See Also:
Session.exportSystemView(java.lang.String, org.xml.sax.ContentHandler, boolean, boolean)
-
exportDocumentView
byte[] exportDocumentView(String path, boolean skipBinary, boolean noRecurse) throws IOException, RepositoryException, RemoteException
Deprecated.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 aByteArrayOutputStreamto capture the XML data written by the normal exportDocView method.- Parameters:
path- node pathskipBinary- skip binary flagnoRecurse- no recursion flag- Returns:
- exported XML document
- Throws:
IOException- on IO errorsRepositoryException- on repository errorsRemoteException- on RMI errors- See Also:
Session.exportDocumentView(java.lang.String, org.xml.sax.ContentHandler, boolean, boolean)
-
getAccessControlManager
RemoteAccessControlManager getAccessControlManager() throws UnsupportedRepositoryOperationException, RepositoryException, RemoteException
Deprecated.Remote version of theSession.getAccessControlManager()method.- Throws:
UnsupportedRepositoryOperationException- if the remote session does not support this methodRepositoryException- if an error occurred getting the access control managerRemoteException- on RMI errors
-
-