|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Remote version of the JCR 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 signalled with RemoteExceptions.
Session
,
ClientSession
,
ServerSession
Method Summary | |
void |
addLockToken(String name)
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 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. |
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 |
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 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. |
void |
refresh(boolean keepChanges)
Remote version of the Session.refresh(boolean)
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. |
Method Detail |
public String getUserID() throws RemoteException
Session.getUserID()
method.
RemoteException
- on RMI errorsSession.getUserID()
public Object getAttribute(String name) throws RemoteException
name
- attribute name
RemoteException
- on RMI errorsSession.getAttribute(java.lang.String)
public String[] getAttributeNames() throws RemoteException
Session.getAttributeNames()
method.
RemoteException
- on RMI errorspublic RemoteWorkspace getWorkspace() throws RemoteException
Session.getWorkspace()
method.
RemoteException
- on RMI errorsSession.getWorkspace()
public RemoteSession impersonate(Credentials credentials) throws RepositoryException, RemoteException
Session.impersonate(Credentials)
method.
credentials
- credentials for the new session
RepositoryException
- on repository errors
RemoteException
- on RMI errorspublic RemoteNode getNodeByUUID(String uuid) throws RepositoryException, RemoteException
Session.getNodeByUUID(String)
method.
uuid
- node uuid
RepositoryException
- on repository errors
RemoteException
- on RMI errorspublic RemoteItem getItem(String path) throws RepositoryException, RemoteException
Session.getItem(String)
method.
path
- item path
RepositoryException
- on repository errors
RemoteException
- on RMI errorspublic boolean itemExists(String path) throws RepositoryException, RemoteException
Session.itemExists(String)
method.
path
- item path
true
if the item exists,
false
otherwise
RepositoryException
- on repository exception
RemoteException
- on RMI errorspublic void move(String from, String to) throws RepositoryException, RemoteException
Session.move(String,String)
method.
from
- source pathto
- destination path
RepositoryException
- on repository errors
RemoteException
- on RMI errorspublic void save() throws RepositoryException, RemoteException
Session.save()
method.
RepositoryException
- on repository errors
RemoteException
- on RMI errorspublic void refresh(boolean keepChanges) throws RepositoryException, RemoteException
Session.refresh(boolean)
method.
keepChanges
- flag to keep transient changes
RepositoryException
- on repository errors
RemoteException
- on RMI errorspublic void logout() throws RemoteException
Session.logout()
method.
RemoteException
- on RMI errorspublic boolean isLive() throws RemoteException
Session.isLive()
method.
true
if the session is live,
false
otherwise
RemoteException
- on RMI errorspublic RemoteNode getRootNode() throws RepositoryException, RemoteException
Session.getRootNode()
method.
RepositoryException
- on repository errors
RemoteException
- on RMI errorspublic boolean hasPendingChanges() throws RepositoryException, RemoteException
Session.hasPendingChanges()
method.
true
if the session has pending changes,
false
otherwise
RepositoryException
- on repository errors
RemoteException
- on RMI errorspublic void checkPermission(String path, String actions) throws AccessControlException, RepositoryException, RemoteException
Session.checkPermission(String,String)
method.
path
- item pathactions
- actions
AccessControlException
- if permission is denied
RepositoryException
- on repository errors
RemoteException
- on RMI errorspublic void importXML(String path, byte[] xml, int uuidBehaviour) throws IOException, RepositoryException, RemoteException
ByteArrayInputStream
and feed
it to the normal importXML method.
path
- node pathxml
- imported XML documentuuidBehaviour
- UUID handling mode
IOException
- on IO errors
RepositoryException
- on repository errors
RemoteException
- on RMI errorsSession.importXML(java.lang.String, java.io.InputStream, int)
public void setNamespacePrefix(String prefix, String uri) throws RepositoryException, RemoteException
Session.setNamespacePrefix(String,String)
method.
prefix
- namespace prefixuri
- namespace uri
RepositoryException
- on repository errors
RemoteException
- on RMI errorspublic String[] getNamespacePrefixes() throws RepositoryException, RemoteException
Session.getNamespacePrefixes()
method.
RepositoryException
- on repository errors
RemoteException
- on RMI errorspublic String getNamespaceURI(String prefix) throws RepositoryException, RemoteException
Session.getNamespaceURI(String)
method.
prefix
- namespace prefix
RepositoryException
- on repository errors
RemoteException
- on RMI errorspublic String getNamespacePrefix(String uri) throws RepositoryException, RemoteException
Session.getNamespacePrefix(String)
method.
uri
- namespace uri
RepositoryException
- on repository errors
RemoteException
- on RMI errorspublic void addLockToken(String name) throws RemoteException
Session.addLockToken(String)
method.
name
- lock token
RemoteException
- on RMI errorspublic String[] getLockTokens() throws RemoteException
Session.getLockTokens()
method.
RemoteException
- on RMI errorspublic void removeLockToken(String name) throws RemoteException
Session.removeLockToken(String)
method.
name
- lock token
RemoteException
- on RMI errorspublic byte[] exportSystemView(String path, boolean skipBinary, boolean noRecurse) throws IOException, RepositoryException, RemoteException
ByteArrayOutputStream
to capture
the XML data written by the normal exportSysView method.
path
- node pathskipBinary
- 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)
public byte[] exportDocumentView(String path, boolean skipBinary, boolean noRecurse) throws IOException, RepositoryException, RemoteException
ByteArrayOutputStream
to capture
the XML data written by the normal exportDocView method.
path
- node pathskipBinary
- 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)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |