|
||||||||||
| 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.ClientItem
org.exoplatform.services.jcr.rmi.api.client.ClientNode
public class ClientNode
Local adapter for the JCR-RMI RemoteNode inteface. This class makes a remote node locally available using the JCR
Node interface.
Node,
RemoteNode| Constructor Summary | |
|---|---|
ClientNode(javax.jcr.Session session,
RemoteNode remote,
LocalAdapterFactory factory)
Creates a local adapter for the given remote node. |
|
| Method Summary | |
|---|---|
void |
accept(javax.jcr.ItemVisitor visitor)
Calls the ItemVisitor.visit(Node) method of the given visitor. |
void |
addMixin(java.lang.String name)
|
javax.jcr.Node |
addNode(java.lang.String path)
|
javax.jcr.Node |
addNode(java.lang.String path,
java.lang.String type)
|
boolean |
canAddMixin(java.lang.String name)
|
void |
cancelMerge(javax.jcr.version.Version version)
|
javax.jcr.version.Version |
checkin()
|
void |
checkout()
|
void |
doneMerge(javax.jcr.version.Version version)
|
javax.jcr.version.Version |
getBaseVersion()
|
java.lang.String |
getCorrespondingNodePath(java.lang.String workspace)
|
javax.jcr.nodetype.NodeDefinition |
getDefinition()
|
int |
getIndex()
|
javax.jcr.lock.Lock |
getLock()
|
javax.jcr.nodetype.NodeType[] |
getMixinNodeTypes()
|
javax.jcr.Node |
getNode(java.lang.String path)
|
javax.jcr.NodeIterator |
getNodes()
|
javax.jcr.NodeIterator |
getNodes(java.lang.String pattern)
|
javax.jcr.Item |
getPrimaryItem()
|
javax.jcr.nodetype.NodeType |
getPrimaryNodeType()
|
javax.jcr.PropertyIterator |
getProperties()
|
javax.jcr.PropertyIterator |
getProperties(java.lang.String pattern)
|
javax.jcr.Property |
getProperty(java.lang.String path)
|
javax.jcr.PropertyIterator |
getReferences()
|
java.lang.String |
getUUID()
|
javax.jcr.version.VersionHistory |
getVersionHistory()
|
int |
hashCode()
|
boolean |
hasNode(java.lang.String path)
|
boolean |
hasNodes()
|
boolean |
hasProperties()
|
boolean |
hasProperty(java.lang.String path)
|
boolean |
holdsLock()
|
boolean |
isCheckedOut()
|
boolean |
isLocked()
|
boolean |
isNode()
Returns true without contacting the remote node. |
boolean |
isNodeType(java.lang.String type)
|
javax.jcr.lock.Lock |
lock(boolean isDeep,
boolean isSessionScoped)
|
javax.jcr.NodeIterator |
merge(java.lang.String workspace,
boolean bestEffort)
|
void |
orderBefore(java.lang.String src,
java.lang.String dst)
|
void |
removeMixin(java.lang.String name)
|
void |
restore(java.lang.String version,
boolean removeExisting)
|
void |
restore(javax.jcr.version.Version version,
boolean removeExisting)
|
void |
restore(javax.jcr.version.Version version,
java.lang.String path,
boolean removeExisting)
|
void |
restoreByLabel(java.lang.String label,
boolean removeExisting)
|
javax.jcr.Property |
setProperty(java.lang.String name,
boolean value)
|
javax.jcr.Property |
setProperty(java.lang.String name,
java.util.Calendar value)
|
javax.jcr.Property |
setProperty(java.lang.String name,
double value)
|
javax.jcr.Property |
setProperty(java.lang.String name,
java.io.InputStream value)
|
javax.jcr.Property |
setProperty(java.lang.String name,
long value)
|
javax.jcr.Property |
setProperty(java.lang.String name,
javax.jcr.Node value)
|
javax.jcr.Property |
setProperty(java.lang.String name,
java.lang.String value)
|
javax.jcr.Property |
setProperty(java.lang.String name,
java.lang.String[] strings)
|
javax.jcr.Property |
setProperty(java.lang.String name,
java.lang.String[] strings,
int type)
|
javax.jcr.Property |
setProperty(java.lang.String name,
java.lang.String value,
int type)
|
javax.jcr.Property |
setProperty(java.lang.String name,
javax.jcr.Value value)
|
javax.jcr.Property |
setProperty(java.lang.String name,
javax.jcr.Value[] values)
|
javax.jcr.Property |
setProperty(java.lang.String name,
javax.jcr.Value[] values,
int type)
|
javax.jcr.Property |
setProperty(java.lang.String name,
javax.jcr.Value value,
int type)
|
void |
unlock()
|
void |
update(java.lang.String workspace)
|
| Methods inherited from class org.exoplatform.services.jcr.rmi.api.client.ClientItem |
|---|
equals, getAncestor, getDepth, getName, getParent, getPath, getSession, isModified, isNew, isSame, refresh, remove, save |
| Methods inherited from class org.exoplatform.services.jcr.rmi.api.client.ClientObject |
|---|
getFactory, getItem, getNode, getNodeTypeArray |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.jcr.Item |
|---|
getAncestor, getDepth, getName, getParent, getPath, getSession, isModified, isNew, isSame, refresh, remove, save |
| Constructor Detail |
|---|
public ClientNode(javax.jcr.Session session,
RemoteNode remote,
LocalAdapterFactory factory)
session - current sessionremote - remote nodefactory - local adapter factory| Method Detail |
|---|
public int hashCode()
hashCode in class java.lang.Objectpublic boolean isNode()
true without contacting the remote node. Returns false by default without contacting the remote item. This method should be overridden
by Node subclasses.
isNode in interface javax.jcr.ItemisNode in class ClientItem
public void accept(javax.jcr.ItemVisitor visitor)
throws javax.jcr.RepositoryException
ItemVisitor.visit(Node) method of the given visitor.
Does not contact the remote node, but the visitor may invoke other methods that do contact the
remote node. Accepts the visitor to visit this item. Node and Property
subclasses should override this method to call the appropriate ItemVisitor
methods, as the default implementation does nothing.
accept in interface javax.jcr.Itemaccept in class ClientItemjavax.jcr.RepositoryException
public javax.jcr.Node addNode(java.lang.String path)
throws javax.jcr.RepositoryException
addNode in interface javax.jcr.Nodejavax.jcr.RepositoryException
public javax.jcr.Node addNode(java.lang.String path,
java.lang.String type)
throws javax.jcr.RepositoryException
addNode in interface javax.jcr.Nodejavax.jcr.RepositoryException
public void orderBefore(java.lang.String src,
java.lang.String dst)
throws javax.jcr.RepositoryException
orderBefore in interface javax.jcr.Nodejavax.jcr.RepositoryException
public javax.jcr.Property setProperty(java.lang.String name,
javax.jcr.Value value)
throws javax.jcr.RepositoryException
setProperty in interface javax.jcr.Nodejavax.jcr.RepositoryException
public javax.jcr.Property setProperty(java.lang.String name,
javax.jcr.Value[] values)
throws javax.jcr.RepositoryException
setProperty in interface javax.jcr.Nodejavax.jcr.RepositoryException
public javax.jcr.Property setProperty(java.lang.String name,
java.lang.String[] strings)
throws javax.jcr.RepositoryException
setProperty in interface javax.jcr.Nodejavax.jcr.RepositoryException
public javax.jcr.Property setProperty(java.lang.String name,
java.lang.String value)
throws javax.jcr.RepositoryException
setProperty in interface javax.jcr.Nodejavax.jcr.RepositoryException
public javax.jcr.Property setProperty(java.lang.String name,
java.io.InputStream value)
throws javax.jcr.RepositoryException
setProperty in interface javax.jcr.Nodejavax.jcr.RepositoryException
public javax.jcr.Property setProperty(java.lang.String name,
boolean value)
throws javax.jcr.RepositoryException
setProperty in interface javax.jcr.Nodejavax.jcr.RepositoryException
public javax.jcr.Property setProperty(java.lang.String name,
double value)
throws javax.jcr.RepositoryException
setProperty in interface javax.jcr.Nodejavax.jcr.RepositoryException
public javax.jcr.Property setProperty(java.lang.String name,
long value)
throws javax.jcr.RepositoryException
setProperty in interface javax.jcr.Nodejavax.jcr.RepositoryException
public javax.jcr.Property setProperty(java.lang.String name,
java.util.Calendar value)
throws javax.jcr.RepositoryException
setProperty in interface javax.jcr.Nodejavax.jcr.RepositoryException
public javax.jcr.Property setProperty(java.lang.String name,
javax.jcr.Node value)
throws javax.jcr.RepositoryException
setProperty in interface javax.jcr.Nodejavax.jcr.RepositoryException
public javax.jcr.Node getNode(java.lang.String path)
throws javax.jcr.RepositoryException
getNode in interface javax.jcr.Nodejavax.jcr.RepositoryException
public javax.jcr.NodeIterator getNodes()
throws javax.jcr.RepositoryException
getNodes in interface javax.jcr.Nodejavax.jcr.RepositoryException
public javax.jcr.NodeIterator getNodes(java.lang.String pattern)
throws javax.jcr.RepositoryException
getNodes in interface javax.jcr.Nodejavax.jcr.RepositoryException
public javax.jcr.Property getProperty(java.lang.String path)
throws javax.jcr.RepositoryException
getProperty in interface javax.jcr.Nodejavax.jcr.RepositoryException
public javax.jcr.PropertyIterator getProperties()
throws javax.jcr.RepositoryException
getProperties in interface javax.jcr.Nodejavax.jcr.RepositoryException
public javax.jcr.PropertyIterator getProperties(java.lang.String pattern)
throws javax.jcr.RepositoryException
getProperties in interface javax.jcr.Nodejavax.jcr.RepositoryException
public javax.jcr.Item getPrimaryItem()
throws javax.jcr.RepositoryException
getPrimaryItem in interface javax.jcr.Nodejavax.jcr.RepositoryException
public java.lang.String getUUID()
throws javax.jcr.RepositoryException
getUUID in interface javax.jcr.Nodejavax.jcr.RepositoryException
public javax.jcr.PropertyIterator getReferences()
throws javax.jcr.RepositoryException
getReferences in interface javax.jcr.Nodejavax.jcr.RepositoryException
public boolean hasNode(java.lang.String path)
throws javax.jcr.RepositoryException
hasNode in interface javax.jcr.Nodejavax.jcr.RepositoryException
public boolean hasProperty(java.lang.String path)
throws javax.jcr.RepositoryException
hasProperty in interface javax.jcr.Nodejavax.jcr.RepositoryException
public boolean hasNodes()
throws javax.jcr.RepositoryException
hasNodes in interface javax.jcr.Nodejavax.jcr.RepositoryException
public boolean hasProperties()
throws javax.jcr.RepositoryException
hasProperties in interface javax.jcr.Nodejavax.jcr.RepositoryException
public javax.jcr.nodetype.NodeType getPrimaryNodeType()
throws javax.jcr.RepositoryException
getPrimaryNodeType in interface javax.jcr.Nodejavax.jcr.RepositoryException
public javax.jcr.nodetype.NodeType[] getMixinNodeTypes()
throws javax.jcr.RepositoryException
getMixinNodeTypes in interface javax.jcr.Nodejavax.jcr.RepositoryException
public boolean isNodeType(java.lang.String type)
throws javax.jcr.RepositoryException
isNodeType in interface javax.jcr.Nodejavax.jcr.RepositoryException
public void addMixin(java.lang.String name)
throws javax.jcr.RepositoryException
addMixin in interface javax.jcr.Nodejavax.jcr.RepositoryException
public void removeMixin(java.lang.String name)
throws javax.jcr.RepositoryException
removeMixin in interface javax.jcr.Nodejavax.jcr.RepositoryException
public boolean canAddMixin(java.lang.String name)
throws javax.jcr.RepositoryException
canAddMixin in interface javax.jcr.Nodejavax.jcr.RepositoryException
public javax.jcr.nodetype.NodeDefinition getDefinition()
throws javax.jcr.RepositoryException
getDefinition in interface javax.jcr.Nodejavax.jcr.RepositoryException
public javax.jcr.version.Version checkin()
throws javax.jcr.RepositoryException
checkin in interface javax.jcr.Nodejavax.jcr.RepositoryException
public void checkout()
throws javax.jcr.RepositoryException
checkout in interface javax.jcr.Nodejavax.jcr.RepositoryException
public void update(java.lang.String workspace)
throws javax.jcr.RepositoryException
update in interface javax.jcr.Nodejavax.jcr.RepositoryException
public javax.jcr.NodeIterator merge(java.lang.String workspace,
boolean bestEffort)
throws javax.jcr.RepositoryException
merge in interface javax.jcr.Nodejavax.jcr.RepositoryException
public void cancelMerge(javax.jcr.version.Version version)
throws javax.jcr.RepositoryException
cancelMerge in interface javax.jcr.Nodejavax.jcr.RepositoryException
public void doneMerge(javax.jcr.version.Version version)
throws javax.jcr.RepositoryException
doneMerge in interface javax.jcr.Nodejavax.jcr.RepositoryException
public java.lang.String getCorrespondingNodePath(java.lang.String workspace)
throws javax.jcr.RepositoryException
getCorrespondingNodePath in interface javax.jcr.Nodejavax.jcr.RepositoryException
public int getIndex()
throws javax.jcr.RepositoryException
getIndex in interface javax.jcr.Nodejavax.jcr.RepositoryException
public void restore(java.lang.String version,
boolean removeExisting)
throws javax.jcr.RepositoryException
restore in interface javax.jcr.Nodejavax.jcr.RepositoryException
public void restore(javax.jcr.version.Version version,
boolean removeExisting)
throws javax.jcr.RepositoryException
restore in interface javax.jcr.Nodejavax.jcr.RepositoryException
public void restore(javax.jcr.version.Version version,
java.lang.String path,
boolean removeExisting)
throws javax.jcr.RepositoryException
restore in interface javax.jcr.Nodejavax.jcr.RepositoryException
public void restoreByLabel(java.lang.String label,
boolean removeExisting)
throws javax.jcr.RepositoryException
restoreByLabel in interface javax.jcr.Nodejavax.jcr.RepositoryException
public javax.jcr.Property setProperty(java.lang.String name,
java.lang.String[] strings,
int type)
throws javax.jcr.RepositoryException
setProperty in interface javax.jcr.Nodejavax.jcr.RepositoryException
public javax.jcr.Property setProperty(java.lang.String name,
javax.jcr.Value[] values,
int type)
throws javax.jcr.RepositoryException
setProperty in interface javax.jcr.Nodejavax.jcr.RepositoryException
public javax.jcr.Property setProperty(java.lang.String name,
javax.jcr.Value value,
int type)
throws javax.jcr.RepositoryException
setProperty in interface javax.jcr.Nodejavax.jcr.RepositoryException
public javax.jcr.Property setProperty(java.lang.String name,
java.lang.String value,
int type)
throws javax.jcr.RepositoryException
setProperty in interface javax.jcr.Nodejavax.jcr.RepositoryException
public boolean isCheckedOut()
throws javax.jcr.RepositoryException
isCheckedOut in interface javax.jcr.Nodejavax.jcr.RepositoryException
public javax.jcr.version.VersionHistory getVersionHistory()
throws javax.jcr.RepositoryException
getVersionHistory in interface javax.jcr.Nodejavax.jcr.RepositoryException
public javax.jcr.version.Version getBaseVersion()
throws javax.jcr.RepositoryException
getBaseVersion in interface javax.jcr.Nodejavax.jcr.RepositoryException
public javax.jcr.lock.Lock lock(boolean isDeep,
boolean isSessionScoped)
throws javax.jcr.RepositoryException
lock in interface javax.jcr.Nodejavax.jcr.RepositoryException
public javax.jcr.lock.Lock getLock()
throws javax.jcr.RepositoryException
getLock in interface javax.jcr.Nodejavax.jcr.RepositoryException
public void unlock()
throws javax.jcr.RepositoryException
unlock in interface javax.jcr.Nodejavax.jcr.RepositoryException
public boolean holdsLock()
throws javax.jcr.RepositoryException
holdsLock in interface javax.jcr.Nodejavax.jcr.RepositoryException
public boolean isLocked()
throws javax.jcr.RepositoryException
isLocked in interface javax.jcr.Nodejavax.jcr.RepositoryException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||