|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.rmi.client.ClientObject
org.apache.jackrabbit.rmi.client.ClientSession
public class ClientSession
Local adapter for the JCR-RMI
RemoteSession
interface. This class makes a remote session locally available using
the JCR Session interface.
Session,
RemoteSession| Field Summary | |
|---|---|
protected RemoteSession |
remote
The adapted remote session. |
| Fields inherited from interface javax.jcr.Session |
|---|
ACTION_ADD_NODE, ACTION_READ, ACTION_REMOVE, ACTION_SET_PROPERTY |
| Constructor Summary | |
|---|---|
ClientSession(Repository repository,
RemoteSession remote,
LocalAdapterFactory factory)
Creates a client adapter for the given remote session. |
|
| Method Summary | |
|---|---|
void |
addLockToken(String name)
|
void |
checkPermission(String path,
String actions)
|
void |
exportDocumentView(String path,
ContentHandler handler,
boolean binaryAsLink,
boolean noRecurse)
Exports the XML document view of the specified repository location to the given XML content handler. |
void |
exportDocumentView(String path,
OutputStream output,
boolean binaryAsLink,
boolean noRecurse)
Exports the XML document view of the specified repository location to the given output stream. |
void |
exportSystemView(String path,
ContentHandler handler,
boolean binaryAsLink,
boolean noRecurse)
Exports the XML system view of the specified repository location to the given XML content handler. |
void |
exportSystemView(String path,
OutputStream output,
boolean binaryAsLink,
boolean noRecurse)
Exports the XML system view of the specified repository location to the given output stream. |
AccessControlManager |
getAccessControlManager()
|
Object |
getAttribute(String name)
|
String[] |
getAttributeNames()
|
ContentHandler |
getImportContentHandler(String path,
int mode)
|
Item |
getItem(String path)
|
String[] |
getLockTokens()
|
String |
getNamespacePrefix(String uri)
|
String[] |
getNamespacePrefixes()
|
String |
getNamespaceURI(String prefix)
|
Node |
getNode(String path)
|
Node |
getNodeByIdentifier(String id)
|
Node |
getNodeByUUID(String uuid)
|
Property |
getProperty(String path)
|
Repository |
getRepository()
Returns the current repository without contacting the remote session. |
RetentionManager |
getRetentionManager()
|
Node |
getRootNode()
|
String |
getUserID()
|
ValueFactory |
getValueFactory()
Returns the SerialValueFactory.getInstance(). |
Workspace |
getWorkspace()
|
boolean |
hasCapability(String methodName,
Object target,
Object[] arguments)
|
boolean |
hasPendingChanges()
|
boolean |
hasPermission(String path,
String actions)
|
Session |
impersonate(Credentials credentials)
|
void |
importXML(String path,
InputStream xml,
int mode)
|
boolean |
isLive()
|
boolean |
itemExists(String path)
|
void |
logout()
|
void |
move(String from,
String to)
|
boolean |
nodeExists(String path)
|
boolean |
propertyExists(String path)
|
void |
refresh(boolean keepChanges)
|
void |
removeItem(String path)
|
void |
removeLockToken(String name)
|
void |
save()
|
void |
setNamespacePrefix(String prefix,
String uri)
|
| Methods inherited from class org.apache.jackrabbit.rmi.client.ClientObject |
|---|
getFactory, getItem, getNode, getNodeTypeArray |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final RemoteSession remote
| Constructor Detail |
|---|
public ClientSession(Repository repository,
RemoteSession remote,
LocalAdapterFactory factory)
repository - current repositoryremote - remote repositoryfactory - local adapter factory| Method Detail |
|---|
public Repository getRepository()
getRepository in interface Sessionpublic String getUserID()
getUserID in interface Sessionpublic Object getAttribute(String name)
getAttribute in interface Sessionpublic String[] getAttributeNames()
getAttributeNames in interface Sessionpublic Workspace getWorkspace()
getWorkspace in interface Session
public Session impersonate(Credentials credentials)
throws RepositoryException
impersonate in interface SessionRepositoryException
public Node getRootNode()
throws RepositoryException
getRootNode in interface SessionRepositoryException
public Node getNodeByIdentifier(String id)
throws RepositoryException
getNodeByIdentifier in interface SessionRepositoryException
public Node getNodeByUUID(String uuid)
throws RepositoryException
getNodeByUUID in interface SessionRepositoryException
public Item getItem(String path)
throws RepositoryException
getItem in interface SessionRepositoryException
public Node getNode(String path)
throws RepositoryException
getNode in interface SessionRepositoryException
public Property getProperty(String path)
throws RepositoryException
getProperty in interface SessionRepositoryException
public boolean itemExists(String path)
throws RepositoryException
itemExists in interface SessionRepositoryException
public boolean nodeExists(String path)
throws RepositoryException
nodeExists in interface SessionRepositoryException
public boolean propertyExists(String path)
throws RepositoryException
propertyExists in interface SessionRepositoryException
public void removeItem(String path)
throws RepositoryException
removeItem in interface SessionRepositoryException
public void move(String from,
String to)
throws RepositoryException
move in interface SessionRepositoryException
public void save()
throws RepositoryException
save in interface SessionRepositoryException
public void refresh(boolean keepChanges)
throws RepositoryException
refresh in interface SessionRepositoryException
public boolean hasPendingChanges()
throws RepositoryException
hasPendingChanges in interface SessionRepositoryExceptionpublic ValueFactory getValueFactory()
SerialValueFactory.getInstance().
getValueFactory in interface Session
public void checkPermission(String path,
String actions)
throws AccessControlException,
RepositoryException
checkPermission in interface SessionAccessControlException
RepositoryException
public boolean hasPermission(String path,
String actions)
throws RepositoryException
hasPermission in interface SessionRepositoryException
public void importXML(String path,
InputStream xml,
int mode)
throws IOException,
RepositoryException
importXML in interface SessionIOException
RepositoryException
public ContentHandler getImportContentHandler(String path,
int mode)
throws RepositoryException
getImportContentHandler in interface SessionRepositoryException
public void setNamespacePrefix(String prefix,
String uri)
throws RepositoryException
setNamespacePrefix in interface SessionRepositoryException
public String[] getNamespacePrefixes()
throws RepositoryException
getNamespacePrefixes in interface SessionRepositoryException
public String getNamespaceURI(String prefix)
throws RepositoryException
getNamespaceURI in interface SessionRepositoryException
public String getNamespacePrefix(String uri)
throws RepositoryException
getNamespacePrefix in interface SessionRepositoryExceptionpublic void logout()
logout in interface Sessionpublic void addLockToken(String name)
addLockToken in interface Sessionpublic String[] getLockTokens()
getLockTokens in interface Sessionpublic void removeLockToken(String name)
removeLockToken in interface Session
public void exportSystemView(String path,
ContentHandler handler,
boolean binaryAsLink,
boolean noRecurse)
throws SAXException,
RepositoryException
exportSystemView in interface SessionSAXException
RepositoryException
public void exportSystemView(String path,
OutputStream output,
boolean binaryAsLink,
boolean noRecurse)
throws IOException,
RepositoryException
exportSystemView in interface SessionIOException
RepositoryException
public void exportDocumentView(String path,
ContentHandler handler,
boolean binaryAsLink,
boolean noRecurse)
throws SAXException,
RepositoryException
exportDocumentView in interface SessionSAXException
RepositoryException
public void exportDocumentView(String path,
OutputStream output,
boolean binaryAsLink,
boolean noRecurse)
throws IOException,
RepositoryException
exportDocumentView in interface SessionIOException
RepositoryExceptionpublic boolean isLive()
isLive in interface Session
public AccessControlManager getAccessControlManager()
throws UnsupportedRepositoryOperationException,
RepositoryException
getAccessControlManager in interface SessionUnsupportedRepositoryOperationException
RepositoryException
public RetentionManager getRetentionManager()
throws RepositoryException
getRetentionManager in interface SessionRepositoryException
public boolean hasCapability(String methodName,
Object target,
Object[] arguments)
throws RepositoryException
hasCapability in interface SessionRepositoryException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||