|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.services.jcr.rmi.api.client.ClientObject
org.exoplatform.services.jcr.rmi.api.client.ClientSession
public class ClientSession
Local adapter for the JCR-RMI RemoteSession inteface. This class makes a remote session locally available using the JCR
Session interface.
Session,
RemoteSession| Constructor Summary | |
|---|---|
ClientSession(javax.jcr.Repository repository,
RemoteSession remote,
LocalAdapterFactory factory)
Creates a client adapter for the given remote session. |
|
| Method Summary | |
|---|---|
void |
addLockToken(java.lang.String name)
|
void |
checkPermission(java.lang.String path,
java.lang.String actions)
|
void |
exportDocumentView(java.lang.String path,
org.xml.sax.ContentHandler handler,
boolean binaryAsLink,
boolean noRecurse)
Exports the XML document view of the specified repository location to the given XML content handler. |
void |
exportDocumentView(java.lang.String path,
java.io.OutputStream output,
boolean binaryAsLink,
boolean noRecurse)
Exports the XML document view of the specified repository location to the given output stream. |
void |
exportSystemView(java.lang.String path,
org.xml.sax.ContentHandler handler,
boolean binaryAsLink,
boolean noRecurse)
Exports the XML system view of the specified repository location to the given XML content handler. |
void |
exportSystemView(java.lang.String path,
java.io.OutputStream output,
boolean binaryAsLink,
boolean noRecurse)
Exports the XML system view of the specified repository location to the given output stream. |
java.lang.String[] |
getAllNamespacePrefixes()
|
java.lang.Object |
getAttribute(java.lang.String name)
|
java.lang.String[] |
getAttributeNames()
|
org.xml.sax.ContentHandler |
getImportContentHandler(java.lang.String path,
int mode)
|
javax.jcr.Item |
getItem(java.lang.String path)
|
java.lang.String[] |
getLockTokens()
|
java.lang.String |
getNamespacePrefix(java.lang.String uri)
|
java.lang.String |
getNamespacePrefixByURI(java.lang.String uri)
|
java.lang.String[] |
getNamespacePrefixes()
|
java.lang.String |
getNamespaceURI(java.lang.String prefix)
|
java.lang.String |
getNamespaceURIByPrefix(java.lang.String prefix)
|
javax.jcr.Node |
getNodeByUUID(java.lang.String uuid)
|
javax.jcr.Repository |
getRepository()
Returns the current repository without contacting the remote session. |
javax.jcr.Node |
getRootNode()
|
java.lang.String |
getUserID()
|
javax.jcr.ValueFactory |
getValueFactory()
Returns the SerialValueFactory.getInstance(). |
javax.jcr.Workspace |
getWorkspace()
|
boolean |
hasPendingChanges()
|
javax.jcr.Session |
impersonate(javax.jcr.Credentials credentials)
|
void |
importXML(java.lang.String path,
java.io.InputStream xml,
int mode)
|
boolean |
isLive()
|
boolean |
itemExists(java.lang.String path)
|
void |
logout()
|
void |
move(java.lang.String from,
java.lang.String to)
|
void |
refresh(boolean keepChanges)
|
void |
removeLockToken(java.lang.String name)
|
void |
save()
|
void |
setNamespacePrefix(java.lang.String prefix,
java.lang.String uri)
|
| Methods inherited from class org.exoplatform.services.jcr.rmi.api.client.ClientObject |
|---|
getFactory, getItem, getNode, getNodeTypeArray |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ClientSession(javax.jcr.Repository repository,
RemoteSession remote,
LocalAdapterFactory factory)
repository - current repositoryremote - remote repositoryfactory - local adapter factory| Method Detail |
|---|
public javax.jcr.Repository getRepository()
getRepository in interface javax.jcr.Sessionpublic java.lang.String getUserID()
getUserID in interface javax.jcr.Sessionpublic java.lang.Object getAttribute(java.lang.String name)
getAttribute in interface javax.jcr.Sessionpublic java.lang.String[] getAttributeNames()
getAttributeNames in interface javax.jcr.Sessionpublic javax.jcr.Workspace getWorkspace()
getWorkspace in interface javax.jcr.Session
public javax.jcr.Session impersonate(javax.jcr.Credentials credentials)
throws javax.jcr.RepositoryException
impersonate in interface javax.jcr.Sessionjavax.jcr.RepositoryException
public javax.jcr.Node getRootNode()
throws javax.jcr.RepositoryException
getRootNode in interface javax.jcr.Sessionjavax.jcr.RepositoryException
public javax.jcr.Node getNodeByUUID(java.lang.String uuid)
throws javax.jcr.RepositoryException
getNodeByUUID in interface javax.jcr.Sessionjavax.jcr.RepositoryException
public javax.jcr.Item getItem(java.lang.String path)
throws javax.jcr.RepositoryException
getItem in interface javax.jcr.Sessionjavax.jcr.RepositoryException
public boolean itemExists(java.lang.String path)
throws javax.jcr.RepositoryException
itemExists in interface javax.jcr.Sessionjavax.jcr.RepositoryException
public void move(java.lang.String from,
java.lang.String to)
throws javax.jcr.RepositoryException
move in interface javax.jcr.Sessionjavax.jcr.RepositoryException
public void save()
throws javax.jcr.RepositoryException
save in interface javax.jcr.Sessionjavax.jcr.RepositoryException
public void refresh(boolean keepChanges)
throws javax.jcr.RepositoryException
refresh in interface javax.jcr.Sessionjavax.jcr.RepositoryException
public boolean hasPendingChanges()
throws javax.jcr.RepositoryException
hasPendingChanges in interface javax.jcr.Sessionjavax.jcr.RepositoryExceptionpublic javax.jcr.ValueFactory getValueFactory()
SerialValueFactory.getInstance().
getValueFactory in interface javax.jcr.Session
public void checkPermission(java.lang.String path,
java.lang.String actions)
throws java.security.AccessControlException,
javax.jcr.RepositoryException
checkPermission in interface javax.jcr.Sessionjava.security.AccessControlException
javax.jcr.RepositoryException
public void importXML(java.lang.String path,
java.io.InputStream xml,
int mode)
throws java.io.IOException,
javax.jcr.RepositoryException
importXML in interface javax.jcr.Sessionjava.io.IOException
javax.jcr.RepositoryException
public org.xml.sax.ContentHandler getImportContentHandler(java.lang.String path,
int mode)
throws javax.jcr.RepositoryException
getImportContentHandler in interface javax.jcr.Sessionjavax.jcr.RepositoryException
public void setNamespacePrefix(java.lang.String prefix,
java.lang.String uri)
throws javax.jcr.RepositoryException
setNamespacePrefix in interface javax.jcr.Sessionjavax.jcr.RepositoryException
public java.lang.String[] getNamespacePrefixes()
throws javax.jcr.RepositoryException
getNamespacePrefixes in interface javax.jcr.Sessionjavax.jcr.RepositoryException
public java.lang.String getNamespaceURI(java.lang.String prefix)
throws javax.jcr.RepositoryException
getNamespaceURI in interface javax.jcr.Sessionjavax.jcr.RepositoryException
public java.lang.String getNamespacePrefix(java.lang.String uri)
throws javax.jcr.RepositoryException
getNamespacePrefix in interface javax.jcr.Sessionjavax.jcr.RepositoryExceptionpublic void logout()
logout in interface javax.jcr.Sessionpublic void addLockToken(java.lang.String name)
addLockToken in interface javax.jcr.Sessionpublic java.lang.String[] getLockTokens()
getLockTokens in interface javax.jcr.Sessionpublic void removeLockToken(java.lang.String name)
removeLockToken in interface javax.jcr.Session
public void exportSystemView(java.lang.String path,
org.xml.sax.ContentHandler handler,
boolean binaryAsLink,
boolean noRecurse)
throws org.xml.sax.SAXException,
javax.jcr.RepositoryException
exportSystemView in interface javax.jcr.Sessionorg.xml.sax.SAXException
javax.jcr.RepositoryException
public void exportSystemView(java.lang.String path,
java.io.OutputStream output,
boolean binaryAsLink,
boolean noRecurse)
throws java.io.IOException,
javax.jcr.RepositoryException
exportSystemView in interface javax.jcr.Sessionjava.io.IOException
javax.jcr.RepositoryException
public void exportDocumentView(java.lang.String path,
org.xml.sax.ContentHandler handler,
boolean binaryAsLink,
boolean noRecurse)
throws org.xml.sax.SAXException,
javax.jcr.RepositoryException
exportDocumentView in interface javax.jcr.Sessionorg.xml.sax.SAXException
javax.jcr.RepositoryException
public void exportDocumentView(java.lang.String path,
java.io.OutputStream output,
boolean binaryAsLink,
boolean noRecurse)
throws java.io.IOException,
javax.jcr.RepositoryException
exportDocumentView in interface javax.jcr.Sessionjava.io.IOException
javax.jcr.RepositoryExceptionpublic boolean isLive()
isLive in interface javax.jcr.Session
public java.lang.String[] getAllNamespacePrefixes()
throws javax.jcr.RepositoryException
getAllNamespacePrefixes in interface NamespaceAccessorjavax.jcr.RepositoryException
public java.lang.String getNamespacePrefixByURI(java.lang.String uri)
throws javax.jcr.NamespaceException,
javax.jcr.RepositoryException
getNamespacePrefixByURI in interface NamespaceAccessorjavax.jcr.NamespaceException
javax.jcr.RepositoryException
public java.lang.String getNamespaceURIByPrefix(java.lang.String prefix)
throws javax.jcr.NamespaceException,
javax.jcr.RepositoryException
getNamespaceURIByPrefix in interface NamespaceAccessorjavax.jcr.NamespaceException
javax.jcr.RepositoryException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||