public class ClientNode extends ClientItem implements Node
RemoteNode
interface. This class makes a remote node locally available using
the JCR Node interface.Node,
RemoteNodeJCR_CHILD_NODE_DEFINITION, JCR_CONTENT, JCR_FROZEN_NODE, JCR_PROPERTY_DEFINITION, JCR_ROOT_VERSION, JCR_VERSION_LABELS| Constructor and Description |
|---|
ClientNode(Session session,
RemoteNode remote,
LocalAdapterFactory factory)
Creates a local adapter for the given remote node.
|
getAncestor, getDepth, getName, getParent, getPath, getSession, isModified, isNew, isSame, refresh, remove, savegetFactory, getItem, getNode, getNodeTypeArrayclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAncestor, getDepth, getName, getParent, getPath, getSession, isModified, isNew, isSame, refresh, remove, savepublic ClientNode(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 ItemisNode in class ClientItempublic void accept(ItemVisitor visitor) throws 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 Itemaccept in class ClientItemRepositoryExceptionpublic Node addNode(String path) throws RepositoryException
addNode in interface NodeRepositoryExceptionpublic Node addNode(String path, String type) throws RepositoryException
addNode in interface NodeRepositoryExceptionpublic void orderBefore(String src, String dst) throws RepositoryException
orderBefore in interface NodeRepositoryExceptionpublic Property setProperty(String name, Value value) throws RepositoryException
setProperty in interface NodeRepositoryExceptionpublic Property setProperty(String name, Value[] values) throws RepositoryException
setProperty in interface NodeRepositoryExceptionpublic Property setProperty(String name, String[] strings) throws RepositoryException
setProperty in interface NodeRepositoryExceptionpublic Property setProperty(String name, String value) throws RepositoryException
setProperty in interface NodeRepositoryExceptionpublic Property setProperty(String name, InputStream value) throws RepositoryException
setProperty in interface NodeRepositoryExceptionpublic Property setProperty(String name, boolean value) throws RepositoryException
setProperty in interface NodeRepositoryExceptionpublic Property setProperty(String name, double value) throws RepositoryException
setProperty in interface NodeRepositoryExceptionpublic Property setProperty(String name, long value) throws RepositoryException
setProperty in interface NodeRepositoryExceptionpublic Property setProperty(String name, Calendar value) throws RepositoryException
setProperty in interface NodeRepositoryExceptionpublic Property setProperty(String name, Node value) throws RepositoryException
setProperty in interface NodeRepositoryExceptionpublic Property setProperty(String name, Binary value) throws RepositoryException
setProperty in interface NodeRepositoryExceptionpublic Property setProperty(String name, BigDecimal value) throws RepositoryException
setProperty in interface NodeRepositoryExceptionpublic Node getNode(String path) throws RepositoryException
getNode in interface NodeRepositoryExceptionpublic NodeIterator getNodes() throws RepositoryException
getNodes in interface NodeRepositoryExceptionpublic NodeIterator getNodes(String pattern) throws RepositoryException
getNodes in interface NodeRepositoryExceptionpublic NodeIterator getNodes(String[] globs) throws RepositoryException
getNodes in interface NodeRepositoryExceptionpublic Property getProperty(String path) throws RepositoryException
getProperty in interface NodeRepositoryExceptionpublic PropertyIterator getProperties() throws RepositoryException
getProperties in interface NodeRepositoryExceptionpublic PropertyIterator getProperties(String pattern) throws RepositoryException
getProperties in interface NodeRepositoryExceptionpublic PropertyIterator getProperties(String[] globs) throws RepositoryException
getProperties in interface NodeRepositoryExceptionpublic Item getPrimaryItem() throws RepositoryException
getPrimaryItem in interface NodeRepositoryExceptionpublic String getIdentifier() throws RepositoryException
getIdentifier in interface NodeRepositoryExceptionpublic String getUUID() throws RepositoryException
getUUID in interface NodeRepositoryExceptionpublic PropertyIterator getReferences() throws RepositoryException
getReferences in interface NodeRepositoryExceptionpublic PropertyIterator getReferences(String name) throws RepositoryException
getReferences in interface NodeRepositoryExceptionpublic boolean hasNode(String path) throws RepositoryException
hasNode in interface NodeRepositoryExceptionpublic boolean hasProperty(String path) throws RepositoryException
hasProperty in interface NodeRepositoryExceptionpublic boolean hasNodes()
throws RepositoryException
hasNodes in interface NodeRepositoryExceptionpublic boolean hasProperties()
throws RepositoryException
hasProperties in interface NodeRepositoryExceptionpublic NodeType getPrimaryNodeType() throws RepositoryException
getPrimaryNodeType in interface NodeRepositoryExceptionpublic NodeType[] getMixinNodeTypes() throws RepositoryException
getMixinNodeTypes in interface NodeRepositoryExceptionpublic boolean isNodeType(String type) throws RepositoryException
isNodeType in interface NodeRepositoryExceptionpublic void addMixin(String name) throws RepositoryException
addMixin in interface NodeRepositoryExceptionpublic void removeMixin(String name) throws RepositoryException
removeMixin in interface NodeRepositoryExceptionpublic boolean canAddMixin(String name) throws RepositoryException
canAddMixin in interface NodeRepositoryExceptionpublic NodeDefinition getDefinition() throws RepositoryException
getDefinition in interface NodeRepositoryExceptionpublic Version checkin() throws RepositoryException
checkin in interface NodeRepositoryExceptionpublic void checkout()
throws RepositoryException
checkout in interface NodeRepositoryExceptionpublic void update(String workspace) throws RepositoryException
update in interface NodeRepositoryExceptionpublic NodeIterator merge(String workspace, boolean bestEffort) throws RepositoryException
merge in interface NodeRepositoryExceptionpublic void cancelMerge(Version version) throws RepositoryException
cancelMerge in interface NodeRepositoryExceptionpublic void doneMerge(Version version) throws RepositoryException
doneMerge in interface NodeRepositoryExceptionpublic String getCorrespondingNodePath(String workspace) throws RepositoryException
getCorrespondingNodePath in interface NodeRepositoryExceptionpublic int getIndex()
throws RepositoryException
getIndex in interface NodeRepositoryExceptionpublic void restore(String version, boolean removeExisting) throws RepositoryException
restore in interface NodeRepositoryExceptionpublic void restore(Version version, boolean removeExisting) throws RepositoryException
restore in interface NodeRepositoryExceptionpublic void restore(Version version, String path, boolean removeExisting) throws RepositoryException
restore in interface NodeRepositoryExceptionpublic void restoreByLabel(String label, boolean removeExisting) throws RepositoryException
restoreByLabel in interface NodeRepositoryExceptionpublic Property setProperty(String name, String[] strings, int type) throws RepositoryException
setProperty in interface NodeRepositoryExceptionpublic Property setProperty(String name, Value[] values, int type) throws RepositoryException
setProperty in interface NodeRepositoryExceptionpublic Property setProperty(String name, Value value, int type) throws RepositoryException
setProperty in interface NodeRepositoryExceptionpublic Property setProperty(String name, String string, int type) throws RepositoryException
setProperty in interface NodeRepositoryExceptionpublic boolean isCheckedOut()
throws RepositoryException
isCheckedOut in interface NodeRepositoryExceptionpublic VersionHistory getVersionHistory() throws RepositoryException
getVersionHistory in interface NodeRepositoryExceptionpublic Version getBaseVersion() throws RepositoryException
getBaseVersion in interface NodeRepositoryExceptionpublic Lock lock(boolean isDeep, boolean isSessionScoped) throws RepositoryException
lock in interface NodeRepositoryExceptionpublic Lock getLock() throws RepositoryException
getLock in interface NodeRepositoryExceptionpublic void unlock()
throws RepositoryException
unlock in interface NodeRepositoryExceptionpublic boolean holdsLock()
throws RepositoryException
holdsLock in interface NodeRepositoryExceptionpublic boolean isLocked()
throws RepositoryException
isLocked in interface NodeRepositoryExceptionpublic void followLifecycleTransition(String transition) throws RepositoryException
followLifecycleTransition in interface NodeRepositoryExceptionpublic String[] getAllowedLifecycleTransistions() throws RepositoryException
getAllowedLifecycleTransistions in interface NodeRepositoryExceptionpublic NodeIterator getSharedSet() throws RepositoryException
getSharedSet in interface NodeRepositoryExceptionpublic PropertyIterator getWeakReferences() throws RepositoryException
getWeakReferences in interface NodeRepositoryExceptionpublic PropertyIterator getWeakReferences(String name) throws RepositoryException
getWeakReferences in interface NodeRepositoryExceptionpublic void removeShare()
throws RepositoryException
removeShare in interface NodeRepositoryExceptionpublic void removeSharedSet()
throws RepositoryException
removeSharedSet in interface NodeRepositoryExceptionpublic void setPrimaryType(String nodeTypeName) throws RepositoryException
setPrimaryType in interface NodeRepositoryExceptionCopyright © 2004–2021 The Apache Software Foundation. All rights reserved.