public class ServerNode extends ServerItem implements RemoteNode
Node
interface.
This class makes a local node available as an RMI service using
the RemoteNode
interface.Node
,
RemoteNode
,
Serialized Formref
Constructor and Description |
---|
ServerNode(javax.jcr.Node node,
RemoteAdapterFactory factory)
Creates a remote adapter for the given local node.
|
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. |
protected javax.jcr.version.Version |
getVersionByUUID(String versionUUID)
Returns the
Version instance for the given UUID. |
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
getFactory, getRemoteItem, getRemoteNode, getRemoteNodeTypeArray, getRepositoryException, getSerialValue, getSerialValues
clone, exportObject, exportObject, exportObject, unexportObject
getClientHost, getLog, setLog
equals, getRef, hashCode, toString, toStub
finalize, getClass, notify, notifyAll, wait, wait, wait
getAncestor, getDepth, getName, getParent, getPath, isModified, isNew, refresh, remove, save
public ServerNode(javax.jcr.Node node, RemoteAdapterFactory factory) throws RemoteException
node
- local nodefactory
- remote adapter factoryRemoteException
- on RMI errorspublic RemoteNode addNode(String path) throws javax.jcr.RepositoryException, RemoteException
Node.addNode(Sring)
method.addNode
in interface RemoteNode
path
- relative pathjavax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorspublic RemoteNode addNode(String path, String type) throws javax.jcr.RepositoryException, RemoteException
Node.addNode(String,String)
method.addNode
in interface RemoteNode
path
- relative pathtype
- node type namejavax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorspublic RemoteProperty getProperty(String path) throws javax.jcr.RepositoryException, RemoteException
Node.getProperty(String)
method.getProperty
in interface RemoteNode
path
- relative pathjavax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorspublic RemoteIterator getProperties() throws javax.jcr.RepositoryException, RemoteException
Node.getProperties()
method.getProperties
in interface RemoteNode
javax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorspublic RemoteItem getPrimaryItem() throws javax.jcr.RepositoryException, RemoteException
Node.getPrimaryItem()
method.getPrimaryItem
in interface RemoteNode
javax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorspublic RemoteIterator getProperties(String pattern) throws javax.jcr.RepositoryException, RemoteException
Node.getProperties(String)
method.getProperties
in interface RemoteNode
pattern
- property name patternjavax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorspublic RemoteIterator getProperties(String[] globs) throws javax.jcr.RepositoryException, RemoteException
Node.getProperties(String[])
method.getProperties
in interface RemoteNode
globs
- property name globsjavax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorspublic RemoteIterator getReferences() throws javax.jcr.RepositoryException, RemoteException
Node.getReferences()
method.getReferences
in interface RemoteNode
javax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorspublic RemoteIterator getReferences(String name) throws javax.jcr.RepositoryException, RemoteException
Node.getReferences(String)
method.getReferences
in interface RemoteNode
name
- reference property namejavax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorspublic String getIdentifier() throws javax.jcr.RepositoryException, RemoteException
Node.getIdentifier()
method.getIdentifier
in interface RemoteNode
javax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorspublic String getUUID() throws javax.jcr.RepositoryException, RemoteException
Node.getUUID()
method.getUUID
in interface RemoteNode
javax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorspublic boolean hasNodes() throws javax.jcr.RepositoryException, RemoteException
Node.hasNodes()
method.hasNodes
in interface RemoteNode
true
if this node has child nodes,
false
otherwisejavax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorspublic boolean hasProperties() throws javax.jcr.RepositoryException, RemoteException
Node.hasProperties()
method.hasProperties
in interface RemoteNode
true
if this node has properties,
false
otherwisejavax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorspublic boolean hasProperty(String path) throws javax.jcr.RepositoryException, RemoteException
Node.hasProperty()
method.hasProperty
in interface RemoteNode
path
- relative pathtrue
if the identified property exists,
false
otherwisejavax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorspublic RemoteNodeType[] getMixinNodeTypes() throws javax.jcr.RepositoryException, RemoteException
Node.getMixinNodeTypes()
method.getMixinNodeTypes
in interface RemoteNode
javax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorspublic RemoteNodeType getPrimaryNodeType() throws javax.jcr.RepositoryException, RemoteException
Node.getPrimaryNodeType()
method.getPrimaryNodeType
in interface RemoteNode
javax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorspublic boolean isNodeType(String type) throws javax.jcr.RepositoryException, RemoteException
Node.isNodeType(String)
method.isNodeType
in interface RemoteNode
type
- node type nametrue
if this node is an instance of the
identified type, false
otherwisejavax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorspublic RemoteIterator getNodes() throws javax.jcr.RepositoryException, RemoteException
Node.getNodes()
method.getNodes
in interface RemoteNode
javax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorspublic RemoteIterator getNodes(String pattern) throws javax.jcr.RepositoryException, RemoteException
Node.getNodes(String)
method.getNodes
in interface RemoteNode
pattern
- node name patternjavax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorspublic RemoteIterator getNodes(String[] globs) throws javax.jcr.RepositoryException, RemoteException
Node.getNodes(String[])
method.getNodes
in interface RemoteNode
globs
- node name globsjavax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorspublic RemoteNode getNode(String path) throws javax.jcr.RepositoryException, RemoteException
Node.getNode(String)
method.getNode
in interface RemoteNode
path
- relative pathjavax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorspublic boolean hasNode(String path) throws javax.jcr.RepositoryException, RemoteException
Node.hasNode(String)
method.hasNode
in interface RemoteNode
path
- relative pathtrue
if the identified node exists,
false
otherwisejavax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorspublic RemoteProperty setProperty(String name, javax.jcr.Value value) throws javax.jcr.RepositoryException, RemoteException
Node.setProperty(String,Value)
method.setProperty
in interface RemoteNode
name
- property namevalue
- property valuejavax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorspublic RemoteProperty setProperty(String name, javax.jcr.Value value, int type) throws javax.jcr.RepositoryException, RemoteException
Node.setProperty(String,Value)
method.setProperty
in interface RemoteNode
name
- property namevalue
- property valuetype
- property typejavax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorspublic void addMixin(String name) throws javax.jcr.RepositoryException, RemoteException
Node.addMixin(String)
method.addMixin
in interface RemoteNode
name
- mixin type namejavax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorspublic boolean canAddMixin(String name) throws javax.jcr.RepositoryException, RemoteException
Node.canAddMixin(String)
method.canAddMixin
in interface RemoteNode
name
- mixin type nametrue
if the mixin type can be added,
false
otherwisejavax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorspublic void removeMixin(String name) throws javax.jcr.RepositoryException, RemoteException
Node.removeMixin(String)
method.removeMixin
in interface RemoteNode
name
- mixin type namejavax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorspublic void orderBefore(String src, String dst) throws javax.jcr.RepositoryException, RemoteException
Node.orderBefore(String,String)
method.orderBefore
in interface RemoteNode
src
- source pathdst
- destination pathjavax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorspublic RemoteProperty setProperty(String name, javax.jcr.Value[] values) throws javax.jcr.RepositoryException, RemoteException
Node.setProperty(String,Value[])
method.setProperty
in interface RemoteNode
name
- property namevalues
- property valuesjavax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorspublic RemoteNodeDefinition getDefinition() throws javax.jcr.RepositoryException, RemoteException
Node.getDefinition()
method.getDefinition
in interface RemoteNode
javax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorspublic RemoteVersion checkin() throws javax.jcr.RepositoryException, RemoteException
Node.checkin()
method.checkin
in interface RemoteNode
javax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorspublic void checkout() throws javax.jcr.RepositoryException, RemoteException
Node.checkout()
method.checkout
in interface RemoteNode
javax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorspublic String getCorrespondingNodePath(String workspace) throws javax.jcr.RepositoryException, RemoteException
Node.getCorrespondingNodePath(String)
method.getCorrespondingNodePath
in interface RemoteNode
workspace
- workspace namejavax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorspublic int getIndex() throws javax.jcr.RepositoryException, RemoteException
Node.getIndex()
method.getIndex
in interface RemoteNode
javax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorspublic RemoteIterator merge(String workspace, boolean bestEffort) throws javax.jcr.RepositoryException, RemoteException
Node.merge(String,boolean)
method.merge
in interface RemoteNode
workspace
- source workspace namebestEffort
- best effort flagjavax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorspublic void cancelMerge(String versionUUID) throws javax.jcr.RepositoryException, RemoteException
Node.cancelMerge(Version)
method.cancelMerge
in interface RemoteNode
versionUUID
- The UUID of the version whose labels are to be returned.javax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorspublic void doneMerge(String versionUUID) throws javax.jcr.RepositoryException, RemoteException
Node.doneMerge(Version)
method.doneMerge
in interface RemoteNode
versionUUID
- The UUID of the version whose labels are to be returned.javax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorspublic void restore(String version, boolean removeExisting) throws javax.jcr.RepositoryException, RemoteException
Node.restore(String,boolean)
method.restore
in interface RemoteNode
version
- version nameremoveExisting
- flag to remove conflicting nodesjavax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorspublic void 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
RemoteNode.restore(String, boolean)
.
restoreByUUID
in interface RemoteNode
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 errorspublic void restore(String versionUUID, String path, boolean removeExisting) throws javax.jcr.RepositoryException, RemoteException
Node.restore(Version,String,boolean)
method.restore
in interface RemoteNode
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 errorspublic void restoreByLabel(String label, boolean removeExisting) throws javax.jcr.RepositoryException, RemoteException
Node.restoreByLabel(String,boolean)
method.restoreByLabel
in interface RemoteNode
label
- version labelremoveExisting
- flag to remove conflicting nodesjavax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorspublic void update(String workspace) throws javax.jcr.RepositoryException, RemoteException
Node.update(String)
method.update
in interface RemoteNode
workspace
- source workspace namejavax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorspublic boolean holdsLock() throws javax.jcr.RepositoryException, RemoteException
Node.holdsLock()
method.holdsLock
in interface RemoteNode
true
if this node holds a lock,
false
otherwisejavax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorspublic boolean isCheckedOut() throws javax.jcr.RepositoryException, RemoteException
Node.isCheckedOut()
method.isCheckedOut
in interface RemoteNode
true
if this node is checked out,
false
otherwisejavax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorspublic RemoteVersionHistory getVersionHistory() throws javax.jcr.RepositoryException, RemoteException
Node.getVersionHistory()
method.getVersionHistory
in interface RemoteNode
javax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorspublic RemoteVersion getBaseVersion() throws javax.jcr.RepositoryException, RemoteException
Node.getBaseVersion()
method.getBaseVersion
in interface RemoteNode
javax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorspublic boolean isLocked() throws javax.jcr.RepositoryException, RemoteException
Node.isLocked()
method.isLocked
in interface RemoteNode
true
if this node is locked,
false
otherwisejavax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorspublic RemoteProperty setProperty(String name, javax.jcr.Value[] values, int type) throws javax.jcr.RepositoryException, RemoteException
Node.setProperty(String,Value[],int)
method.setProperty
in interface RemoteNode
name
- property namevalues
- property valuestype
- property typejavax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorspublic void unlock() throws javax.jcr.RepositoryException, RemoteException
Node.unlock()
method.unlock
in interface RemoteNode
javax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorspublic RemoteLock getLock() throws javax.jcr.RepositoryException, RemoteException
Node.getLock()
method.getLock
in interface RemoteNode
javax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorspublic RemoteLock lock(boolean isDeep, boolean isSessionScoped) throws javax.jcr.RepositoryException, RemoteException
Node.lock(boolean,boolean)
method.lock
in interface RemoteNode
isDeep
- flag to create a deep lockisSessionScoped
- flag to create a session-scoped lockjavax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorspublic RemoteIterator getSharedSet() throws javax.jcr.RepositoryException, RemoteException
Node.getSharedSet()
method.getSharedSet
in interface RemoteNode
NodeIterator
.javax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorspublic void followLifecycleTransition(String transition) throws javax.jcr.RepositoryException, RemoteException
Node.followLifecycleTransition(String)
method.followLifecycleTransition
in interface RemoteNode
transition
- a state transitionjavax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorspublic String[] getAllowedLifecycleTransistions() throws javax.jcr.RepositoryException, RemoteException
Node.getAllowedLifecycleTransistions()
method.getAllowedLifecycleTransistions
in interface RemoteNode
String
array.javax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorspublic RemoteIterator getWeakReferences() throws javax.jcr.RepositoryException, RemoteException
Node.getWeakReferences()
method.getWeakReferences
in interface RemoteNode
PropertyIterator
.javax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorspublic RemoteIterator getWeakReferences(String name) throws javax.jcr.RepositoryException, RemoteException
Node.getWeakReferences(String)
method.getWeakReferences
in interface RemoteNode
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 errorspublic void removeShare() throws javax.jcr.RepositoryException, RemoteException
Node.removeShare()
method.removeShare
in interface RemoteNode
javax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorspublic void removeSharedSet() throws javax.jcr.RepositoryException, RemoteException
Node.removeSharedSet()
method.removeSharedSet
in interface RemoteNode
javax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorspublic void setPrimaryType(String nodeTypeName) throws javax.jcr.RepositoryException, RemoteException
Node.setPrimaryType(String)
method.setPrimaryType
in interface RemoteNode
nodeTypeName
- the node type namejavax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorsprotected javax.jcr.version.Version getVersionByUUID(String versionUUID) throws javax.jcr.RepositoryException
Version
instance for the given UUID.versionUUID
- The UUID of the version.javax.jcr.RepositoryException
- if an error occurrs accessing the version
node or if the UUID does not denote a version.Copyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.