Package org.apache.jackrabbit.rmi.client
Class ClientNode
- java.lang.Object
-
- org.apache.jackrabbit.rmi.client.ClientObject
-
- org.apache.jackrabbit.rmi.client.ClientItem
-
- org.apache.jackrabbit.rmi.client.ClientNode
-
- Direct Known Subclasses:
ClientVersion,ClientVersionHistory
@Deprecated public class ClientNode extends ClientItem implements Node
Deprecated.RMI support is deprecated and will be removed in a future version of Jackrabbit; see Jira ticket JCR-4972 for more information.Local adapter for the JCR-RMI
RemoteNodeinterface. This class makes a remote node locally available using the JCRNodeinterface.- See Also:
Node,RemoteNode
-
-
Field Summary
-
Fields inherited from interface javax.jcr.Node
JCR_CHILD_NODE_DEFINITION, JCR_CONTENT, JCR_FROZEN_NODE, JCR_PROPERTY_DEFINITION, JCR_ROOT_VERSION, JCR_VERSION_LABELS
-
-
Constructor Summary
Constructors Constructor Description ClientNode(Session session, RemoteNode remote, LocalAdapterFactory factory)Deprecated.Creates a local adapter for the given remote node.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaccept(ItemVisitor visitor)Deprecated.Calls theItemVisitor.visit(Node)method of the given visitor.voidaddMixin(String name)Deprecated.NodeaddNode(String path)Deprecated.NodeaddNode(String path, String type)Deprecated.booleancanAddMixin(String name)Deprecated.voidcancelMerge(Version version)Deprecated.Versioncheckin()Deprecated.voidcheckout()Deprecated.voiddoneMerge(Version version)Deprecated.voidfollowLifecycleTransition(String transition)Deprecated.String[]getAllowedLifecycleTransistions()Deprecated.VersiongetBaseVersion()Deprecated.StringgetCorrespondingNodePath(String workspace)Deprecated.NodeDefinitiongetDefinition()Deprecated.StringgetIdentifier()Deprecated.intgetIndex()Deprecated.LockgetLock()Deprecated.NodeType[]getMixinNodeTypes()Deprecated.NodegetNode(String path)Deprecated.NodeIteratorgetNodes()Deprecated.NodeIteratorgetNodes(String pattern)Deprecated.NodeIteratorgetNodes(String[] globs)Deprecated.ItemgetPrimaryItem()Deprecated.NodeTypegetPrimaryNodeType()Deprecated.PropertyIteratorgetProperties()Deprecated.PropertyIteratorgetProperties(String pattern)Deprecated.PropertyIteratorgetProperties(String[] globs)Deprecated.PropertygetProperty(String path)Deprecated.PropertyIteratorgetReferences()Deprecated.PropertyIteratorgetReferences(String name)Deprecated.NodeIteratorgetSharedSet()Deprecated.StringgetUUID()Deprecated.VersionHistorygetVersionHistory()Deprecated.PropertyIteratorgetWeakReferences()Deprecated.PropertyIteratorgetWeakReferences(String name)Deprecated.booleanhasNode(String path)Deprecated.booleanhasNodes()Deprecated.booleanhasProperties()Deprecated.booleanhasProperty(String path)Deprecated.booleanholdsLock()Deprecated.booleanisCheckedOut()Deprecated.booleanisLocked()Deprecated.booleanisNode()Deprecated.Returnstruewithout contacting the remote node.booleanisNodeType(String type)Deprecated.Locklock(boolean isDeep, boolean isSessionScoped)Deprecated.NodeIteratormerge(String workspace, boolean bestEffort)Deprecated.voidorderBefore(String src, String dst)Deprecated.voidremoveMixin(String name)Deprecated.voidremoveShare()Deprecated.voidremoveSharedSet()Deprecated.voidrestore(String version, boolean removeExisting)Deprecated.voidrestore(Version version, boolean removeExisting)Deprecated.voidrestore(Version version, String path, boolean removeExisting)Deprecated.voidrestoreByLabel(String label, boolean removeExisting)Deprecated.voidsetPrimaryType(String nodeTypeName)Deprecated.PropertysetProperty(String name, boolean value)Deprecated.PropertysetProperty(String name, double value)Deprecated.PropertysetProperty(String name, long value)Deprecated.PropertysetProperty(String name, InputStream value)Deprecated.PropertysetProperty(String name, String value)Deprecated.PropertysetProperty(String name, String[] strings)Deprecated.PropertysetProperty(String name, String[] strings, int type)Deprecated.PropertysetProperty(String name, String string, int type)Deprecated.PropertysetProperty(String name, BigDecimal value)Deprecated.PropertysetProperty(String name, Calendar value)Deprecated.PropertysetProperty(String name, Binary value)Deprecated.PropertysetProperty(String name, Node value)Deprecated.PropertysetProperty(String name, Value value)Deprecated.PropertysetProperty(String name, Value[] values)Deprecated.PropertysetProperty(String name, Value[] values, int type)Deprecated.PropertysetProperty(String name, Value value, int type)Deprecated.voidunlock()Deprecated.voidupdate(String workspace)Deprecated.-
Methods inherited from class org.apache.jackrabbit.rmi.client.ClientItem
getAncestor, getDepth, getName, getParent, getPath, getSession, isModified, isNew, isSame, refresh, remove, save
-
Methods inherited from class org.apache.jackrabbit.rmi.client.ClientObject
getFactory, getItem, getNode, getNodeTypeArray
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface javax.jcr.Item
getAncestor, getDepth, getName, getParent, getPath, getSession, isModified, isNew, isSame, refresh, remove, save
-
-
-
-
Constructor Detail
-
ClientNode
public ClientNode(Session session, RemoteNode remote, LocalAdapterFactory factory)
Deprecated.Creates a local adapter for the given remote node.- Parameters:
session- current sessionremote- remote nodefactory- local adapter factory
-
-
Method Detail
-
isNode
public boolean isNode()
Deprecated.Returnstruewithout contacting the remote node. Returns false by default without contacting the remote item. This method should be overridden byNodesubclasses.- Specified by:
isNodein interfaceItem- Overrides:
isNodein classClientItem- Returns:
- false
-
accept
public void accept(ItemVisitor visitor) throws RepositoryException
Deprecated.Calls theItemVisitor.visit(Node)method of the given visitor. Does not contact the remote node, but the visitor may invoke other methods that do contact the remote node. Accepts the visitor to visit this item.NodeandPropertysubclasses should override this method to call the appropriateItemVisitormethods, as the default implementation does nothing.- Specified by:
acceptin interfaceItem- Overrides:
acceptin classClientItem- Throws:
RepositoryException
-
addNode
public Node addNode(String path) throws RepositoryException
Deprecated.- Specified by:
addNodein interfaceNode- Throws:
RepositoryException
-
addNode
public Node addNode(String path, String type) throws RepositoryException
Deprecated.- Specified by:
addNodein interfaceNode- Throws:
RepositoryException
-
orderBefore
public void orderBefore(String src, String dst) throws RepositoryException
Deprecated.- Specified by:
orderBeforein interfaceNode- Throws:
RepositoryException
-
setProperty
public Property setProperty(String name, Value value) throws RepositoryException
Deprecated.- Specified by:
setPropertyin interfaceNode- Throws:
RepositoryException
-
setProperty
public Property setProperty(String name, Value[] values) throws RepositoryException
Deprecated.- Specified by:
setPropertyin interfaceNode- Throws:
RepositoryException
-
setProperty
public Property setProperty(String name, String[] strings) throws RepositoryException
Deprecated.- Specified by:
setPropertyin interfaceNode- Throws:
RepositoryException
-
setProperty
public Property setProperty(String name, String value) throws RepositoryException
Deprecated.- Specified by:
setPropertyin interfaceNode- Throws:
RepositoryException
-
setProperty
public Property setProperty(String name, InputStream value) throws RepositoryException
Deprecated.- Specified by:
setPropertyin interfaceNode- Throws:
RepositoryException
-
setProperty
public Property setProperty(String name, boolean value) throws RepositoryException
Deprecated.- Specified by:
setPropertyin interfaceNode- Throws:
RepositoryException
-
setProperty
public Property setProperty(String name, double value) throws RepositoryException
Deprecated.- Specified by:
setPropertyin interfaceNode- Throws:
RepositoryException
-
setProperty
public Property setProperty(String name, long value) throws RepositoryException
Deprecated.- Specified by:
setPropertyin interfaceNode- Throws:
RepositoryException
-
setProperty
public Property setProperty(String name, Calendar value) throws RepositoryException
Deprecated.- Specified by:
setPropertyin interfaceNode- Throws:
RepositoryException
-
setProperty
public Property setProperty(String name, Node value) throws RepositoryException
Deprecated.- Specified by:
setPropertyin interfaceNode- Throws:
RepositoryException
-
setProperty
public Property setProperty(String name, Binary value) throws RepositoryException
Deprecated.- Specified by:
setPropertyin interfaceNode- Throws:
RepositoryException
-
setProperty
public Property setProperty(String name, BigDecimal value) throws RepositoryException
Deprecated.- Specified by:
setPropertyin interfaceNode- Throws:
RepositoryException
-
getNode
public Node getNode(String path) throws RepositoryException
Deprecated.- Specified by:
getNodein interfaceNode- Throws:
RepositoryException
-
getNodes
public NodeIterator getNodes() throws RepositoryException
Deprecated.- Specified by:
getNodesin interfaceNode- Throws:
RepositoryException
-
getNodes
public NodeIterator getNodes(String pattern) throws RepositoryException
Deprecated.- Specified by:
getNodesin interfaceNode- Throws:
RepositoryException
-
getNodes
public NodeIterator getNodes(String[] globs) throws RepositoryException
Deprecated.- Specified by:
getNodesin interfaceNode- Throws:
RepositoryException
-
getProperty
public Property getProperty(String path) throws RepositoryException
Deprecated.- Specified by:
getPropertyin interfaceNode- Throws:
RepositoryException
-
getProperties
public PropertyIterator getProperties() throws RepositoryException
Deprecated.- Specified by:
getPropertiesin interfaceNode- Throws:
RepositoryException
-
getProperties
public PropertyIterator getProperties(String pattern) throws RepositoryException
Deprecated.- Specified by:
getPropertiesin interfaceNode- Throws:
RepositoryException
-
getProperties
public PropertyIterator getProperties(String[] globs) throws RepositoryException
Deprecated.- Specified by:
getPropertiesin interfaceNode- Throws:
RepositoryException
-
getPrimaryItem
public Item getPrimaryItem() throws RepositoryException
Deprecated.- Specified by:
getPrimaryItemin interfaceNode- Throws:
RepositoryException
-
getIdentifier
public String getIdentifier() throws RepositoryException
Deprecated.- Specified by:
getIdentifierin interfaceNode- Throws:
RepositoryException
-
getUUID
public String getUUID() throws RepositoryException
Deprecated.- Specified by:
getUUIDin interfaceNode- Throws:
RepositoryException
-
getReferences
public PropertyIterator getReferences() throws RepositoryException
Deprecated.- Specified by:
getReferencesin interfaceNode- Throws:
RepositoryException
-
getReferences
public PropertyIterator getReferences(String name) throws RepositoryException
Deprecated.- Specified by:
getReferencesin interfaceNode- Throws:
RepositoryException
-
hasNode
public boolean hasNode(String path) throws RepositoryException
Deprecated.- Specified by:
hasNodein interfaceNode- Throws:
RepositoryException
-
hasProperty
public boolean hasProperty(String path) throws RepositoryException
Deprecated.- Specified by:
hasPropertyin interfaceNode- Throws:
RepositoryException
-
hasNodes
public boolean hasNodes() throws RepositoryExceptionDeprecated.- Specified by:
hasNodesin interfaceNode- Throws:
RepositoryException
-
hasProperties
public boolean hasProperties() throws RepositoryExceptionDeprecated.- Specified by:
hasPropertiesin interfaceNode- Throws:
RepositoryException
-
getPrimaryNodeType
public NodeType getPrimaryNodeType() throws RepositoryException
Deprecated.- Specified by:
getPrimaryNodeTypein interfaceNode- Throws:
RepositoryException
-
getMixinNodeTypes
public NodeType[] getMixinNodeTypes() throws RepositoryException
Deprecated.- Specified by:
getMixinNodeTypesin interfaceNode- Throws:
RepositoryException
-
isNodeType
public boolean isNodeType(String type) throws RepositoryException
Deprecated.- Specified by:
isNodeTypein interfaceNode- Throws:
RepositoryException
-
addMixin
public void addMixin(String name) throws RepositoryException
Deprecated.- Specified by:
addMixinin interfaceNode- Throws:
RepositoryException
-
removeMixin
public void removeMixin(String name) throws RepositoryException
Deprecated.- Specified by:
removeMixinin interfaceNode- Throws:
RepositoryException
-
canAddMixin
public boolean canAddMixin(String name) throws RepositoryException
Deprecated.- Specified by:
canAddMixinin interfaceNode- Throws:
RepositoryException
-
getDefinition
public NodeDefinition getDefinition() throws RepositoryException
Deprecated.- Specified by:
getDefinitionin interfaceNode- Throws:
RepositoryException
-
checkin
public Version checkin() throws RepositoryException
Deprecated.- Specified by:
checkinin interfaceNode- Throws:
RepositoryException
-
checkout
public void checkout() throws RepositoryExceptionDeprecated.- Specified by:
checkoutin interfaceNode- Throws:
RepositoryException
-
update
public void update(String workspace) throws RepositoryException
Deprecated.- Specified by:
updatein interfaceNode- Throws:
RepositoryException
-
merge
public NodeIterator merge(String workspace, boolean bestEffort) throws RepositoryException
Deprecated.- Specified by:
mergein interfaceNode- Throws:
RepositoryException
-
cancelMerge
public void cancelMerge(Version version) throws RepositoryException
Deprecated.- Specified by:
cancelMergein interfaceNode- Throws:
RepositoryException
-
doneMerge
public void doneMerge(Version version) throws RepositoryException
Deprecated.- Specified by:
doneMergein interfaceNode- Throws:
RepositoryException
-
getCorrespondingNodePath
public String getCorrespondingNodePath(String workspace) throws RepositoryException
Deprecated.- Specified by:
getCorrespondingNodePathin interfaceNode- Throws:
RepositoryException
-
getIndex
public int getIndex() throws RepositoryExceptionDeprecated.- Specified by:
getIndexin interfaceNode- Throws:
RepositoryException
-
restore
public void restore(String version, boolean removeExisting) throws RepositoryException
Deprecated.- Specified by:
restorein interfaceNode- Throws:
RepositoryException
-
restore
public void restore(Version version, boolean removeExisting) throws RepositoryException
Deprecated.- Specified by:
restorein interfaceNode- Throws:
RepositoryException
-
restore
public void restore(Version version, String path, boolean removeExisting) throws RepositoryException
Deprecated.- Specified by:
restorein interfaceNode- Throws:
RepositoryException
-
restoreByLabel
public void restoreByLabel(String label, boolean removeExisting) throws RepositoryException
Deprecated.- Specified by:
restoreByLabelin interfaceNode- Throws:
RepositoryException
-
setProperty
public Property setProperty(String name, String[] strings, int type) throws RepositoryException
Deprecated.- Specified by:
setPropertyin interfaceNode- Throws:
RepositoryException
-
setProperty
public Property setProperty(String name, Value[] values, int type) throws RepositoryException
Deprecated.- Specified by:
setPropertyin interfaceNode- Throws:
RepositoryException
-
setProperty
public Property setProperty(String name, Value value, int type) throws RepositoryException
Deprecated.- Specified by:
setPropertyin interfaceNode- Throws:
RepositoryException
-
setProperty
public Property setProperty(String name, String string, int type) throws RepositoryException
Deprecated.- Specified by:
setPropertyin interfaceNode- Throws:
RepositoryException
-
isCheckedOut
public boolean isCheckedOut() throws RepositoryExceptionDeprecated.- Specified by:
isCheckedOutin interfaceNode- Throws:
RepositoryException
-
getVersionHistory
public VersionHistory getVersionHistory() throws RepositoryException
Deprecated.- Specified by:
getVersionHistoryin interfaceNode- Throws:
RepositoryException
-
getBaseVersion
public Version getBaseVersion() throws RepositoryException
Deprecated.- Specified by:
getBaseVersionin interfaceNode- Throws:
RepositoryException
-
lock
public Lock lock(boolean isDeep, boolean isSessionScoped) throws RepositoryException
Deprecated.- Specified by:
lockin interfaceNode- Throws:
RepositoryException
-
getLock
public Lock getLock() throws RepositoryException
Deprecated.- Specified by:
getLockin interfaceNode- Throws:
RepositoryException
-
unlock
public void unlock() throws RepositoryExceptionDeprecated.- Specified by:
unlockin interfaceNode- Throws:
RepositoryException
-
holdsLock
public boolean holdsLock() throws RepositoryExceptionDeprecated.- Specified by:
holdsLockin interfaceNode- Throws:
RepositoryException
-
isLocked
public boolean isLocked() throws RepositoryExceptionDeprecated.- Specified by:
isLockedin interfaceNode- Throws:
RepositoryException
-
followLifecycleTransition
public void followLifecycleTransition(String transition) throws RepositoryException
Deprecated.- Specified by:
followLifecycleTransitionin interfaceNode- Throws:
RepositoryException
-
getAllowedLifecycleTransistions
public String[] getAllowedLifecycleTransistions() throws RepositoryException
Deprecated.- Specified by:
getAllowedLifecycleTransistionsin interfaceNode- Throws:
RepositoryException
-
getSharedSet
public NodeIterator getSharedSet() throws RepositoryException
Deprecated.- Specified by:
getSharedSetin interfaceNode- Throws:
RepositoryException
-
getWeakReferences
public PropertyIterator getWeakReferences() throws RepositoryException
Deprecated.- Specified by:
getWeakReferencesin interfaceNode- Throws:
RepositoryException
-
getWeakReferences
public PropertyIterator getWeakReferences(String name) throws RepositoryException
Deprecated.- Specified by:
getWeakReferencesin interfaceNode- Throws:
RepositoryException
-
removeShare
public void removeShare() throws RepositoryExceptionDeprecated.- Specified by:
removeSharein interfaceNode- Throws:
RepositoryException
-
removeSharedSet
public void removeSharedSet() throws RepositoryExceptionDeprecated.- Specified by:
removeSharedSetin interfaceNode- Throws:
RepositoryException
-
setPrimaryType
public void setPrimaryType(String nodeTypeName) throws RepositoryException
Deprecated.- Specified by:
setPrimaryTypein interfaceNode- Throws:
RepositoryException
-
-