public class ClientNode extends ClientItem
RemoteNode
interface. This class makes a remote node locally available using
the JCR Node interface.javax.jcr.Node,
RemoteNode| Constructor and Description |
|---|
ClientNode(Session session,
RemoteNode remote,
LocalAdapterFactory factory)
Creates a local adapter for the given remote node.
|
| Modifier and Type | Method and Description |
|---|---|
void |
accept(ItemVisitor visitor)
Calls the
ItemVisitor.visit(Node)
method of the given visitor. |
void |
addMixin(java.lang.String name) |
Node |
addNode(java.lang.String path) |
Node |
addNode(java.lang.String path,
java.lang.String type) |
boolean |
canAddMixin(java.lang.String name) |
void |
cancelMerge(Version version) |
Version |
checkin() |
void |
checkout() |
void |
doneMerge(Version version) |
void |
followLifecycleTransition(java.lang.String transition) |
java.lang.String[] |
getAllowedLifecycleTransistions() |
Version |
getBaseVersion() |
java.lang.String |
getCorrespondingNodePath(java.lang.String workspace) |
NodeDefinition |
getDefinition() |
java.lang.String |
getIdentifier() |
int |
getIndex() |
Lock |
getLock() |
NodeType[] |
getMixinNodeTypes() |
Node |
getNode(java.lang.String path) |
NodeIterator |
getNodes() |
NodeIterator |
getNodes(java.lang.String pattern) |
NodeIterator |
getNodes(java.lang.String[] globs) |
Item |
getPrimaryItem() |
NodeType |
getPrimaryNodeType() |
PropertyIterator |
getProperties() |
PropertyIterator |
getProperties(java.lang.String pattern) |
PropertyIterator |
getProperties(java.lang.String[] globs) |
Property |
getProperty(java.lang.String path) |
PropertyIterator |
getReferences() |
PropertyIterator |
getReferences(java.lang.String name) |
NodeIterator |
getSharedSet() |
java.lang.String |
getUUID() |
VersionHistory |
getVersionHistory() |
PropertyIterator |
getWeakReferences() |
PropertyIterator |
getWeakReferences(java.lang.String name) |
boolean |
hasNode(java.lang.String path) |
boolean |
hasNodes() |
boolean |
hasProperties() |
boolean |
hasProperty(java.lang.String path) |
boolean |
holdsLock() |
boolean |
isCheckedOut() |
boolean |
isLocked() |
boolean |
isNode()
Returns
true without contacting the remote node. |
boolean |
isNodeType(java.lang.String type) |
Lock |
lock(boolean isDeep,
boolean isSessionScoped) |
NodeIterator |
merge(java.lang.String workspace,
boolean bestEffort) |
void |
orderBefore(java.lang.String src,
java.lang.String dst) |
void |
removeMixin(java.lang.String name) |
void |
removeShare() |
void |
removeSharedSet() |
void |
restore(java.lang.String version,
boolean removeExisting) |
void |
restore(Version version,
boolean removeExisting) |
void |
restore(Version version,
java.lang.String path,
boolean removeExisting) |
void |
restoreByLabel(java.lang.String label,
boolean removeExisting) |
void |
setPrimaryType(java.lang.String nodeTypeName) |
Property |
setProperty(java.lang.String name,
java.math.BigDecimal value) |
Property |
setProperty(java.lang.String name,
Binary value) |
Property |
setProperty(java.lang.String name,
boolean value) |
Property |
setProperty(java.lang.String name,
java.util.Calendar value) |
Property |
setProperty(java.lang.String name,
double value) |
Property |
setProperty(java.lang.String name,
java.io.InputStream value) |
Property |
setProperty(java.lang.String name,
long value) |
Property |
setProperty(java.lang.String name,
Node value) |
Property |
setProperty(java.lang.String name,
java.lang.String value) |
Property |
setProperty(java.lang.String name,
java.lang.String[] strings) |
Property |
setProperty(java.lang.String name,
java.lang.String[] strings,
int type) |
Property |
setProperty(java.lang.String name,
java.lang.String string,
int type) |
Property |
setProperty(java.lang.String name,
Value value) |
Property |
setProperty(java.lang.String name,
Value[] values) |
Property |
setProperty(java.lang.String name,
Value[] values,
int type) |
Property |
setProperty(java.lang.String name,
Value value,
int type) |
void |
unlock() |
void |
update(java.lang.String workspace) |
getAncestor, 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 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 class ClientItemRepositoryExceptionpublic Node addNode(java.lang.String path)
throws RepositoryException
RepositoryExceptionpublic Node addNode(java.lang.String path,
java.lang.String type)
throws RepositoryException
RepositoryExceptionpublic void orderBefore(java.lang.String src,
java.lang.String dst)
throws RepositoryException
RepositoryExceptionpublic Property setProperty(java.lang.String name,
Value value)
throws RepositoryException
RepositoryExceptionpublic Property setProperty(java.lang.String name,
Value[] values)
throws RepositoryException
RepositoryExceptionpublic Property setProperty(java.lang.String name,
java.lang.String[] strings)
throws RepositoryException
RepositoryExceptionpublic Property setProperty(java.lang.String name,
java.lang.String value)
throws RepositoryException
RepositoryExceptionpublic Property setProperty(java.lang.String name,
java.io.InputStream value)
throws RepositoryException
RepositoryExceptionpublic Property setProperty(java.lang.String name,
boolean value)
throws RepositoryException
RepositoryExceptionpublic Property setProperty(java.lang.String name,
double value)
throws RepositoryException
RepositoryExceptionpublic Property setProperty(java.lang.String name,
long value)
throws RepositoryException
RepositoryExceptionpublic Property setProperty(java.lang.String name,
java.util.Calendar value)
throws RepositoryException
RepositoryExceptionpublic Property setProperty(java.lang.String name,
Node value)
throws RepositoryException
RepositoryExceptionpublic Property setProperty(java.lang.String name,
Binary value)
throws RepositoryException
RepositoryExceptionpublic Property setProperty(java.lang.String name,
java.math.BigDecimal value)
throws RepositoryException
RepositoryExceptionpublic Node getNode(java.lang.String path)
throws RepositoryException
RepositoryExceptionpublic NodeIterator getNodes()
throws RepositoryException
RepositoryExceptionpublic NodeIterator getNodes(java.lang.String pattern)
throws RepositoryException
RepositoryExceptionpublic NodeIterator getNodes(java.lang.String[] globs)
throws RepositoryException
RepositoryExceptionpublic Property getProperty(java.lang.String path)
throws RepositoryException
RepositoryExceptionpublic PropertyIterator getProperties()
throws RepositoryException
RepositoryExceptionpublic PropertyIterator getProperties(java.lang.String pattern)
throws RepositoryException
RepositoryExceptionpublic PropertyIterator getProperties(java.lang.String[] globs)
throws RepositoryException
RepositoryExceptionpublic Item getPrimaryItem()
throws RepositoryException
RepositoryExceptionpublic java.lang.String getIdentifier()
throws RepositoryException
RepositoryExceptionpublic java.lang.String getUUID()
throws RepositoryException
RepositoryExceptionpublic PropertyIterator getReferences()
throws RepositoryException
RepositoryExceptionpublic PropertyIterator getReferences(java.lang.String name)
throws RepositoryException
RepositoryExceptionpublic boolean hasNode(java.lang.String path)
throws RepositoryException
RepositoryExceptionpublic boolean hasProperty(java.lang.String path)
throws RepositoryException
RepositoryExceptionpublic boolean hasNodes()
throws RepositoryException
RepositoryExceptionpublic boolean hasProperties()
throws RepositoryException
RepositoryExceptionpublic NodeType getPrimaryNodeType()
throws RepositoryException
RepositoryExceptionpublic NodeType[] getMixinNodeTypes()
throws RepositoryException
RepositoryExceptionpublic boolean isNodeType(java.lang.String type)
throws RepositoryException
RepositoryExceptionpublic void addMixin(java.lang.String name)
throws RepositoryException
RepositoryExceptionpublic void removeMixin(java.lang.String name)
throws RepositoryException
RepositoryExceptionpublic boolean canAddMixin(java.lang.String name)
throws RepositoryException
RepositoryExceptionpublic NodeDefinition getDefinition()
throws RepositoryException
RepositoryExceptionpublic Version checkin()
throws RepositoryException
RepositoryExceptionpublic void checkout()
throws RepositoryException
RepositoryExceptionpublic void update(java.lang.String workspace)
throws RepositoryException
RepositoryExceptionpublic NodeIterator merge(java.lang.String workspace,
boolean bestEffort)
throws RepositoryException
RepositoryExceptionpublic void cancelMerge(Version version)
throws RepositoryException
RepositoryExceptionpublic void doneMerge(Version version)
throws RepositoryException
RepositoryExceptionpublic java.lang.String getCorrespondingNodePath(java.lang.String workspace)
throws RepositoryException
RepositoryExceptionpublic int getIndex()
throws RepositoryException
RepositoryExceptionpublic void restore(java.lang.String version,
boolean removeExisting)
throws RepositoryException
RepositoryExceptionpublic void restore(Version version,
boolean removeExisting)
throws RepositoryException
RepositoryExceptionpublic void restore(Version version,
java.lang.String path,
boolean removeExisting)
throws RepositoryException
RepositoryExceptionpublic void restoreByLabel(java.lang.String label,
boolean removeExisting)
throws RepositoryException
RepositoryExceptionpublic Property setProperty(java.lang.String name,
java.lang.String[] strings,
int type)
throws RepositoryException
RepositoryExceptionpublic Property setProperty(java.lang.String name,
Value[] values,
int type)
throws RepositoryException
RepositoryExceptionpublic Property setProperty(java.lang.String name,
Value value,
int type)
throws RepositoryException
RepositoryExceptionpublic Property setProperty(java.lang.String name,
java.lang.String string,
int type)
throws RepositoryException
RepositoryExceptionpublic boolean isCheckedOut()
throws RepositoryException
RepositoryExceptionpublic VersionHistory getVersionHistory()
throws RepositoryException
RepositoryExceptionpublic Version getBaseVersion()
throws RepositoryException
RepositoryExceptionpublic Lock lock(boolean isDeep,
boolean isSessionScoped)
throws RepositoryException
RepositoryExceptionpublic Lock getLock()
throws RepositoryException
RepositoryExceptionpublic void unlock()
throws RepositoryException
RepositoryExceptionpublic boolean holdsLock()
throws RepositoryException
RepositoryExceptionpublic boolean isLocked()
throws RepositoryException
RepositoryExceptionpublic void followLifecycleTransition(java.lang.String transition)
throws RepositoryException
RepositoryExceptionpublic java.lang.String[] getAllowedLifecycleTransistions()
throws RepositoryException
RepositoryExceptionpublic NodeIterator getSharedSet()
throws RepositoryException
RepositoryExceptionpublic PropertyIterator getWeakReferences()
throws RepositoryException
RepositoryExceptionpublic PropertyIterator getWeakReferences(java.lang.String name)
throws RepositoryException
RepositoryExceptionpublic void removeShare()
throws RepositoryException
RepositoryExceptionpublic void removeSharedSet()
throws RepositoryException
RepositoryExceptionpublic void setPrimaryType(java.lang.String nodeTypeName)
throws RepositoryException
RepositoryException"Copyright © 2010 - 2018 Adobe Systems Incorporated. All Rights Reserved"