|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RemoteNode
Remote version of the JCR 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
Method Summary | |
---|---|
void |
addMixin(java.lang.String name)
Remote version of the Node.addMixin(String) method. |
RemoteNode |
addNode(java.lang.String path)
Remote version of the Node.addNode(Sring) method. |
RemoteNode |
addNode(java.lang.String path,
java.lang.String type)
Remote version of the Node.addNode(String,String)
method. |
boolean |
canAddMixin(java.lang.String name)
Remote version of the Node.canAddMixin(String)
method. |
void |
cancelMerge(java.lang.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(java.lang.String versionUUID)
Remote version of the Node.doneMerge(Version)
method. |
RemoteVersion |
getBaseVersion()
Remote version of the Node.getBaseVersion() method. |
java.lang.String |
getCorrespondingNodePath(java.lang.String workspace)
Remote version of the Node.getCorrespondingNodePath(String)
method. |
RemoteNodeDefinition |
getDefinition()
Remote version of the Node.getDefinition() method. |
java.lang.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(java.lang.String path)
Remote version of the Node.getNode(String) method. |
RemoteIterator |
getNodes()
Remote version of the Node.getNodes() method. |
RemoteIterator |
getNodes(java.lang.String pattern)
Remote version of the Node.getNodes(String) method. |
RemoteIterator |
getNodes(java.lang.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(java.lang.String pattern)
Remote version of the Node.getProperties(String)
method. |
RemoteIterator |
getProperties(java.lang.String[] globs)
Remote version of the Node.getProperties(String[])
method. |
RemoteProperty |
getProperty(java.lang.String path)
Remote version of the Node.getProperty(String)
method. |
RemoteIterator |
getReferences()
Remote version of the Node.getReferences() method. |
RemoteIterator |
getReferences(java.lang.String name)
Remote version of the Node.getReferences(String) method. |
java.lang.String |
getUUID()
Remote version of the Node.getUUID() method. |
RemoteVersionHistory |
getVersionHistory()
Remote version of the Node.getVersionHistory() method. |
boolean |
hasNode(java.lang.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(java.lang.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(java.lang.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(java.lang.String workspace,
boolean bestEffort)
Remote version of the Node.merge(String,boolean)
method. |
void |
orderBefore(java.lang.String src,
java.lang.String dst)
Remote version of the Node.orderBefore(String,String)
method. |
void |
removeMixin(java.lang.String name)
Remote version of the Node.removeMixin(String)
method. |
void |
restore(java.lang.String version,
boolean removeExisting)
Remote version of the Node.restore(String,boolean)
method. |
void |
restore(java.lang.String versionUUID,
java.lang.String path,
boolean removeExisting)
Remote version of the Node.restore(Version,String,boolean)
method. |
void |
restoreByLabel(java.lang.String label,
boolean removeExisting)
Remote version of the Node.restoreByLabel(String,boolean)
method. |
void |
restoreByUUID(java.lang.String versionUUID,
boolean removeExisting)
Remote version of the Node.restore(Version,boolean)
method. |
RemoteProperty |
setProperty(java.lang.String name,
javax.jcr.Value value)
Remote version of the Node.setProperty(String,Value)
method. |
RemoteProperty |
setProperty(java.lang.String name,
javax.jcr.Value[] values)
Remote version of the Node.setProperty(String,Value[])
method. |
RemoteProperty |
setProperty(java.lang.String name,
javax.jcr.Value[] values,
int type)
Remote version of the Node.setProperty(String,Value[],int)
method. |
RemoteProperty |
setProperty(java.lang.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(java.lang.String workspace)
Remote version of the Node.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 |
---|
RemoteNode addNode(java.lang.String path) throws javax.jcr.RepositoryException, java.rmi.RemoteException
Node.addNode(Sring)
method.
path
- relative path
javax.jcr.RepositoryException
- on repository errors
java.rmi.RemoteException
- on RMI errorsRemoteNode addNode(java.lang.String path, java.lang.String type) throws javax.jcr.RepositoryException, java.rmi.RemoteException
Node.addNode(String,String)
method.
path
- relative pathtype
- node type name
javax.jcr.RepositoryException
- on repository errors
java.rmi.RemoteException
- on RMI errorsRemoteProperty getProperty(java.lang.String path) throws javax.jcr.RepositoryException, java.rmi.RemoteException
Node.getProperty(String)
method.
path
- relative path
javax.jcr.RepositoryException
- on repository errors
java.rmi.RemoteException
- on RMI errorsRemoteIterator getProperties() throws javax.jcr.RepositoryException, java.rmi.RemoteException
Node.getProperties()
method.
javax.jcr.RepositoryException
- on repository errors
java.rmi.RemoteException
- on RMI errorsRemoteIterator getProperties(java.lang.String pattern) throws javax.jcr.RepositoryException, java.rmi.RemoteException
Node.getProperties(String)
method.
pattern
- property name pattern
javax.jcr.RepositoryException
- on repository errors
java.rmi.RemoteException
- on RMI errorsRemoteIterator getProperties(java.lang.String[] globs) throws javax.jcr.RepositoryException, java.rmi.RemoteException
Node.getProperties(String[])
method.
globs
- property name globs
javax.jcr.RepositoryException
- on repository errors
java.rmi.RemoteException
- on RMI errorsRemoteItem getPrimaryItem() throws javax.jcr.RepositoryException, java.rmi.RemoteException
Node.getPrimaryItem()
method.
javax.jcr.RepositoryException
- on repository errors
java.rmi.RemoteException
- on RMI errorsjava.lang.String getIdentifier() throws javax.jcr.RepositoryException, java.rmi.RemoteException
Node.getIdentifier()
method.
javax.jcr.RepositoryException
- on repository errors
java.rmi.RemoteException
- on RMI errorsjava.lang.String getUUID() throws javax.jcr.RepositoryException, java.rmi.RemoteException
Node.getUUID()
method.
javax.jcr.RepositoryException
- on repository errors
java.rmi.RemoteException
- on RMI errorsRemoteIterator getReferences() throws javax.jcr.RepositoryException, java.rmi.RemoteException
Node.getReferences()
method.
javax.jcr.RepositoryException
- on repository errors
java.rmi.RemoteException
- on RMI errorsRemoteIterator getReferences(java.lang.String name) throws javax.jcr.RepositoryException, java.rmi.RemoteException
Node.getReferences(String)
method.
name
- reference property name
javax.jcr.RepositoryException
- on repository errors
java.rmi.RemoteException
- on RMI errorsRemoteIterator getNodes() throws javax.jcr.RepositoryException, java.rmi.RemoteException
Node.getNodes()
method.
javax.jcr.RepositoryException
- on repository errors
java.rmi.RemoteException
- on RMI errorsRemoteIterator getNodes(java.lang.String pattern) throws javax.jcr.RepositoryException, java.rmi.RemoteException
Node.getNodes(String)
method.
pattern
- node name pattern
javax.jcr.RepositoryException
- on repository errors
java.rmi.RemoteException
- on RMI errorsRemoteIterator getNodes(java.lang.String[] globs) throws javax.jcr.RepositoryException, java.rmi.RemoteException
Node.getNodes(String[])
method.
globs
- node name globs
javax.jcr.RepositoryException
- on repository errors
java.rmi.RemoteException
- on RMI errorsboolean hasNode(java.lang.String path) throws javax.jcr.RepositoryException, java.rmi.RemoteException
Node.hasNode(String)
method.
path
- relative path
true
if the identified node exists,
false
otherwise
javax.jcr.RepositoryException
- on repository errors
java.rmi.RemoteException
- on RMI errorsboolean hasProperty(java.lang.String path) throws javax.jcr.RepositoryException, java.rmi.RemoteException
Node.hasProperty()
method.
path
- relative path
true
if the identified property exists,
false
otherwise
javax.jcr.RepositoryException
- on repository errors
java.rmi.RemoteException
- on RMI errorsboolean hasNodes() throws javax.jcr.RepositoryException, java.rmi.RemoteException
Node.hasNodes()
method.
true
if this node has child nodes,
false
otherwise
javax.jcr.RepositoryException
- on repository errors
java.rmi.RemoteException
- on RMI errorsboolean hasProperties() throws javax.jcr.RepositoryException, java.rmi.RemoteException
Node.hasProperties()
method.
true
if this node has properties,
false
otherwise
javax.jcr.RepositoryException
- on repository errors
java.rmi.RemoteException
- on RMI errorsRemoteNodeType getPrimaryNodeType() throws javax.jcr.RepositoryException, java.rmi.RemoteException
Node.getPrimaryNodeType()
method.
javax.jcr.RepositoryException
- on repository errors
java.rmi.RemoteException
- on RMI errorsRemoteNodeType[] getMixinNodeTypes() throws javax.jcr.RepositoryException, java.rmi.RemoteException
Node.getMixinNodeTypes()
method.
javax.jcr.RepositoryException
- on repository errors
java.rmi.RemoteException
- on RMI errorsboolean isNodeType(java.lang.String type) throws javax.jcr.RepositoryException, java.rmi.RemoteException
Node.isNodeType(String)
method.
type
- node type name
true
if this node is an instance of the
identified type, false
otherwise
javax.jcr.RepositoryException
- on repository errors
java.rmi.RemoteException
- on RMI errorsRemoteNode getNode(java.lang.String path) throws javax.jcr.RepositoryException, java.rmi.RemoteException
Node.getNode(String)
method.
path
- relative path
javax.jcr.RepositoryException
- on repository errors
java.rmi.RemoteException
- on RMI errorsvoid orderBefore(java.lang.String src, java.lang.String dst) throws javax.jcr.RepositoryException, java.rmi.RemoteException
Node.orderBefore(String,String)
method.
src
- source pathdst
- destination path
javax.jcr.RepositoryException
- on repository errors
java.rmi.RemoteException
- on RMI errorsRemoteProperty setProperty(java.lang.String name, javax.jcr.Value value) throws javax.jcr.RepositoryException, java.rmi.RemoteException
Node.setProperty(String,Value)
method.
name
- property namevalue
- property value
javax.jcr.RepositoryException
- on repository errors
java.rmi.RemoteException
- on RMI errorsRemoteProperty setProperty(java.lang.String name, javax.jcr.Value value, int type) throws javax.jcr.RepositoryException, java.rmi.RemoteException
Node.setProperty(String,Value)
method.
name
- property namevalue
- property valuetype
- property type
javax.jcr.RepositoryException
- on repository errors
java.rmi.RemoteException
- on RMI errorsRemoteProperty setProperty(java.lang.String name, javax.jcr.Value[] values) throws javax.jcr.RepositoryException, java.rmi.RemoteException
Node.setProperty(String,Value[])
method.
name
- property namevalues
- property values
javax.jcr.RepositoryException
- on repository errors
java.rmi.RemoteException
- on RMI errorsvoid addMixin(java.lang.String name) throws javax.jcr.RepositoryException, java.rmi.RemoteException
Node.addMixin(String)
method.
name
- mixin type name
javax.jcr.RepositoryException
- on repository errors
java.rmi.RemoteException
- on RMI errorsvoid removeMixin(java.lang.String name) throws javax.jcr.RepositoryException, java.rmi.RemoteException
Node.removeMixin(String)
method.
name
- mixin type name
javax.jcr.RepositoryException
- on repository errors
java.rmi.RemoteException
- on RMI errorsboolean canAddMixin(java.lang.String name) throws javax.jcr.RepositoryException, java.rmi.RemoteException
Node.canAddMixin(String)
method.
name
- mixin type name
true
if the mixin type can be added,
false
otherwise
javax.jcr.RepositoryException
- on repository errors
java.rmi.RemoteException
- on RMI errorsRemoteNodeDefinition getDefinition() throws javax.jcr.RepositoryException, java.rmi.RemoteException
Node.getDefinition()
method.
javax.jcr.RepositoryException
- on repository errors
java.rmi.RemoteException
- on RMI errorsRemoteVersion checkin() throws javax.jcr.RepositoryException, java.rmi.RemoteException
Node.checkin()
method.
javax.jcr.RepositoryException
- on repository errors
java.rmi.RemoteException
- on RMI errorsvoid checkout() throws javax.jcr.RepositoryException, java.rmi.RemoteException
Node.checkout()
method.
javax.jcr.RepositoryException
- on repository errors
java.rmi.RemoteException
- on RMI errorsvoid update(java.lang.String workspace) throws javax.jcr.RepositoryException, java.rmi.RemoteException
Node.update(String)
method.
workspace
- source workspace name
javax.jcr.RepositoryException
- on repository errors
java.rmi.RemoteException
- on RMI errorsRemoteIterator merge(java.lang.String workspace, boolean bestEffort) throws javax.jcr.RepositoryException, java.rmi.RemoteException
Node.merge(String,boolean)
method.
workspace
- source workspace namebestEffort
- best effort flag
javax.jcr.RepositoryException
- on repository errors
java.rmi.RemoteException
- on RMI errorsvoid cancelMerge(java.lang.String versionUUID) throws javax.jcr.RepositoryException, java.rmi.RemoteException
Node.cancelMerge(Version)
method.
versionUUID
- The UUID of the version whose labels are to be returned.
javax.jcr.RepositoryException
- on repository errors
java.rmi.RemoteException
- on RMI errorsvoid doneMerge(java.lang.String versionUUID) throws javax.jcr.RepositoryException, java.rmi.RemoteException
Node.doneMerge(Version)
method.
versionUUID
- The UUID of the version whose labels are to be returned.
javax.jcr.RepositoryException
- on repository errors
java.rmi.RemoteException
- on RMI errorsjava.lang.String getCorrespondingNodePath(java.lang.String workspace) throws javax.jcr.RepositoryException, java.rmi.RemoteException
Node.getCorrespondingNodePath(String)
method.
workspace
- workspace name
javax.jcr.RepositoryException
- on repository errors
java.rmi.RemoteException
- on RMI errorsint getIndex() throws javax.jcr.RepositoryException, java.rmi.RemoteException
Node.getIndex()
method.
javax.jcr.RepositoryException
- on repository errors
java.rmi.RemoteException
- on RMI errorsvoid restore(java.lang.String version, boolean removeExisting) throws javax.jcr.RepositoryException, java.rmi.RemoteException
Node.restore(String,boolean)
method.
version
- version nameremoveExisting
- flag to remove conflicting nodes
javax.jcr.RepositoryException
- on repository errors
java.rmi.RemoteException
- on RMI errorsvoid restoreByUUID(java.lang.String versionUUID, boolean removeExisting) throws javax.jcr.RepositoryException, java.rmi.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 nodes
javax.jcr.RepositoryException
- on repository errors
java.rmi.RemoteException
- on RMI errorsvoid restore(java.lang.String versionUUID, java.lang.String path, boolean removeExisting) throws javax.jcr.RepositoryException, java.rmi.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 nodes
javax.jcr.RepositoryException
- on repository errors
java.rmi.RemoteException
- on RMI errorsvoid restoreByLabel(java.lang.String label, boolean removeExisting) throws javax.jcr.RepositoryException, java.rmi.RemoteException
Node.restoreByLabel(String,boolean)
method.
label
- version labelremoveExisting
- flag to remove conflicting nodes
javax.jcr.RepositoryException
- on repository errors
java.rmi.RemoteException
- on RMI errorsvoid unlock() throws javax.jcr.RepositoryException, java.rmi.RemoteException
Node.unlock()
method.
javax.jcr.RepositoryException
- on repository errors
java.rmi.RemoteException
- on RMI errorsboolean holdsLock() throws javax.jcr.RepositoryException, java.rmi.RemoteException
Node.holdsLock()
method.
true
if this node holds a lock,
false
otherwise
javax.jcr.RepositoryException
- on repository errors
java.rmi.RemoteException
- on RMI errorsboolean isLocked() throws javax.jcr.RepositoryException, java.rmi.RemoteException
Node.isLocked()
method.
true
if this node is locked,
false
otherwise
javax.jcr.RepositoryException
- on repository errors
java.rmi.RemoteException
- on RMI errorsboolean isCheckedOut() throws javax.jcr.RepositoryException, java.rmi.RemoteException
Node.isCheckedOut()
method.
true
if this node is checked out,
false
otherwise
javax.jcr.RepositoryException
- on repository errors
java.rmi.RemoteException
- on RMI errorsRemoteVersionHistory getVersionHistory() throws javax.jcr.RepositoryException, java.rmi.RemoteException
Node.getVersionHistory()
method.
javax.jcr.RepositoryException
- on repository errors
java.rmi.RemoteException
- on RMI errorsRemoteVersion getBaseVersion() throws javax.jcr.RepositoryException, java.rmi.RemoteException
Node.getBaseVersion()
method.
javax.jcr.RepositoryException
- on repository errors
java.rmi.RemoteException
- on RMI errorsRemoteProperty setProperty(java.lang.String name, javax.jcr.Value[] values, int type) throws javax.jcr.RepositoryException, java.rmi.RemoteException
Node.setProperty(String,Value[],int)
method.
name
- property namevalues
- property valuestype
- property type
javax.jcr.RepositoryException
- on repository errors
java.rmi.RemoteException
- on RMI errorsRemoteLock lock(boolean isDeep, boolean isSessionScoped) throws javax.jcr.RepositoryException, java.rmi.RemoteException
Node.lock(boolean,boolean)
method.
isDeep
- flag to create a deep lockisSessionScoped
- flag to create a session-scoped lock
javax.jcr.RepositoryException
- on repository errors
java.rmi.RemoteException
- on RMI errorsRemoteLock getLock() throws javax.jcr.RepositoryException, java.rmi.RemoteException
Node.getLock()
method.
javax.jcr.RepositoryException
- on repository errors
java.rmi.RemoteException
- on RMI errors
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |