Remote adapter for the JCR Node
interface.
This class makes a local node available as an RMI service using
the RemoteNode
interface.
@Deprecated public class ServerNode extends ServerItem implements RemoteNode
Node
,
RemoteNode
,
Serialized Formref
Constructor and Description |
---|
ServerNode(Node node,
RemoteAdapterFactory factory)
Deprecated.
Creates a remote adapter for the given local node.
|
Modifier and Type | Method and Description |
---|---|
void |
addMixin(String name)
Deprecated.
Remote version of the
Node.addMixin(String) method. |
RemoteNode |
addNode(String path)
Deprecated.
Remote version of the
Node.addNode(Sring) method. |
RemoteNode |
addNode(String path,
String type)
Deprecated.
Remote version of the
Node.addNode(String,String)
method. |
boolean |
canAddMixin(String name)
Deprecated.
Remote version of the
Node.canAddMixin(String)
method. |
void |
cancelMerge(String versionUUID)
Deprecated.
Remote version of the
Node.cancelMerge(Version)
method. |
RemoteVersion |
checkin()
Deprecated.
Remote version of the
Node.checkin() method. |
void |
checkout()
Deprecated.
Remote version of the
Node.checkout() method. |
void |
doneMerge(String versionUUID)
Deprecated.
Remote version of the
Node.doneMerge(Version)
method. |
void |
followLifecycleTransition(String transition)
Deprecated.
Remote version of the
Node.followLifecycleTransition(String)
method. |
String[] |
getAllowedLifecycleTransistions()
Deprecated.
Remote version of the
Node.getAllowedLifecycleTransistions()
method. |
RemoteVersion |
getBaseVersion()
Deprecated.
Remote version of the
Node.getBaseVersion() method. |
String |
getCorrespondingNodePath(String workspace)
Deprecated.
Remote version of the
Node.getCorrespondingNodePath(String)
method. |
RemoteNodeDefinition |
getDefinition()
Deprecated.
Remote version of the
Node.getDefinition() method. |
String |
getIdentifier()
Deprecated.
Remote version of the
Node.getIdentifier() method. |
int |
getIndex()
Deprecated.
Remote version of the
Node.getIndex() method. |
RemoteLock |
getLock()
Deprecated.
Remote version of the
Node.getLock() method. |
RemoteNodeType[] |
getMixinNodeTypes()
Deprecated.
Remote version of the
Node.getMixinNodeTypes()
method. |
RemoteNode |
getNode(String path)
Deprecated.
Remote version of the
Node.getNode(String) method. |
RemoteIterator |
getNodes()
Deprecated.
Remote version of the
Node.getNodes() method. |
RemoteIterator |
getNodes(String pattern)
Deprecated.
Remote version of the
Node.getNodes(String) method. |
RemoteIterator |
getNodes(String[] globs)
Deprecated.
Remote version of the
Node.getNodes(String[]) method. |
RemoteItem |
getPrimaryItem()
Deprecated.
Remote version of the
Node.getPrimaryItem() method. |
RemoteNodeType |
getPrimaryNodeType()
Deprecated.
Remote version of the
Node.getPrimaryNodeType()
method. |
RemoteIterator |
getProperties()
Deprecated.
Remote version of the
Node.getProperties() method. |
RemoteIterator |
getProperties(String pattern)
Deprecated.
Remote version of the
Node.getProperties(String)
method. |
RemoteIterator |
getProperties(String[] globs)
Deprecated.
Remote version of the
Node.getProperties(String[])
method. |
RemoteProperty |
getProperty(String path)
Deprecated.
Remote version of the
Node.getProperty(String)
method. |
RemoteIterator |
getReferences()
Deprecated.
Remote version of the
Node.getReferences() method. |
RemoteIterator |
getReferences(String name)
Deprecated.
Remote version of the
Node.getReferences(String) method. |
RemoteIterator |
getSharedSet()
Deprecated.
Remote version of the
Node.getSharedSet() method. |
String |
getUUID()
Deprecated.
Remote version of the
Node.getUUID() method. |
protected Version |
getVersionByUUID(String versionUUID)
Deprecated.
Returns the
Version instance for the given UUID. |
RemoteVersionHistory |
getVersionHistory()
Deprecated.
Remote version of the
Node.getVersionHistory() method. |
RemoteIterator |
getWeakReferences()
Deprecated.
Remote version of the
Node.getWeakReferences()
method. |
RemoteIterator |
getWeakReferences(String name)
Deprecated.
Remote version of the
Node.getWeakReferences(String)
method. |
boolean |
hasNode(String path)
Deprecated.
Remote version of the
Node.hasNode(String) method. |
boolean |
hasNodes()
Deprecated.
Remote version of the
Node.hasNodes() method. |
boolean |
hasProperties()
Deprecated.
Remote version of the
Node.hasProperties() method. |
boolean |
hasProperty(String path)
Deprecated.
Remote version of the
Node.hasProperty() method. |
boolean |
holdsLock()
Deprecated.
Remote version of the
Node.holdsLock() method. |
boolean |
isCheckedOut()
Deprecated.
Remote version of the
Node.isCheckedOut() method. |
boolean |
isLocked()
Deprecated.
Remote version of the
Node.isLocked() method. |
boolean |
isNodeType(String type)
Deprecated.
Remote version of the
Node.isNodeType(String) method. |
RemoteLock |
lock(boolean isDeep,
boolean isSessionScoped)
Deprecated.
Remote version of the
Node.lock(boolean,boolean)
method. |
RemoteIterator |
merge(String workspace,
boolean bestEffort)
Deprecated.
Remote version of the
Node.merge(String,boolean)
method. |
void |
orderBefore(String src,
String dst)
Deprecated.
Remote version of the
Node.orderBefore(String,String)
method. |
void |
removeMixin(String name)
Deprecated.
Remote version of the
Node.removeMixin(String)
method. |
void |
removeShare()
Deprecated.
Remote version of the
Node.removeShare()
method. |
void |
removeSharedSet()
Deprecated.
Remote version of the
Node.removeSharedSet()
method. |
void |
restore(String version,
boolean removeExisting)
Deprecated.
Remote version of the
Node.restore(String,boolean)
method. |
void |
restore(String versionUUID,
String path,
boolean removeExisting)
Deprecated.
Remote version of the
Node.restore(Version,String,boolean)
method. |
void |
restoreByLabel(String label,
boolean removeExisting)
Deprecated.
Remote version of the
Node.restoreByLabel(String,boolean)
method. |
void |
restoreByUUID(String versionUUID,
boolean removeExisting)
Deprecated.
Remote version of the
Node.restore(Version,boolean)
method. |
void |
setPrimaryType(String nodeTypeName)
Deprecated.
Remote version of the
Node.setPrimaryType(String)
method. |
RemoteProperty |
setProperty(String name,
Value value)
Deprecated.
Remote version of the
Node.setProperty(String,Value)
method. |
RemoteProperty |
setProperty(String name,
Value[] values)
Deprecated.
Remote version of the
Node.setProperty(String,Value[])
method. |
RemoteProperty |
setProperty(String name,
Value[] values,
int type)
Deprecated.
Remote version of the
Node.setProperty(String,Value[],int)
method. |
RemoteProperty |
setProperty(String name,
Value value,
int type)
Deprecated.
Remote version of the
Node.setProperty(String,Value)
method. |
void |
unlock()
Deprecated.
Remote version of the
Node.unlock() method. |
void |
update(String workspace)
Deprecated.
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(Node node, RemoteAdapterFactory factory) throws RemoteException
node
- local nodefactory
- remote adapter factoryRemoteException
- on RMI errorspublic RemoteNode addNode(String path) throws RepositoryException, RemoteException
Node.addNode(Sring)
method.addNode
in interface RemoteNode
path
- relative pathRepositoryException
- on repository errorsRemoteException
- on RMI errorspublic RemoteNode addNode(String path, String type) throws RepositoryException, RemoteException
Node.addNode(String,String)
method.addNode
in interface RemoteNode
path
- relative pathtype
- node type nameRepositoryException
- on repository errorsRemoteException
- on RMI errorspublic RemoteProperty getProperty(String path) throws RepositoryException, RemoteException
Node.getProperty(String)
method.getProperty
in interface RemoteNode
path
- relative pathRepositoryException
- on repository errorsRemoteException
- on RMI errorspublic RemoteIterator getProperties() throws RepositoryException, RemoteException
Node.getProperties()
method.getProperties
in interface RemoteNode
RepositoryException
- on repository errorsRemoteException
- on RMI errorspublic RemoteItem getPrimaryItem() throws RepositoryException, RemoteException
Node.getPrimaryItem()
method.getPrimaryItem
in interface RemoteNode
RepositoryException
- on repository errorsRemoteException
- on RMI errorspublic RemoteIterator getProperties(String pattern) throws RepositoryException, RemoteException
Node.getProperties(String)
method.getProperties
in interface RemoteNode
pattern
- property name patternRepositoryException
- on repository errorsRemoteException
- on RMI errorspublic RemoteIterator getProperties(String[] globs) throws RepositoryException, RemoteException
Node.getProperties(String[])
method.getProperties
in interface RemoteNode
globs
- property name globsRepositoryException
- on repository errorsRemoteException
- on RMI errorspublic RemoteIterator getReferences() throws RepositoryException, RemoteException
Node.getReferences()
method.getReferences
in interface RemoteNode
RepositoryException
- on repository errorsRemoteException
- on RMI errorspublic RemoteIterator getReferences(String name) throws RepositoryException, RemoteException
Node.getReferences(String)
method.getReferences
in interface RemoteNode
name
- reference property nameRepositoryException
- on repository errorsRemoteException
- on RMI errorspublic String getIdentifier() throws RepositoryException, RemoteException
Node.getIdentifier()
method.getIdentifier
in interface RemoteNode
RepositoryException
- on repository errorsRemoteException
- on RMI errorspublic String getUUID() throws RepositoryException, RemoteException
Node.getUUID()
method.getUUID
in interface RemoteNode
RepositoryException
- on repository errorsRemoteException
- on RMI errorspublic boolean hasNodes() throws RepositoryException, RemoteException
Node.hasNodes()
method.hasNodes
in interface RemoteNode
true
if this node has child nodes,
false
otherwiseRepositoryException
- on repository errorsRemoteException
- on RMI errorspublic boolean hasProperties() throws RepositoryException, RemoteException
Node.hasProperties()
method.hasProperties
in interface RemoteNode
true
if this node has properties,
false
otherwiseRepositoryException
- on repository errorsRemoteException
- on RMI errorspublic boolean hasProperty(String path) throws RepositoryException, RemoteException
Node.hasProperty()
method.hasProperty
in interface RemoteNode
path
- relative pathtrue
if the identified property exists,
false
otherwiseRepositoryException
- on repository errorsRemoteException
- on RMI errorspublic RemoteNodeType[] getMixinNodeTypes() throws RepositoryException, RemoteException
Node.getMixinNodeTypes()
method.getMixinNodeTypes
in interface RemoteNode
RepositoryException
- on repository errorsRemoteException
- on RMI errorspublic RemoteNodeType getPrimaryNodeType() throws RepositoryException, RemoteException
Node.getPrimaryNodeType()
method.getPrimaryNodeType
in interface RemoteNode
RepositoryException
- on repository errorsRemoteException
- on RMI errorspublic boolean isNodeType(String type) throws 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
otherwiseRepositoryException
- on repository errorsRemoteException
- on RMI errorspublic RemoteIterator getNodes() throws RepositoryException, RemoteException
Node.getNodes()
method.getNodes
in interface RemoteNode
RepositoryException
- on repository errorsRemoteException
- on RMI errorspublic RemoteIterator getNodes(String pattern) throws RepositoryException, RemoteException
Node.getNodes(String)
method.getNodes
in interface RemoteNode
pattern
- node name patternRepositoryException
- on repository errorsRemoteException
- on RMI errorspublic RemoteIterator getNodes(String[] globs) throws RepositoryException, RemoteException
Node.getNodes(String[])
method.getNodes
in interface RemoteNode
globs
- node name globsRepositoryException
- on repository errorsRemoteException
- on RMI errorspublic RemoteNode getNode(String path) throws RepositoryException, RemoteException
Node.getNode(String)
method.getNode
in interface RemoteNode
path
- relative pathRepositoryException
- on repository errorsRemoteException
- on RMI errorspublic boolean hasNode(String path) throws RepositoryException, RemoteException
Node.hasNode(String)
method.hasNode
in interface RemoteNode
path
- relative pathtrue
if the identified node exists,
false
otherwiseRepositoryException
- on repository errorsRemoteException
- on RMI errorspublic RemoteProperty setProperty(String name, Value value) throws RepositoryException, RemoteException
Node.setProperty(String,Value)
method.setProperty
in interface RemoteNode
name
- property namevalue
- property valueRepositoryException
- on repository errorsRemoteException
- on RMI errorspublic RemoteProperty setProperty(String name, Value value, int type) throws RepositoryException, RemoteException
Node.setProperty(String,Value)
method.setProperty
in interface RemoteNode
name
- property namevalue
- property valuetype
- property typeRepositoryException
- on repository errorsRemoteException
- on RMI errorspublic void addMixin(String name) throws RepositoryException, RemoteException
Node.addMixin(String)
method.addMixin
in interface RemoteNode
name
- mixin type nameRepositoryException
- on repository errorsRemoteException
- on RMI errorspublic boolean canAddMixin(String name) throws RepositoryException, RemoteException
Node.canAddMixin(String)
method.canAddMixin
in interface RemoteNode
name
- mixin type nametrue
if the mixin type can be added,
false
otherwiseRepositoryException
- on repository errorsRemoteException
- on RMI errorspublic void removeMixin(String name) throws RepositoryException, RemoteException
Node.removeMixin(String)
method.removeMixin
in interface RemoteNode
name
- mixin type nameRepositoryException
- on repository errorsRemoteException
- on RMI errorspublic void orderBefore(String src, String dst) throws RepositoryException, RemoteException
Node.orderBefore(String,String)
method.orderBefore
in interface RemoteNode
src
- source pathdst
- destination pathRepositoryException
- on repository errorsRemoteException
- on RMI errorspublic RemoteProperty setProperty(String name, Value[] values) throws RepositoryException, RemoteException
Node.setProperty(String,Value[])
method.setProperty
in interface RemoteNode
name
- property namevalues
- property valuesRepositoryException
- on repository errorsRemoteException
- on RMI errorspublic RemoteNodeDefinition getDefinition() throws RepositoryException, RemoteException
Node.getDefinition()
method.getDefinition
in interface RemoteNode
RepositoryException
- on repository errorsRemoteException
- on RMI errorspublic RemoteVersion checkin() throws RepositoryException, RemoteException
Node.checkin()
method.checkin
in interface RemoteNode
RepositoryException
- on repository errorsRemoteException
- on RMI errorspublic void checkout() throws RepositoryException, RemoteException
Node.checkout()
method.checkout
in interface RemoteNode
RepositoryException
- on repository errorsRemoteException
- on RMI errorspublic String getCorrespondingNodePath(String workspace) throws RepositoryException, RemoteException
Node.getCorrespondingNodePath(String)
method.getCorrespondingNodePath
in interface RemoteNode
workspace
- workspace nameRepositoryException
- on repository errorsRemoteException
- on RMI errorspublic int getIndex() throws RepositoryException, RemoteException
Node.getIndex()
method.getIndex
in interface RemoteNode
RepositoryException
- on repository errorsRemoteException
- on RMI errorspublic RemoteIterator merge(String workspace, boolean bestEffort) throws RepositoryException, RemoteException
Node.merge(String,boolean)
method.merge
in interface RemoteNode
workspace
- source workspace namebestEffort
- best effort flagRepositoryException
- on repository errorsRemoteException
- on RMI errorspublic void cancelMerge(String versionUUID) throws RepositoryException, RemoteException
Node.cancelMerge(Version)
method.cancelMerge
in interface RemoteNode
versionUUID
- The UUID of the version whose labels are to be returned.RepositoryException
- on repository errorsRemoteException
- on RMI errorspublic void doneMerge(String versionUUID) throws RepositoryException, RemoteException
Node.doneMerge(Version)
method.doneMerge
in interface RemoteNode
versionUUID
- The UUID of the version whose labels are to be returned.RepositoryException
- on repository errorsRemoteException
- on RMI errorspublic void restore(String version, boolean removeExisting) throws RepositoryException, RemoteException
Node.restore(String,boolean)
method.restore
in interface RemoteNode
version
- version nameremoveExisting
- flag to remove conflicting nodesRepositoryException
- on repository errorsRemoteException
- on RMI errorspublic void restoreByUUID(String versionUUID, boolean removeExisting) throws 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 nodesRepositoryException
- on repository errorsRemoteException
- on RMI errorspublic void restore(String versionUUID, String path, boolean removeExisting) throws 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 nodesRepositoryException
- on repository errorsRemoteException
- on RMI errorspublic void restoreByLabel(String label, boolean removeExisting) throws RepositoryException, RemoteException
Node.restoreByLabel(String,boolean)
method.restoreByLabel
in interface RemoteNode
label
- version labelremoveExisting
- flag to remove conflicting nodesRepositoryException
- on repository errorsRemoteException
- on RMI errorspublic void update(String workspace) throws RepositoryException, RemoteException
Node.update(String)
method.update
in interface RemoteNode
workspace
- source workspace nameRepositoryException
- on repository errorsRemoteException
- on RMI errorspublic boolean holdsLock() throws RepositoryException, RemoteException
Node.holdsLock()
method.holdsLock
in interface RemoteNode
true
if this node holds a lock,
false
otherwiseRepositoryException
- on repository errorsRemoteException
- on RMI errorspublic boolean isCheckedOut() throws RepositoryException, RemoteException
Node.isCheckedOut()
method.isCheckedOut
in interface RemoteNode
true
if this node is checked out,
false
otherwiseRepositoryException
- on repository errorsRemoteException
- on RMI errorspublic RemoteVersionHistory getVersionHistory() throws RepositoryException, RemoteException
Node.getVersionHistory()
method.getVersionHistory
in interface RemoteNode
RepositoryException
- on repository errorsRemoteException
- on RMI errorspublic RemoteVersion getBaseVersion() throws RepositoryException, RemoteException
Node.getBaseVersion()
method.getBaseVersion
in interface RemoteNode
RepositoryException
- on repository errorsRemoteException
- on RMI errorspublic boolean isLocked() throws RepositoryException, RemoteException
Node.isLocked()
method.isLocked
in interface RemoteNode
true
if this node is locked,
false
otherwiseRepositoryException
- on repository errorsRemoteException
- on RMI errorspublic RemoteProperty setProperty(String name, Value[] values, int type) throws RepositoryException, RemoteException
Node.setProperty(String,Value[],int)
method.setProperty
in interface RemoteNode
name
- property namevalues
- property valuestype
- property typeRepositoryException
- on repository errorsRemoteException
- on RMI errorspublic void unlock() throws RepositoryException, RemoteException
Node.unlock()
method.unlock
in interface RemoteNode
RepositoryException
- on repository errorsRemoteException
- on RMI errorspublic RemoteLock getLock() throws RepositoryException, RemoteException
Node.getLock()
method.getLock
in interface RemoteNode
RepositoryException
- on repository errorsRemoteException
- on RMI errorspublic RemoteLock lock(boolean isDeep, boolean isSessionScoped) throws RepositoryException, RemoteException
Node.lock(boolean,boolean)
method.lock
in interface RemoteNode
isDeep
- flag to create a deep lockisSessionScoped
- flag to create a session-scoped lockRepositoryException
- on repository errorsRemoteException
- on RMI errorspublic RemoteIterator getSharedSet() throws RepositoryException, RemoteException
Node.getSharedSet()
method.getSharedSet
in interface RemoteNode
NodeIterator
.RepositoryException
- on repository errorsRemoteException
- on RMI errorspublic void followLifecycleTransition(String transition) throws RepositoryException, RemoteException
Node.followLifecycleTransition(String)
method.followLifecycleTransition
in interface RemoteNode
transition
- a state transitionRepositoryException
- on repository errorsRemoteException
- on RMI errorspublic String[] getAllowedLifecycleTransistions() throws RepositoryException, RemoteException
Node.getAllowedLifecycleTransistions()
method.getAllowedLifecycleTransistions
in interface RemoteNode
String
array.RepositoryException
- on repository errorsRemoteException
- on RMI errorspublic RemoteIterator getWeakReferences() throws RepositoryException, RemoteException
Node.getWeakReferences()
method.getWeakReferences
in interface RemoteNode
PropertyIterator
.RepositoryException
- on repository errorsRemoteException
- on RMI errorspublic RemoteIterator getWeakReferences(String name) throws 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
.RepositoryException
- on repository errorsRemoteException
- on RMI errorspublic void removeShare() throws RepositoryException, RemoteException
Node.removeShare()
method.removeShare
in interface RemoteNode
RepositoryException
- on repository errorsRemoteException
- on RMI errorspublic void removeSharedSet() throws RepositoryException, RemoteException
Node.removeSharedSet()
method.removeSharedSet
in interface RemoteNode
RepositoryException
- on repository errorsRemoteException
- on RMI errorspublic void setPrimaryType(String nodeTypeName) throws RepositoryException, RemoteException
Node.setPrimaryType(String)
method.setPrimaryType
in interface RemoteNode
nodeTypeName
- the node type nameRepositoryException
- on repository errorsRemoteException
- on RMI errorsprotected Version getVersionByUUID(String versionUUID) throws RepositoryException
Version
instance for the given UUID.versionUUID
- The UUID of the version.RepositoryException
- if an error occurrs accessing the version
node or if the UUID does not denote a version.Copyright © 2004–2024 The Apache Software Foundation. All rights reserved.