public class ClientNode extends ClientItem implements javax.jcr.Node
RemoteNode
interface. This class makes a remote node locally available using
the JCR Node interface.Node,
RemoteNode| Constructor and Description |
|---|
ClientNode(javax.jcr.Session session,
RemoteNode remote,
LocalAdapterFactory factory)
Creates a local adapter for the given remote node.
|
| Modifier and Type | Method and Description |
|---|---|
void |
accept(javax.jcr.ItemVisitor visitor)
Calls the
ItemVisitor.visit(Node)
method of the given visitor. |
void |
addMixin(String name) |
javax.jcr.Node |
addNode(String path) |
javax.jcr.Node |
addNode(String path,
String type) |
boolean |
canAddMixin(String name) |
void |
cancelMerge(javax.jcr.version.Version version) |
javax.jcr.version.Version |
checkin() |
void |
checkout() |
void |
doneMerge(javax.jcr.version.Version version) |
void |
followLifecycleTransition(String transition) |
String[] |
getAllowedLifecycleTransistions() |
javax.jcr.version.Version |
getBaseVersion() |
String |
getCorrespondingNodePath(String workspace) |
javax.jcr.nodetype.NodeDefinition |
getDefinition() |
String |
getIdentifier() |
int |
getIndex() |
javax.jcr.lock.Lock |
getLock() |
javax.jcr.nodetype.NodeType[] |
getMixinNodeTypes() |
javax.jcr.Node |
getNode(String path) |
javax.jcr.NodeIterator |
getNodes() |
javax.jcr.NodeIterator |
getNodes(String pattern) |
javax.jcr.NodeIterator |
getNodes(String[] globs) |
javax.jcr.Item |
getPrimaryItem() |
javax.jcr.nodetype.NodeType |
getPrimaryNodeType() |
javax.jcr.PropertyIterator |
getProperties() |
javax.jcr.PropertyIterator |
getProperties(String pattern) |
javax.jcr.PropertyIterator |
getProperties(String[] globs) |
javax.jcr.Property |
getProperty(String path) |
javax.jcr.PropertyIterator |
getReferences() |
javax.jcr.PropertyIterator |
getReferences(String name) |
javax.jcr.NodeIterator |
getSharedSet() |
String |
getUUID() |
javax.jcr.version.VersionHistory |
getVersionHistory() |
javax.jcr.PropertyIterator |
getWeakReferences() |
javax.jcr.PropertyIterator |
getWeakReferences(String name) |
boolean |
hasNode(String path) |
boolean |
hasNodes() |
boolean |
hasProperties() |
boolean |
hasProperty(String path) |
boolean |
holdsLock() |
boolean |
isCheckedOut() |
boolean |
isLocked() |
boolean |
isNode()
Returns
true without contacting the remote node. |
boolean |
isNodeType(String type) |
javax.jcr.lock.Lock |
lock(boolean isDeep,
boolean isSessionScoped) |
javax.jcr.NodeIterator |
merge(String workspace,
boolean bestEffort) |
void |
orderBefore(String src,
String dst) |
void |
removeMixin(String name) |
void |
removeShare() |
void |
removeSharedSet() |
void |
restore(String version,
boolean removeExisting) |
void |
restore(javax.jcr.version.Version version,
boolean removeExisting) |
void |
restore(javax.jcr.version.Version version,
String path,
boolean removeExisting) |
void |
restoreByLabel(String label,
boolean removeExisting) |
void |
setPrimaryType(String nodeTypeName) |
javax.jcr.Property |
setProperty(String name,
BigDecimal value) |
javax.jcr.Property |
setProperty(String name,
javax.jcr.Binary value) |
javax.jcr.Property |
setProperty(String name,
boolean value) |
javax.jcr.Property |
setProperty(String name,
Calendar value) |
javax.jcr.Property |
setProperty(String name,
double value) |
javax.jcr.Property |
setProperty(String name,
InputStream value) |
javax.jcr.Property |
setProperty(String name,
long value) |
javax.jcr.Property |
setProperty(String name,
javax.jcr.Node value) |
javax.jcr.Property |
setProperty(String name,
String value) |
javax.jcr.Property |
setProperty(String name,
String[] strings) |
javax.jcr.Property |
setProperty(String name,
String[] strings,
int type) |
javax.jcr.Property |
setProperty(String name,
String string,
int type) |
javax.jcr.Property |
setProperty(String name,
javax.jcr.Value value) |
javax.jcr.Property |
setProperty(String name,
javax.jcr.Value[] values) |
javax.jcr.Property |
setProperty(String name,
javax.jcr.Value[] values,
int type) |
javax.jcr.Property |
setProperty(String name,
javax.jcr.Value value,
int type) |
void |
unlock() |
void |
update(String workspace) |
getAncestor, getDepth, getName, getParent, getPath, getSession, isModified, isNew, isSame, refresh, remove, savegetFactory, getItem, getNode, getNodeTypeArraypublic ClientNode(javax.jcr.Session session,
RemoteNode remote,
LocalAdapterFactory factory)
session - current sessionremote - remote nodefactory - local adapter factorypublic boolean isNode()
true without contacting the remote node.
Returns false by default without contacting the remote item.
This method should be overridden by Node subclasses.
isNode in interface javax.jcr.ItemisNode in class ClientItempublic void accept(javax.jcr.ItemVisitor visitor)
throws javax.jcr.RepositoryException
ItemVisitor.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. Node and
Property subclasses should override this method
to call the appropriate ItemVisitor methods,
as the default implementation does nothing.
accept in interface javax.jcr.Itemaccept in class ClientItemjavax.jcr.RepositoryExceptionpublic javax.jcr.Node addNode(String path) throws javax.jcr.RepositoryException
addNode in interface javax.jcr.Nodejavax.jcr.RepositoryExceptionpublic javax.jcr.Node addNode(String path, String type) throws javax.jcr.RepositoryException
addNode in interface javax.jcr.Nodejavax.jcr.RepositoryExceptionpublic void orderBefore(String src, String dst) throws javax.jcr.RepositoryException
orderBefore in interface javax.jcr.Nodejavax.jcr.RepositoryExceptionpublic javax.jcr.Property setProperty(String name, javax.jcr.Value value) throws javax.jcr.RepositoryException
setProperty in interface javax.jcr.Nodejavax.jcr.RepositoryExceptionpublic javax.jcr.Property setProperty(String name, javax.jcr.Value[] values) throws javax.jcr.RepositoryException
setProperty in interface javax.jcr.Nodejavax.jcr.RepositoryExceptionpublic javax.jcr.Property setProperty(String name, String[] strings) throws javax.jcr.RepositoryException
setProperty in interface javax.jcr.Nodejavax.jcr.RepositoryExceptionpublic javax.jcr.Property setProperty(String name, String value) throws javax.jcr.RepositoryException
setProperty in interface javax.jcr.Nodejavax.jcr.RepositoryExceptionpublic javax.jcr.Property setProperty(String name, InputStream value) throws javax.jcr.RepositoryException
setProperty in interface javax.jcr.Nodejavax.jcr.RepositoryExceptionpublic javax.jcr.Property setProperty(String name, boolean value) throws javax.jcr.RepositoryException
setProperty in interface javax.jcr.Nodejavax.jcr.RepositoryExceptionpublic javax.jcr.Property setProperty(String name, double value) throws javax.jcr.RepositoryException
setProperty in interface javax.jcr.Nodejavax.jcr.RepositoryExceptionpublic javax.jcr.Property setProperty(String name, long value) throws javax.jcr.RepositoryException
setProperty in interface javax.jcr.Nodejavax.jcr.RepositoryExceptionpublic javax.jcr.Property setProperty(String name, Calendar value) throws javax.jcr.RepositoryException
setProperty in interface javax.jcr.Nodejavax.jcr.RepositoryExceptionpublic javax.jcr.Property setProperty(String name, javax.jcr.Node value) throws javax.jcr.RepositoryException
setProperty in interface javax.jcr.Nodejavax.jcr.RepositoryExceptionpublic javax.jcr.Property setProperty(String name, javax.jcr.Binary value) throws javax.jcr.RepositoryException
setProperty in interface javax.jcr.Nodejavax.jcr.RepositoryExceptionpublic javax.jcr.Property setProperty(String name, BigDecimal value) throws javax.jcr.RepositoryException
setProperty in interface javax.jcr.Nodejavax.jcr.RepositoryExceptionpublic javax.jcr.Node getNode(String path) throws javax.jcr.RepositoryException
getNode in interface javax.jcr.Nodejavax.jcr.RepositoryExceptionpublic javax.jcr.NodeIterator getNodes()
throws javax.jcr.RepositoryException
getNodes in interface javax.jcr.Nodejavax.jcr.RepositoryExceptionpublic javax.jcr.NodeIterator getNodes(String pattern) throws javax.jcr.RepositoryException
getNodes in interface javax.jcr.Nodejavax.jcr.RepositoryExceptionpublic javax.jcr.NodeIterator getNodes(String[] globs) throws javax.jcr.RepositoryException
getNodes in interface javax.jcr.Nodejavax.jcr.RepositoryExceptionpublic javax.jcr.Property getProperty(String path) throws javax.jcr.RepositoryException
getProperty in interface javax.jcr.Nodejavax.jcr.RepositoryExceptionpublic javax.jcr.PropertyIterator getProperties()
throws javax.jcr.RepositoryException
getProperties in interface javax.jcr.Nodejavax.jcr.RepositoryExceptionpublic javax.jcr.PropertyIterator getProperties(String pattern) throws javax.jcr.RepositoryException
getProperties in interface javax.jcr.Nodejavax.jcr.RepositoryExceptionpublic javax.jcr.PropertyIterator getProperties(String[] globs) throws javax.jcr.RepositoryException
getProperties in interface javax.jcr.Nodejavax.jcr.RepositoryExceptionpublic javax.jcr.Item getPrimaryItem()
throws javax.jcr.RepositoryException
getPrimaryItem in interface javax.jcr.Nodejavax.jcr.RepositoryExceptionpublic String getIdentifier() throws javax.jcr.RepositoryException
getIdentifier in interface javax.jcr.Nodejavax.jcr.RepositoryExceptionpublic String getUUID() throws javax.jcr.RepositoryException
getUUID in interface javax.jcr.Nodejavax.jcr.RepositoryExceptionpublic javax.jcr.PropertyIterator getReferences()
throws javax.jcr.RepositoryException
getReferences in interface javax.jcr.Nodejavax.jcr.RepositoryExceptionpublic javax.jcr.PropertyIterator getReferences(String name) throws javax.jcr.RepositoryException
getReferences in interface javax.jcr.Nodejavax.jcr.RepositoryExceptionpublic boolean hasNode(String path) throws javax.jcr.RepositoryException
hasNode in interface javax.jcr.Nodejavax.jcr.RepositoryExceptionpublic boolean hasProperty(String path) throws javax.jcr.RepositoryException
hasProperty in interface javax.jcr.Nodejavax.jcr.RepositoryExceptionpublic boolean hasNodes()
throws javax.jcr.RepositoryException
hasNodes in interface javax.jcr.Nodejavax.jcr.RepositoryExceptionpublic boolean hasProperties()
throws javax.jcr.RepositoryException
hasProperties in interface javax.jcr.Nodejavax.jcr.RepositoryExceptionpublic javax.jcr.nodetype.NodeType getPrimaryNodeType()
throws javax.jcr.RepositoryException
getPrimaryNodeType in interface javax.jcr.Nodejavax.jcr.RepositoryExceptionpublic javax.jcr.nodetype.NodeType[] getMixinNodeTypes()
throws javax.jcr.RepositoryException
getMixinNodeTypes in interface javax.jcr.Nodejavax.jcr.RepositoryExceptionpublic boolean isNodeType(String type) throws javax.jcr.RepositoryException
isNodeType in interface javax.jcr.Nodejavax.jcr.RepositoryExceptionpublic void addMixin(String name) throws javax.jcr.RepositoryException
addMixin in interface javax.jcr.Nodejavax.jcr.RepositoryExceptionpublic void removeMixin(String name) throws javax.jcr.RepositoryException
removeMixin in interface javax.jcr.Nodejavax.jcr.RepositoryExceptionpublic boolean canAddMixin(String name) throws javax.jcr.RepositoryException
canAddMixin in interface javax.jcr.Nodejavax.jcr.RepositoryExceptionpublic javax.jcr.nodetype.NodeDefinition getDefinition()
throws javax.jcr.RepositoryException
getDefinition in interface javax.jcr.Nodejavax.jcr.RepositoryExceptionpublic javax.jcr.version.Version checkin()
throws javax.jcr.RepositoryException
checkin in interface javax.jcr.Nodejavax.jcr.RepositoryExceptionpublic void checkout()
throws javax.jcr.RepositoryException
checkout in interface javax.jcr.Nodejavax.jcr.RepositoryExceptionpublic void update(String workspace) throws javax.jcr.RepositoryException
update in interface javax.jcr.Nodejavax.jcr.RepositoryExceptionpublic javax.jcr.NodeIterator merge(String workspace, boolean bestEffort) throws javax.jcr.RepositoryException
merge in interface javax.jcr.Nodejavax.jcr.RepositoryExceptionpublic void cancelMerge(javax.jcr.version.Version version)
throws javax.jcr.RepositoryException
cancelMerge in interface javax.jcr.Nodejavax.jcr.RepositoryExceptionpublic void doneMerge(javax.jcr.version.Version version)
throws javax.jcr.RepositoryException
doneMerge in interface javax.jcr.Nodejavax.jcr.RepositoryExceptionpublic String getCorrespondingNodePath(String workspace) throws javax.jcr.RepositoryException
getCorrespondingNodePath in interface javax.jcr.Nodejavax.jcr.RepositoryExceptionpublic int getIndex()
throws javax.jcr.RepositoryException
getIndex in interface javax.jcr.Nodejavax.jcr.RepositoryExceptionpublic void restore(String version, boolean removeExisting) throws javax.jcr.RepositoryException
restore in interface javax.jcr.Nodejavax.jcr.RepositoryExceptionpublic void restore(javax.jcr.version.Version version,
boolean removeExisting)
throws javax.jcr.RepositoryException
restore in interface javax.jcr.Nodejavax.jcr.RepositoryExceptionpublic void restore(javax.jcr.version.Version version,
String path,
boolean removeExisting)
throws javax.jcr.RepositoryException
restore in interface javax.jcr.Nodejavax.jcr.RepositoryExceptionpublic void restoreByLabel(String label, boolean removeExisting) throws javax.jcr.RepositoryException
restoreByLabel in interface javax.jcr.Nodejavax.jcr.RepositoryExceptionpublic javax.jcr.Property setProperty(String name, String[] strings, int type) throws javax.jcr.RepositoryException
setProperty in interface javax.jcr.Nodejavax.jcr.RepositoryExceptionpublic javax.jcr.Property setProperty(String name, javax.jcr.Value[] values, int type) throws javax.jcr.RepositoryException
setProperty in interface javax.jcr.Nodejavax.jcr.RepositoryExceptionpublic javax.jcr.Property setProperty(String name, javax.jcr.Value value, int type) throws javax.jcr.RepositoryException
setProperty in interface javax.jcr.Nodejavax.jcr.RepositoryExceptionpublic javax.jcr.Property setProperty(String name, String string, int type) throws javax.jcr.RepositoryException
setProperty in interface javax.jcr.Nodejavax.jcr.RepositoryExceptionpublic boolean isCheckedOut()
throws javax.jcr.RepositoryException
isCheckedOut in interface javax.jcr.Nodejavax.jcr.RepositoryExceptionpublic javax.jcr.version.VersionHistory getVersionHistory()
throws javax.jcr.RepositoryException
getVersionHistory in interface javax.jcr.Nodejavax.jcr.RepositoryExceptionpublic javax.jcr.version.Version getBaseVersion()
throws javax.jcr.RepositoryException
getBaseVersion in interface javax.jcr.Nodejavax.jcr.RepositoryExceptionpublic javax.jcr.lock.Lock lock(boolean isDeep,
boolean isSessionScoped)
throws javax.jcr.RepositoryException
lock in interface javax.jcr.Nodejavax.jcr.RepositoryExceptionpublic javax.jcr.lock.Lock getLock()
throws javax.jcr.RepositoryException
getLock in interface javax.jcr.Nodejavax.jcr.RepositoryExceptionpublic void unlock()
throws javax.jcr.RepositoryException
unlock in interface javax.jcr.Nodejavax.jcr.RepositoryExceptionpublic boolean holdsLock()
throws javax.jcr.RepositoryException
holdsLock in interface javax.jcr.Nodejavax.jcr.RepositoryExceptionpublic boolean isLocked()
throws javax.jcr.RepositoryException
isLocked in interface javax.jcr.Nodejavax.jcr.RepositoryExceptionpublic void followLifecycleTransition(String transition) throws javax.jcr.RepositoryException
followLifecycleTransition in interface javax.jcr.Nodejavax.jcr.RepositoryExceptionpublic String[] getAllowedLifecycleTransistions() throws javax.jcr.RepositoryException
getAllowedLifecycleTransistions in interface javax.jcr.Nodejavax.jcr.RepositoryExceptionpublic javax.jcr.NodeIterator getSharedSet()
throws javax.jcr.RepositoryException
getSharedSet in interface javax.jcr.Nodejavax.jcr.RepositoryExceptionpublic javax.jcr.PropertyIterator getWeakReferences()
throws javax.jcr.RepositoryException
getWeakReferences in interface javax.jcr.Nodejavax.jcr.RepositoryExceptionpublic javax.jcr.PropertyIterator getWeakReferences(String name) throws javax.jcr.RepositoryException
getWeakReferences in interface javax.jcr.Nodejavax.jcr.RepositoryExceptionpublic void removeShare()
throws javax.jcr.RepositoryException
removeShare in interface javax.jcr.Nodejavax.jcr.RepositoryExceptionpublic void removeSharedSet()
throws javax.jcr.RepositoryException
removeSharedSet in interface javax.jcr.Nodejavax.jcr.RepositoryExceptionpublic void setPrimaryType(String nodeTypeName) throws javax.jcr.RepositoryException
setPrimaryType in interface javax.jcr.Nodejavax.jcr.RepositoryExceptionCopyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.