|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.rmi.server.RemoteObject java.rmi.server.RemoteServer java.rmi.server.UnicastRemoteObject org.apache.jackrabbit.rmi.server.ServerObject org.apache.jackrabbit.rmi.server.ServerItem org.apache.jackrabbit.rmi.server.ServerNode
public class ServerNode
Remote adapter for the JCR Node
interface.
This class makes a local node available as an RMI service using
the RemoteNode
interface.
Node
,
RemoteNode
,
Serialized FormField Summary |
---|
Fields inherited from class java.rmi.server.RemoteObject |
---|
ref |
Constructor Summary | |
---|---|
ServerNode(Node node,
RemoteAdapterFactory factory)
Creates a remote adapter for the given local node. |
Method Summary | |
---|---|
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. |
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. |
String |
getUUID()
Remote version of the Node.getUUID() method. |
protected Version |
getVersionByUUID(String versionUUID)
Returns the Version instance for the given UUID. |
RemoteVersionHistory |
getVersionHistory()
Remote version of the Node.getVersionHistory() 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 |
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. |
RemoteProperty |
setProperty(String name,
Value value)
Remote version of the Node.setProperty(String,Value)
method. |
RemoteProperty |
setProperty(String name,
Value[] values)
Remote version of the Node.setProperty(String,Value[])
method. |
RemoteProperty |
setProperty(String name,
Value[] values,
int type)
Remote version of the Node.setProperty(String,Value[],int)
method. |
RemoteProperty |
setProperty(String name,
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. |
Methods inherited from class org.apache.jackrabbit.rmi.server.ServerItem |
---|
getAncestor, getDepth, getName, getParent, getPath, isModified, isNew, refresh, remove, save |
Methods inherited from class org.apache.jackrabbit.rmi.server.ServerObject |
---|
getFactory, getRemoteItem, getRemoteNode, getRemoteNodeTypeArray, getRepositoryException, getSerialValue, getSerialValues |
Methods inherited from class java.rmi.server.UnicastRemoteObject |
---|
clone, exportObject, exportObject, exportObject, unexportObject |
Methods inherited from class java.rmi.server.RemoteServer |
---|
getClientHost, getLog, setLog |
Methods inherited from class java.rmi.server.RemoteObject |
---|
equals, getRef, hashCode, toString, toStub |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.apache.jackrabbit.rmi.remote.RemoteItem |
---|
getAncestor, getDepth, getName, getParent, getPath, isModified, isNew, refresh, remove, save |
Constructor Detail |
---|
public ServerNode(Node node, RemoteAdapterFactory factory) throws RemoteException
node
- local nodefactory
- remote adapter factory
RemoteException
- on RMI errorsMethod Detail |
---|
public RemoteNode addNode(String path) throws RepositoryException, RemoteException
Node.addNode(Sring)
method.
addNode
in interface RemoteNode
path
- relative path
RepositoryException
- on repository errors
RemoteException
- 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 name
RepositoryException
- on repository errors
RemoteException
- on RMI errorspublic RemoteProperty getProperty(String path) throws RepositoryException, RemoteException
Node.getProperty(String)
method.
getProperty
in interface RemoteNode
path
- relative path
RepositoryException
- on repository errors
RemoteException
- on RMI errorspublic RemoteIterator getProperties() throws RepositoryException, RemoteException
Node.getProperties()
method.
getProperties
in interface RemoteNode
RepositoryException
- on repository errors
RemoteException
- on RMI errorspublic RemoteItem getPrimaryItem() throws RepositoryException, RemoteException
Node.getPrimaryItem()
method.
getPrimaryItem
in interface RemoteNode
RepositoryException
- on repository errors
RemoteException
- on RMI errorspublic RemoteIterator getProperties(String pattern) throws RepositoryException, RemoteException
Node.getProperties(String)
method.
getProperties
in interface RemoteNode
pattern
- property name pattern
RepositoryException
- on repository errors
RemoteException
- on RMI errorspublic RemoteIterator getProperties(String[] globs) throws RepositoryException, RemoteException
Node.getProperties(String[])
method.
getProperties
in interface RemoteNode
globs
- property name globs
RepositoryException
- on repository errors
RemoteException
- on RMI errorspublic RemoteIterator getReferences() throws RepositoryException, RemoteException
Node.getReferences()
method.
getReferences
in interface RemoteNode
RepositoryException
- on repository errors
RemoteException
- on RMI errorspublic RemoteIterator getReferences(String name) throws RepositoryException, RemoteException
Node.getReferences(String)
method.
getReferences
in interface RemoteNode
name
- reference property name
RepositoryException
- on repository errors
RemoteException
- on RMI errorspublic String getIdentifier() throws RepositoryException, RemoteException
Node.getIdentifier()
method.
getIdentifier
in interface RemoteNode
RepositoryException
- on repository errors
RemoteException
- on RMI errorspublic String getUUID() throws RepositoryException, RemoteException
Node.getUUID()
method.
getUUID
in interface RemoteNode
RepositoryException
- on repository errors
RemoteException
- on RMI errorspublic boolean hasNodes() throws RepositoryException, RemoteException
Node.hasNodes()
method.
hasNodes
in interface RemoteNode
true
if this node has child nodes,
false
otherwise
RepositoryException
- on repository errors
RemoteException
- on RMI errorspublic boolean hasProperties() throws RepositoryException, RemoteException
Node.hasProperties()
method.
hasProperties
in interface RemoteNode
true
if this node has properties,
false
otherwise
RepositoryException
- on repository errors
RemoteException
- on RMI errorspublic boolean hasProperty(String path) throws RepositoryException, RemoteException
Node.hasProperty()
method.
hasProperty
in interface RemoteNode
path
- relative path
true
if the identified property exists,
false
otherwise
RepositoryException
- on repository errors
RemoteException
- on RMI errorspublic RemoteNodeType[] getMixinNodeTypes() throws RepositoryException, RemoteException
Node.getMixinNodeTypes()
method.
getMixinNodeTypes
in interface RemoteNode
RepositoryException
- on repository errors
RemoteException
- on RMI errorspublic RemoteNodeType getPrimaryNodeType() throws RepositoryException, RemoteException
Node.getPrimaryNodeType()
method.
getPrimaryNodeType
in interface RemoteNode
RepositoryException
- on repository errors
RemoteException
- on RMI errorspublic boolean isNodeType(String type) throws RepositoryException, RemoteException
Node.isNodeType(String)
method.
isNodeType
in interface RemoteNode
type
- node type name
true
if this node is an instance of the
identified type, false
otherwise
RepositoryException
- on repository errors
RemoteException
- on RMI errorspublic RemoteIterator getNodes() throws RepositoryException, RemoteException
Node.getNodes()
method.
getNodes
in interface RemoteNode
RepositoryException
- on repository errors
RemoteException
- on RMI errorspublic RemoteIterator getNodes(String pattern) throws RepositoryException, RemoteException
Node.getNodes(String)
method.
getNodes
in interface RemoteNode
pattern
- node name pattern
RepositoryException
- on repository errors
RemoteException
- on RMI errorspublic RemoteIterator getNodes(String[] globs) throws RepositoryException, RemoteException
Node.getNodes(String[])
method.
getNodes
in interface RemoteNode
globs
- node name globs
RepositoryException
- on repository errors
RemoteException
- on RMI errorspublic RemoteNode getNode(String path) throws RepositoryException, RemoteException
Node.getNode(String)
method.
getNode
in interface RemoteNode
path
- relative path
RepositoryException
- on repository errors
RemoteException
- on RMI errorspublic boolean hasNode(String path) throws RepositoryException, RemoteException
Node.hasNode(String)
method.
hasNode
in interface RemoteNode
path
- relative path
true
if the identified node exists,
false
otherwise
RepositoryException
- on repository errors
RemoteException
- 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 value
RepositoryException
- on repository errors
RemoteException
- 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 type
RepositoryException
- on repository errors
RemoteException
- on RMI errorspublic void addMixin(String name) throws RepositoryException, RemoteException
Node.addMixin(String)
method.
addMixin
in interface RemoteNode
name
- mixin type name
RepositoryException
- on repository errors
RemoteException
- on RMI errorspublic boolean canAddMixin(String name) throws RepositoryException, RemoteException
Node.canAddMixin(String)
method.
canAddMixin
in interface RemoteNode
name
- mixin type name
true
if the mixin type can be added,
false
otherwise
RepositoryException
- on repository errors
RemoteException
- on RMI errorspublic void removeMixin(String name) throws RepositoryException, RemoteException
Node.removeMixin(String)
method.
removeMixin
in interface RemoteNode
name
- mixin type name
RepositoryException
- on repository errors
RemoteException
- 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 path
RepositoryException
- on repository errors
RemoteException
- 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 values
RepositoryException
- on repository errors
RemoteException
- on RMI errorspublic RemoteNodeDefinition getDefinition() throws RepositoryException, RemoteException
Node.getDefinition()
method.
getDefinition
in interface RemoteNode
RepositoryException
- on repository errors
RemoteException
- on RMI errorspublic RemoteVersion checkin() throws RepositoryException, RemoteException
Node.checkin()
method.
checkin
in interface RemoteNode
RepositoryException
- on repository errors
RemoteException
- on RMI errorspublic void checkout() throws RepositoryException, RemoteException
Node.checkout()
method.
checkout
in interface RemoteNode
RepositoryException
- on repository errors
RemoteException
- on RMI errorspublic String getCorrespondingNodePath(String workspace) throws RepositoryException, RemoteException
Node.getCorrespondingNodePath(String)
method.
getCorrespondingNodePath
in interface RemoteNode
workspace
- workspace name
RepositoryException
- on repository errors
RemoteException
- on RMI errorspublic int getIndex() throws RepositoryException, RemoteException
Node.getIndex()
method.
getIndex
in interface RemoteNode
RepositoryException
- on repository errors
RemoteException
- 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 flag
RepositoryException
- on repository errors
RemoteException
- 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 errors
RemoteException
- 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 errors
RemoteException
- 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 nodes
RepositoryException
- on repository errors
RemoteException
- 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 nodes
RepositoryException
- on repository errors
RemoteException
- 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 nodes
RepositoryException
- on repository errors
RemoteException
- 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 nodes
RepositoryException
- on repository errors
RemoteException
- on RMI errorspublic void update(String workspace) throws RepositoryException, RemoteException
Node.update(String)
method.
update
in interface RemoteNode
workspace
- source workspace name
RepositoryException
- on repository errors
RemoteException
- on RMI errorspublic boolean holdsLock() throws RepositoryException, RemoteException
Node.holdsLock()
method.
holdsLock
in interface RemoteNode
true
if this node holds a lock,
false
otherwise
RepositoryException
- on repository errors
RemoteException
- on RMI errorspublic boolean isCheckedOut() throws RepositoryException, RemoteException
Node.isCheckedOut()
method.
isCheckedOut
in interface RemoteNode
true
if this node is checked out,
false
otherwise
RepositoryException
- on repository errors
RemoteException
- on RMI errorspublic RemoteVersionHistory getVersionHistory() throws RepositoryException, RemoteException
Node.getVersionHistory()
method.
getVersionHistory
in interface RemoteNode
RepositoryException
- on repository errors
RemoteException
- on RMI errorspublic RemoteVersion getBaseVersion() throws RepositoryException, RemoteException
Node.getBaseVersion()
method.
getBaseVersion
in interface RemoteNode
RepositoryException
- on repository errors
RemoteException
- on RMI errorspublic boolean isLocked() throws RepositoryException, RemoteException
Node.isLocked()
method.
isLocked
in interface RemoteNode
true
if this node is locked,
false
otherwise
RepositoryException
- on repository errors
RemoteException
- 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 type
RepositoryException
- on repository errors
RemoteException
- on RMI errorspublic void unlock() throws RepositoryException, RemoteException
Node.unlock()
method.
unlock
in interface RemoteNode
RepositoryException
- on repository errors
RemoteException
- on RMI errorspublic RemoteLock getLock() throws RepositoryException, RemoteException
Node.getLock()
method.
getLock
in interface RemoteNode
RepositoryException
- on repository errors
RemoteException
- 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 lock
RepositoryException
- on repository errors
RemoteException
- 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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |