Interface RemoteNode
-
- All Superinterfaces:
Remote,RemoteItem
- All Known Subinterfaces:
RemoteVersion,RemoteVersionHistory
- All Known Implementing Classes:
ServerNode,ServerVersion,ServerVersionHistory
@Deprecated public interface RemoteNode extends RemoteItem
Deprecated.RMI support is deprecated and will be removed in a future version of Jackrabbit; see Jira ticket JCR-4972 for more information.Remote version of the JCR
Nodeinterface. Used by theServerNodeandClientNodeadapters 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
SerialValueFactoryclass provides two convenience methods to satisfy these requirements.- See Also:
Node,ClientNode,ServerNode
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description voidaddMixin(String name)Deprecated.Remote version of theNode.addMixin(String)method.RemoteNodeaddNode(String path)Deprecated.Remote version of theNode.addNode(Sring)method.RemoteNodeaddNode(String path, String type)Deprecated.Remote version of theNode.addNode(String,String)method.booleancanAddMixin(String name)Deprecated.Remote version of theNode.canAddMixin(String)method.voidcancelMerge(String versionUUID)Deprecated.Remote version of theNode.cancelMerge(Version)method.RemoteVersioncheckin()Deprecated.Remote version of theNode.checkin()method.voidcheckout()Deprecated.Remote version of theNode.checkout()method.voiddoneMerge(String versionUUID)Deprecated.Remote version of theNode.doneMerge(Version)method.voidfollowLifecycleTransition(String transition)Deprecated.Remote version of theNode.followLifecycleTransition(String)method.String[]getAllowedLifecycleTransistions()Deprecated.Remote version of theNode.getAllowedLifecycleTransistions()method.RemoteVersiongetBaseVersion()Deprecated.Remote version of theNode.getBaseVersion()method.StringgetCorrespondingNodePath(String workspace)Deprecated.Remote version of theNode.getCorrespondingNodePath(String)method.RemoteNodeDefinitiongetDefinition()Deprecated.Remote version of theNode.getDefinition()method.StringgetIdentifier()Deprecated.Remote version of theNode.getIdentifier()method.intgetIndex()Deprecated.Remote version of theNode.getIndex()method.RemoteLockgetLock()Deprecated.Remote version of theNode.getLock()method.RemoteNodeType[]getMixinNodeTypes()Deprecated.Remote version of theNode.getMixinNodeTypes()method.RemoteNodegetNode(String path)Deprecated.Remote version of theNode.getNode(String)method.RemoteIteratorgetNodes()Deprecated.Remote version of theNode.getNodes()method.RemoteIteratorgetNodes(String pattern)Deprecated.Remote version of theNode.getNodes(String)method.RemoteIteratorgetNodes(String[] globs)Deprecated.Remote version of theNode.getNodes(String[])method.RemoteItemgetPrimaryItem()Deprecated.Remote version of theNode.getPrimaryItem()method.RemoteNodeTypegetPrimaryNodeType()Deprecated.Remote version of theNode.getPrimaryNodeType()method.RemoteIteratorgetProperties()Deprecated.Remote version of theNode.getProperties()method.RemoteIteratorgetProperties(String pattern)Deprecated.Remote version of theNode.getProperties(String)method.RemoteIteratorgetProperties(String[] globs)Deprecated.Remote version of theNode.getProperties(String[])method.RemotePropertygetProperty(String path)Deprecated.Remote version of theNode.getProperty(String)method.RemoteIteratorgetReferences()Deprecated.Remote version of theNode.getReferences()method.RemoteIteratorgetReferences(String name)Deprecated.Remote version of theNode.getReferences(String)method.RemoteIteratorgetSharedSet()Deprecated.Remote version of theNode.getSharedSet()method.StringgetUUID()Deprecated.Remote version of theNode.getUUID()method.RemoteVersionHistorygetVersionHistory()Deprecated.Remote version of theNode.getVersionHistory()method.RemoteIteratorgetWeakReferences()Deprecated.Remote version of theNode.getWeakReferences()method.RemoteIteratorgetWeakReferences(String name)Deprecated.Remote version of theNode.getWeakReferences(String)method.booleanhasNode(String path)Deprecated.Remote version of theNode.hasNode(String)method.booleanhasNodes()Deprecated.Remote version of theNode.hasNodes()method.booleanhasProperties()Deprecated.Remote version of theNode.hasProperties()method.booleanhasProperty(String path)Deprecated.Remote version of theNode.hasProperty()method.booleanholdsLock()Deprecated.Remote version of theNode.holdsLock()method.booleanisCheckedOut()Deprecated.Remote version of theNode.isCheckedOut()method.booleanisLocked()Deprecated.Remote version of theNode.isLocked()method.booleanisNodeType(String type)Deprecated.Remote version of theNode.isNodeType(String)method.RemoteLocklock(boolean isDeep, boolean isSessionScoped)Deprecated.Remote version of theNode.lock(boolean,boolean)method.RemoteIteratormerge(String workspace, boolean bestEffort)Deprecated.Remote version of theNode.merge(String,boolean)method.voidorderBefore(String src, String dst)Deprecated.Remote version of theNode.orderBefore(String,String)method.voidremoveMixin(String name)Deprecated.Remote version of theNode.removeMixin(String)method.voidremoveShare()Deprecated.Remote version of theNode.removeShare()method.voidremoveSharedSet()Deprecated.Remote version of theNode.removeSharedSet()method.voidrestore(String version, boolean removeExisting)Deprecated.Remote version of theNode.restore(String,boolean)method.voidrestore(String versionUUID, String path, boolean removeExisting)Deprecated.Remote version of theNode.restore(Version,String,boolean)method.voidrestoreByLabel(String label, boolean removeExisting)Deprecated.Remote version of theNode.restoreByLabel(String,boolean)method.voidrestoreByUUID(String versionUUID, boolean removeExisting)Deprecated.Remote version of theNode.restore(Version,boolean)method.voidsetPrimaryType(String nodeTypeName)Deprecated.Remote version of theNode.setPrimaryType(String)method.RemotePropertysetProperty(String name, Value value)Deprecated.Remote version of theNode.setProperty(String,Value)method.RemotePropertysetProperty(String name, Value[] values)Deprecated.Remote version of theNode.setProperty(String,Value[])method.RemotePropertysetProperty(String name, Value[] values, int type)Deprecated.Remote version of theNode.setProperty(String,Value[],int)method.RemotePropertysetProperty(String name, Value value, int type)Deprecated.Remote version of theNode.setProperty(String,Value)method.voidunlock()Deprecated.Remote version of theNode.unlock()method.voidupdate(String workspace)Deprecated.Remote version of theNode.update(String)method.-
Methods inherited from interface org.apache.jackrabbit.rmi.remote.RemoteItem
getAncestor, getDepth, getName, getParent, getPath, isModified, isNew, refresh, remove, save
-
-
-
-
Method Detail
-
addNode
RemoteNode addNode(String path) throws RepositoryException, RemoteException
Deprecated.Remote version of theNode.addNode(Sring)method.- Parameters:
path- relative path- Returns:
- new node
- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
addNode
RemoteNode addNode(String path, String type) throws RepositoryException, RemoteException
Deprecated.Remote version of theNode.addNode(String,String)method.- Parameters:
path- relative pathtype- node type name- Returns:
- new node
- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
getProperty
RemoteProperty getProperty(String path) throws RepositoryException, RemoteException
Deprecated.Remote version of theNode.getProperty(String)method.- Parameters:
path- relative path- Returns:
- node property
- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
getProperties
RemoteIterator getProperties() throws RepositoryException, RemoteException
Deprecated.Remote version of theNode.getProperties()method.- Returns:
- node properties
- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
getProperties
RemoteIterator getProperties(String pattern) throws RepositoryException, RemoteException
Deprecated.Remote version of theNode.getProperties(String)method.- Parameters:
pattern- property name pattern- Returns:
- matching node properties
- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
getProperties
RemoteIterator getProperties(String[] globs) throws RepositoryException, RemoteException
Deprecated.Remote version of theNode.getProperties(String[])method.- Parameters:
globs- property name globs- Returns:
- matching node properties
- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
getPrimaryItem
RemoteItem getPrimaryItem() throws RepositoryException, RemoteException
Deprecated.Remote version of theNode.getPrimaryItem()method.- Returns:
- primary item
- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
getIdentifier
String getIdentifier() throws RepositoryException, RemoteException
Deprecated.Remote version of theNode.getIdentifier()method.- Returns:
- node identifier
- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
getUUID
String getUUID() throws RepositoryException, RemoteException
Deprecated.Remote version of theNode.getUUID()method.- Returns:
- node uuid
- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
getReferences
RemoteIterator getReferences() throws RepositoryException, RemoteException
Deprecated.Remote version of theNode.getReferences()method.- Returns:
- reference properties
- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
getReferences
RemoteIterator getReferences(String name) throws RepositoryException, RemoteException
Deprecated.Remote version of theNode.getReferences(String)method.- Parameters:
name- reference property name- Returns:
- reference properties
- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
getNodes
RemoteIterator getNodes() throws RepositoryException, RemoteException
Deprecated.Remote version of theNode.getNodes()method.- Returns:
- child nodes
- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
getNodes
RemoteIterator getNodes(String pattern) throws RepositoryException, RemoteException
Deprecated.Remote version of theNode.getNodes(String)method.- Parameters:
pattern- node name pattern- Returns:
- matching child nodes
- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
getNodes
RemoteIterator getNodes(String[] globs) throws RepositoryException, RemoteException
Deprecated.Remote version of theNode.getNodes(String[])method.- Parameters:
globs- node name globs- Returns:
- matching child nodes
- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
hasNode
boolean hasNode(String path) throws RepositoryException, RemoteException
Deprecated.Remote version of theNode.hasNode(String)method.- Parameters:
path- relative path- Returns:
trueif the identified node exists,falseotherwise- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
hasProperty
boolean hasProperty(String path) throws RepositoryException, RemoteException
Deprecated.Remote version of theNode.hasProperty()method.- Parameters:
path- relative path- Returns:
trueif the identified property exists,falseotherwise- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
hasNodes
boolean hasNodes() throws RepositoryException, RemoteExceptionDeprecated.Remote version of theNode.hasNodes()method.- Returns:
trueif this node has child nodes,falseotherwise- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
hasProperties
boolean hasProperties() throws RepositoryException, RemoteExceptionDeprecated.Remote version of theNode.hasProperties()method.- Returns:
trueif this node has properties,falseotherwise- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
getPrimaryNodeType
RemoteNodeType getPrimaryNodeType() throws RepositoryException, RemoteException
Deprecated.Remote version of theNode.getPrimaryNodeType()method.- Returns:
- primary node type
- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
getMixinNodeTypes
RemoteNodeType[] getMixinNodeTypes() throws RepositoryException, RemoteException
Deprecated.Remote version of theNode.getMixinNodeTypes()method.- Returns:
- mixin node types
- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
isNodeType
boolean isNodeType(String type) throws RepositoryException, RemoteException
Deprecated.Remote version of theNode.isNodeType(String)method.- Parameters:
type- node type name- Returns:
trueif this node is an instance of the identified type,falseotherwise- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
getNode
RemoteNode getNode(String path) throws RepositoryException, RemoteException
Deprecated.Remote version of theNode.getNode(String)method.- Parameters:
path- relative path- Returns:
- node
- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
orderBefore
void orderBefore(String src, String dst) throws RepositoryException, RemoteException
Deprecated.Remote version of theNode.orderBefore(String,String)method.- Parameters:
src- source pathdst- destination path- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
setProperty
RemoteProperty setProperty(String name, Value value) throws RepositoryException, RemoteException
Deprecated.Remote version of theNode.setProperty(String,Value)method.- Parameters:
name- property namevalue- property value- Returns:
- property
- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
setProperty
RemoteProperty setProperty(String name, Value value, int type) throws RepositoryException, RemoteException
Deprecated.Remote version of theNode.setProperty(String,Value)method.- Parameters:
name- property namevalue- property valuetype- property type- Returns:
- property
- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
setProperty
RemoteProperty setProperty(String name, Value[] values) throws RepositoryException, RemoteException
Deprecated.Remote version of theNode.setProperty(String,Value[])method.- Parameters:
name- property namevalues- property values- Returns:
- property
- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
addMixin
void addMixin(String name) throws RepositoryException, RemoteException
Deprecated.Remote version of theNode.addMixin(String)method.- Parameters:
name- mixin type name- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
removeMixin
void removeMixin(String name) throws RepositoryException, RemoteException
Deprecated.Remote version of theNode.removeMixin(String)method.- Parameters:
name- mixin type name- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
canAddMixin
boolean canAddMixin(String name) throws RepositoryException, RemoteException
Deprecated.Remote version of theNode.canAddMixin(String)method.- Parameters:
name- mixin type name- Returns:
trueif the mixin type can be added,falseotherwise- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
getDefinition
RemoteNodeDefinition getDefinition() throws RepositoryException, RemoteException
Deprecated.Remote version of theNode.getDefinition()method.- Returns:
- node definition
- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
checkin
RemoteVersion checkin() throws RepositoryException, RemoteException
Deprecated.Remote version of theNode.checkin()method.- Returns:
- checked in version
- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
checkout
void checkout() throws RepositoryException, RemoteExceptionDeprecated.Remote version of theNode.checkout()method.- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
update
void update(String workspace) throws RepositoryException, RemoteException
Deprecated.Remote version of theNode.update(String)method.- Parameters:
workspace- source workspace name- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
merge
RemoteIterator merge(String workspace, boolean bestEffort) throws RepositoryException, RemoteException
Deprecated.Remote version of theNode.merge(String,boolean)method.- Parameters:
workspace- source workspace namebestEffort- best effort flag- Returns:
- nodes that failed to merge
- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
cancelMerge
void cancelMerge(String versionUUID) throws RepositoryException, RemoteException
Deprecated.Remote version of theNode.cancelMerge(Version)method.- Parameters:
versionUUID- The UUID of the version whose labels are to be returned.- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
doneMerge
void doneMerge(String versionUUID) throws RepositoryException, RemoteException
Deprecated.Remote version of theNode.doneMerge(Version)method.- Parameters:
versionUUID- The UUID of the version whose labels are to be returned.- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
getCorrespondingNodePath
String getCorrespondingNodePath(String workspace) throws RepositoryException, RemoteException
Deprecated.Remote version of theNode.getCorrespondingNodePath(String)method.- Parameters:
workspace- workspace name- Returns:
- corresponding node path
- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
getIndex
int getIndex() throws RepositoryException, RemoteExceptionDeprecated.Remote version of theNode.getIndex()method.- Returns:
- node index
- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
restore
void restore(String version, boolean removeExisting) throws RepositoryException, RemoteException
Deprecated.Remote version of theNode.restore(String,boolean)method.- Parameters:
version- version nameremoveExisting- flag to remove conflicting nodes- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
restoreByUUID
void restoreByUUID(String versionUUID, boolean removeExisting) throws RepositoryException, RemoteException
Deprecated.Remote version of theNode.restore(Version,boolean)method.This method has been rename to prevent a naming clash with
restore(String, boolean).- Parameters:
versionUUID- The UUID of the version whose labels are to be returned.removeExisting- flag to remove conflicting nodes- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
restore
void restore(String versionUUID, String path, boolean removeExisting) throws RepositoryException, RemoteException
Deprecated.Remote version of theNode.restore(Version,String,boolean)method.- Parameters:
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 nodes- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
restoreByLabel
void restoreByLabel(String label, boolean removeExisting) throws RepositoryException, RemoteException
Deprecated.Remote version of theNode.restoreByLabel(String,boolean)method.- Parameters:
label- version labelremoveExisting- flag to remove conflicting nodes- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
unlock
void unlock() throws RepositoryException, RemoteExceptionDeprecated.Remote version of theNode.unlock()method.- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
holdsLock
boolean holdsLock() throws RepositoryException, RemoteExceptionDeprecated.Remote version of theNode.holdsLock()method.- Returns:
trueif this node holds a lock,falseotherwise- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
isLocked
boolean isLocked() throws RepositoryException, RemoteExceptionDeprecated.Remote version of theNode.isLocked()method.- Returns:
trueif this node is locked,falseotherwise- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
isCheckedOut
boolean isCheckedOut() throws RepositoryException, RemoteExceptionDeprecated.Remote version of theNode.isCheckedOut()method.- Returns:
trueif this node is checked out,falseotherwise- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
getVersionHistory
RemoteVersionHistory getVersionHistory() throws RepositoryException, RemoteException
Deprecated.Remote version of theNode.getVersionHistory()method.- Returns:
- the remote version history.
- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
getBaseVersion
RemoteVersion getBaseVersion() throws RepositoryException, RemoteException
Deprecated.Remote version of theNode.getBaseVersion()method.- Returns:
- the remote base version
- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
setProperty
RemoteProperty setProperty(String name, Value[] values, int type) throws RepositoryException, RemoteException
Deprecated.Remote version of theNode.setProperty(String,Value[],int)method.- Parameters:
name- property namevalues- property valuestype- property type- Returns:
- property
- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
lock
RemoteLock lock(boolean isDeep, boolean isSessionScoped) throws RepositoryException, RemoteException
Deprecated.Remote version of theNode.lock(boolean,boolean)method.- Parameters:
isDeep- flag to create a deep lockisSessionScoped- flag to create a session-scoped lock- Returns:
- lock
- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
getLock
RemoteLock getLock() throws RepositoryException, RemoteException
Deprecated.Remote version of theNode.getLock()method.- Returns:
- lock
- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
getSharedSet
RemoteIterator getSharedSet() throws RepositoryException, RemoteException
Deprecated.Remote version of theNode.getSharedSet()method.- Returns:
- a
NodeIterator. - Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
followLifecycleTransition
void followLifecycleTransition(String transition) throws RepositoryException, RemoteException
Deprecated.Remote version of theNode.followLifecycleTransition(String)method.- Parameters:
transition- a state transition- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
getAllowedLifecycleTransistions
String[] getAllowedLifecycleTransistions() throws RepositoryException, RemoteException
Deprecated.Remote version of theNode.getAllowedLifecycleTransistions()method.- Returns:
- a
Stringarray. - Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
getWeakReferences
RemoteIterator getWeakReferences() throws RepositoryException, RemoteException
Deprecated.Remote version of theNode.getWeakReferences()method.- Returns:
- A
PropertyIterator. - Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
getWeakReferences
RemoteIterator getWeakReferences(String name) throws RepositoryException, RemoteException
Deprecated.Remote version of theNode.getWeakReferences(String)method.- Parameters:
name- name of referringWEAKREFERENCEproperties to be returned; ifnullthen all referringWEAKREFERENCEs are returned.- Returns:
- A
PropertyIterator. - Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
removeShare
void removeShare() throws RepositoryException, RemoteExceptionDeprecated.Remote version of theNode.removeShare()method.- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
removeSharedSet
void removeSharedSet() throws RepositoryException, RemoteExceptionDeprecated.Remote version of theNode.removeSharedSet()method.- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
setPrimaryType
void setPrimaryType(String nodeTypeName) throws RepositoryException, RemoteException
Deprecated.Remote version of theNode.setPrimaryType(String)method.- Parameters:
nodeTypeName- the node type name- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
-