public interface RemoteNode extends RemoteItem
Node
interface.
Used by the ServerNode
and ClientNode
adapters to provide transparent RMI access to remote nodes.
The methods in this interface are documented only with a reference to a corresponding Node method. The remote object will simply forward the method call to the underlying Node instance. Argument and return values, as well as possible exceptions, are copied over the network. Complex return values (like Nodes and Properties) are returned as remote references to the corresponding remote interfaces. Iterator values are transmitted as object arrays. RMI errors are signaled with RemoteExceptions.
Note that only two generic setProperty methods are included in this
interface. Clients should implement the type-specific setProperty
methods by wrapping the argument values into generic Value objects
and calling the generic setProperty methods. Note also that the
Value objects must be serializable and implemented using classes
available on both the client and server side. The
SerialValueFactory
class provides two convenience methods to satisfy these requirements.
Node
,
ClientNode
,
ServerNode
Modifier and Type | Method and Description |
---|---|
void |
addMixin(String name)
Remote version of the
Node.addMixin(String) method. |
RemoteNode |
addNode(String path)
Remote version of the
Node.addNode(Sring) method. |
RemoteNode |
addNode(String path,
String type)
Remote version of the
Node.addNode(String,String)
method. |
boolean |
canAddMixin(String name)
Remote version of the
Node.canAddMixin(String)
method. |
void |
cancelMerge(String versionUUID)
Remote version of the
Node.cancelMerge(Version)
method. |
RemoteVersion |
checkin()
Remote version of the
Node.checkin() method. |
void |
checkout()
Remote version of the
Node.checkout() method. |
void |
doneMerge(String versionUUID)
Remote version of the
Node.doneMerge(Version)
method. |
void |
followLifecycleTransition(String transition)
Remote version of the
Node.followLifecycleTransition(String)
method. |
String[] |
getAllowedLifecycleTransistions()
Remote version of the
Node.getAllowedLifecycleTransistions()
method. |
RemoteVersion |
getBaseVersion()
Remote version of the
Node.getBaseVersion() method. |
String |
getCorrespondingNodePath(String workspace)
Remote version of the
Node.getCorrespondingNodePath(String)
method. |
RemoteNodeDefinition |
getDefinition()
Remote version of the
Node.getDefinition() method. |
String |
getIdentifier()
Remote version of the
Node.getIdentifier() method. |
int |
getIndex()
Remote version of the
Node.getIndex() method. |
RemoteLock |
getLock()
Remote version of the
Node.getLock() method. |
RemoteNodeType[] |
getMixinNodeTypes()
Remote version of the
Node.getMixinNodeTypes()
method. |
RemoteNode |
getNode(String path)
Remote version of the
Node.getNode(String) method. |
RemoteIterator |
getNodes()
Remote version of the
Node.getNodes() method. |
RemoteIterator |
getNodes(String pattern)
Remote version of the
Node.getNodes(String) method. |
RemoteIterator |
getNodes(String[] globs)
Remote version of the
Node.getNodes(String[]) method. |
RemoteItem |
getPrimaryItem()
Remote version of the
Node.getPrimaryItem() method. |
RemoteNodeType |
getPrimaryNodeType()
Remote version of the
Node.getPrimaryNodeType()
method. |
RemoteIterator |
getProperties()
Remote version of the
Node.getProperties() method. |
RemoteIterator |
getProperties(String pattern)
Remote version of the
Node.getProperties(String)
method. |
RemoteIterator |
getProperties(String[] globs)
Remote version of the
Node.getProperties(String[])
method. |
RemoteProperty |
getProperty(String path)
Remote version of the
Node.getProperty(String)
method. |
RemoteIterator |
getReferences()
Remote version of the
Node.getReferences() method. |
RemoteIterator |
getReferences(String name)
Remote version of the
Node.getReferences(String) method. |
RemoteIterator |
getSharedSet()
Remote version of the
Node.getSharedSet() method. |
String |
getUUID()
Remote version of the
Node.getUUID() method. |
RemoteVersionHistory |
getVersionHistory()
Remote version of the
Node.getVersionHistory() method. |
RemoteIterator |
getWeakReferences()
Remote version of the
Node.getWeakReferences()
method. |
RemoteIterator |
getWeakReferences(String name)
Remote version of the
Node.getWeakReferences(String)
method. |
boolean |
hasNode(String path)
Remote version of the
Node.hasNode(String) method. |
boolean |
hasNodes()
Remote version of the
Node.hasNodes() method. |
boolean |
hasProperties()
Remote version of the
Node.hasProperties() method. |
boolean |
hasProperty(String path)
Remote version of the
Node.hasProperty() method. |
boolean |
holdsLock()
Remote version of the
Node.holdsLock() method. |
boolean |
isCheckedOut()
Remote version of the
Node.isCheckedOut() method. |
boolean |
isLocked()
Remote version of the
Node.isLocked() method. |
boolean |
isNodeType(String type)
Remote version of the
Node.isNodeType(String) method. |
RemoteLock |
lock(boolean isDeep,
boolean isSessionScoped)
Remote version of the
Node.lock(boolean,boolean)
method. |
RemoteIterator |
merge(String workspace,
boolean bestEffort)
Remote version of the
Node.merge(String,boolean)
method. |
void |
orderBefore(String src,
String dst)
Remote version of the
Node.orderBefore(String,String)
method. |
void |
removeMixin(String name)
Remote version of the
Node.removeMixin(String)
method. |
void |
removeShare()
Remote version of the
Node.removeShare()
method. |
void |
removeSharedSet()
Remote version of the
Node.removeSharedSet()
method. |
void |
restore(String version,
boolean removeExisting)
Remote version of the
Node.restore(String,boolean)
method. |
void |
restore(String versionUUID,
String path,
boolean removeExisting)
Remote version of the
Node.restore(Version,String,boolean)
method. |
void |
restoreByLabel(String label,
boolean removeExisting)
Remote version of the
Node.restoreByLabel(String,boolean)
method. |
void |
restoreByUUID(String versionUUID,
boolean removeExisting)
Remote version of the
Node.restore(Version,boolean)
method. |
void |
setPrimaryType(String nodeTypeName)
Remote version of the
Node.setPrimaryType(String)
method. |
RemoteProperty |
setProperty(String name,
javax.jcr.Value value)
Remote version of the
Node.setProperty(String,Value)
method. |
RemoteProperty |
setProperty(String name,
javax.jcr.Value[] values)
Remote version of the
Node.setProperty(String,Value[])
method. |
RemoteProperty |
setProperty(String name,
javax.jcr.Value[] values,
int type)
Remote version of the
Node.setProperty(String,Value[],int)
method. |
RemoteProperty |
setProperty(String name,
javax.jcr.Value value,
int type)
Remote version of the
Node.setProperty(String,Value)
method. |
void |
unlock()
Remote version of the
Node.unlock() method. |
void |
update(String workspace)
Remote version of the
Node.update(String) method. |
getAncestor, getDepth, getName, getParent, getPath, isModified, isNew, refresh, remove, save
RemoteNode addNode(String path) throws javax.jcr.RepositoryException, RemoteException
Node.addNode(Sring)
method.path
- relative pathjavax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorsRemoteNode addNode(String path, String type) throws javax.jcr.RepositoryException, RemoteException
Node.addNode(String,String)
method.path
- relative pathtype
- node type namejavax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorsRemoteProperty getProperty(String path) throws javax.jcr.RepositoryException, RemoteException
Node.getProperty(String)
method.path
- relative pathjavax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorsRemoteIterator getProperties() throws javax.jcr.RepositoryException, RemoteException
Node.getProperties()
method.javax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorsRemoteIterator getProperties(String pattern) throws javax.jcr.RepositoryException, RemoteException
Node.getProperties(String)
method.pattern
- property name patternjavax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorsRemoteIterator getProperties(String[] globs) throws javax.jcr.RepositoryException, RemoteException
Node.getProperties(String[])
method.globs
- property name globsjavax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorsRemoteItem getPrimaryItem() throws javax.jcr.RepositoryException, RemoteException
Node.getPrimaryItem()
method.javax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorsString getIdentifier() throws javax.jcr.RepositoryException, RemoteException
Node.getIdentifier()
method.javax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorsString getUUID() throws javax.jcr.RepositoryException, RemoteException
Node.getUUID()
method.javax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorsRemoteIterator getReferences() throws javax.jcr.RepositoryException, RemoteException
Node.getReferences()
method.javax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorsRemoteIterator getReferences(String name) throws javax.jcr.RepositoryException, RemoteException
Node.getReferences(String)
method.name
- reference property namejavax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorsRemoteIterator getNodes() throws javax.jcr.RepositoryException, RemoteException
Node.getNodes()
method.javax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorsRemoteIterator getNodes(String pattern) throws javax.jcr.RepositoryException, RemoteException
Node.getNodes(String)
method.pattern
- node name patternjavax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorsRemoteIterator getNodes(String[] globs) throws javax.jcr.RepositoryException, RemoteException
Node.getNodes(String[])
method.globs
- node name globsjavax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorsboolean hasNode(String path) throws javax.jcr.RepositoryException, RemoteException
Node.hasNode(String)
method.path
- relative pathtrue
if the identified node exists,
false
otherwisejavax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorsboolean hasProperty(String path) throws javax.jcr.RepositoryException, RemoteException
Node.hasProperty()
method.path
- relative pathtrue
if the identified property exists,
false
otherwisejavax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorsboolean hasNodes() throws javax.jcr.RepositoryException, RemoteException
Node.hasNodes()
method.true
if this node has child nodes,
false
otherwisejavax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorsboolean hasProperties() throws javax.jcr.RepositoryException, RemoteException
Node.hasProperties()
method.true
if this node has properties,
false
otherwisejavax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorsRemoteNodeType getPrimaryNodeType() throws javax.jcr.RepositoryException, RemoteException
Node.getPrimaryNodeType()
method.javax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorsRemoteNodeType[] getMixinNodeTypes() throws javax.jcr.RepositoryException, RemoteException
Node.getMixinNodeTypes()
method.javax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorsboolean isNodeType(String type) throws javax.jcr.RepositoryException, RemoteException
Node.isNodeType(String)
method.type
- node type nametrue
if this node is an instance of the
identified type, false
otherwisejavax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorsRemoteNode getNode(String path) throws javax.jcr.RepositoryException, RemoteException
Node.getNode(String)
method.path
- relative pathjavax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorsvoid orderBefore(String src, String dst) throws javax.jcr.RepositoryException, RemoteException
Node.orderBefore(String,String)
method.src
- source pathdst
- destination pathjavax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorsRemoteProperty setProperty(String name, javax.jcr.Value value) throws javax.jcr.RepositoryException, RemoteException
Node.setProperty(String,Value)
method.name
- property namevalue
- property valuejavax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorsRemoteProperty setProperty(String name, javax.jcr.Value value, int type) throws javax.jcr.RepositoryException, RemoteException
Node.setProperty(String,Value)
method.name
- property namevalue
- property valuetype
- property typejavax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorsRemoteProperty setProperty(String name, javax.jcr.Value[] values) throws javax.jcr.RepositoryException, RemoteException
Node.setProperty(String,Value[])
method.name
- property namevalues
- property valuesjavax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorsvoid addMixin(String name) throws javax.jcr.RepositoryException, RemoteException
Node.addMixin(String)
method.name
- mixin type namejavax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorsvoid removeMixin(String name) throws javax.jcr.RepositoryException, RemoteException
Node.removeMixin(String)
method.name
- mixin type namejavax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorsboolean canAddMixin(String name) throws javax.jcr.RepositoryException, RemoteException
Node.canAddMixin(String)
method.name
- mixin type nametrue
if the mixin type can be added,
false
otherwisejavax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorsRemoteNodeDefinition getDefinition() throws javax.jcr.RepositoryException, RemoteException
Node.getDefinition()
method.javax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorsRemoteVersion checkin() throws javax.jcr.RepositoryException, RemoteException
Node.checkin()
method.javax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorsvoid checkout() throws javax.jcr.RepositoryException, RemoteException
Node.checkout()
method.javax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorsvoid update(String workspace) throws javax.jcr.RepositoryException, RemoteException
Node.update(String)
method.workspace
- source workspace namejavax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorsRemoteIterator merge(String workspace, boolean bestEffort) throws javax.jcr.RepositoryException, RemoteException
Node.merge(String,boolean)
method.workspace
- source workspace namebestEffort
- best effort flagjavax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorsvoid cancelMerge(String versionUUID) throws javax.jcr.RepositoryException, RemoteException
Node.cancelMerge(Version)
method.versionUUID
- The UUID of the version whose labels are to be returned.javax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorsvoid doneMerge(String versionUUID) throws javax.jcr.RepositoryException, RemoteException
Node.doneMerge(Version)
method.versionUUID
- The UUID of the version whose labels are to be returned.javax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorsString getCorrespondingNodePath(String workspace) throws javax.jcr.RepositoryException, RemoteException
Node.getCorrespondingNodePath(String)
method.workspace
- workspace namejavax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorsint getIndex() throws javax.jcr.RepositoryException, RemoteException
Node.getIndex()
method.javax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorsvoid restore(String version, boolean removeExisting) throws javax.jcr.RepositoryException, RemoteException
Node.restore(String,boolean)
method.version
- version nameremoveExisting
- flag to remove conflicting nodesjavax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorsvoid restoreByUUID(String versionUUID, boolean removeExisting) throws javax.jcr.RepositoryException, RemoteException
Node.restore(Version,boolean)
method.
This method has been rename to prevent a naming clash with
restore(String, boolean)
.
versionUUID
- The UUID of the version whose labels are to be returned.removeExisting
- flag to remove conflicting nodesjavax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorsvoid restore(String versionUUID, String path, boolean removeExisting) throws javax.jcr.RepositoryException, RemoteException
Node.restore(Version,String,boolean)
method.versionUUID
- The UUID of the version whose labels are to be returned.path
- the path to which the version is to be restoredremoveExisting
- flag to remove conflicting nodesjavax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorsvoid restoreByLabel(String label, boolean removeExisting) throws javax.jcr.RepositoryException, RemoteException
Node.restoreByLabel(String,boolean)
method.label
- version labelremoveExisting
- flag to remove conflicting nodesjavax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorsvoid unlock() throws javax.jcr.RepositoryException, RemoteException
Node.unlock()
method.javax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorsboolean holdsLock() throws javax.jcr.RepositoryException, RemoteException
Node.holdsLock()
method.true
if this node holds a lock,
false
otherwisejavax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorsboolean isLocked() throws javax.jcr.RepositoryException, RemoteException
Node.isLocked()
method.true
if this node is locked,
false
otherwisejavax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorsboolean isCheckedOut() throws javax.jcr.RepositoryException, RemoteException
Node.isCheckedOut()
method.true
if this node is checked out,
false
otherwisejavax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorsRemoteVersionHistory getVersionHistory() throws javax.jcr.RepositoryException, RemoteException
Node.getVersionHistory()
method.javax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorsRemoteVersion getBaseVersion() throws javax.jcr.RepositoryException, RemoteException
Node.getBaseVersion()
method.javax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorsRemoteProperty setProperty(String name, javax.jcr.Value[] values, int type) throws javax.jcr.RepositoryException, RemoteException
Node.setProperty(String,Value[],int)
method.name
- property namevalues
- property valuestype
- property typejavax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorsRemoteLock lock(boolean isDeep, boolean isSessionScoped) throws javax.jcr.RepositoryException, RemoteException
Node.lock(boolean,boolean)
method.isDeep
- flag to create a deep lockisSessionScoped
- flag to create a session-scoped lockjavax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorsRemoteLock getLock() throws javax.jcr.RepositoryException, RemoteException
Node.getLock()
method.javax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorsRemoteIterator getSharedSet() throws javax.jcr.RepositoryException, RemoteException
Node.getSharedSet()
method.NodeIterator
.javax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorsvoid followLifecycleTransition(String transition) throws javax.jcr.RepositoryException, RemoteException
Node.followLifecycleTransition(String)
method.transition
- a state transitionjavax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorsString[] getAllowedLifecycleTransistions() throws javax.jcr.RepositoryException, RemoteException
Node.getAllowedLifecycleTransistions()
method.String
array.javax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorsRemoteIterator getWeakReferences() throws javax.jcr.RepositoryException, RemoteException
Node.getWeakReferences()
method.PropertyIterator
.javax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorsRemoteIterator getWeakReferences(String name) throws javax.jcr.RepositoryException, RemoteException
Node.getWeakReferences(String)
method.name
- name of referring WEAKREFERENCE
properties to be
returned; if null
then all referring
WEAKREFERENCE
s are returned.PropertyIterator
.javax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorsvoid removeShare() throws javax.jcr.RepositoryException, RemoteException
Node.removeShare()
method.javax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorsvoid removeSharedSet() throws javax.jcr.RepositoryException, RemoteException
Node.removeSharedSet()
method.javax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorsvoid setPrimaryType(String nodeTypeName) throws javax.jcr.RepositoryException, RemoteException
Node.setPrimaryType(String)
method.nodeTypeName
- the node type namejavax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorsCopyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.