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(String name) |
Node |
addNode(String path) |
Node |
addNode(String path,
String type) |
boolean |
canAddMixin(String name) |
void |
cancelMerge(Version version) |
Version |
checkin() |
void |
checkout() |
void |
doneMerge(Version version) |
void |
followLifecycleTransition(String transition) |
String[] |
getAllowedLifecycleTransistions() |
Version |
getBaseVersion() |
String |
getCorrespondingNodePath(String workspace) |
NodeDefinition |
getDefinition() |
String |
getIdentifier() |
int |
getIndex() |
Lock |
getLock() |
NodeType[] |
getMixinNodeTypes() |
Node |
getNode(String path) |
NodeIterator |
getNodes() |
NodeIterator |
getNodes(String pattern) |
NodeIterator |
getNodes(String[] globs) |
Item |
getPrimaryItem() |
NodeType |
getPrimaryNodeType() |
PropertyIterator |
getProperties() |
PropertyIterator |
getProperties(String pattern) |
PropertyIterator |
getProperties(String[] globs) |
Property |
getProperty(String path) |
PropertyIterator |
getReferences() |
PropertyIterator |
getReferences(String name) |
NodeIterator |
getSharedSet() |
String |
getUUID() |
VersionHistory |
getVersionHistory() |
PropertyIterator |
getWeakReferences() |
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) |
Lock |
lock(boolean isDeep,
boolean isSessionScoped) |
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(Version version,
boolean removeExisting) |
void |
restore(Version version,
String path,
boolean removeExisting) |
void |
restoreByLabel(String label,
boolean removeExisting) |
void |
setPrimaryType(String nodeTypeName) |
Property |
setProperty(String name,
BigDecimal value) |
Property |
setProperty(String name,
Binary value) |
Property |
setProperty(String name,
boolean value) |
Property |
setProperty(String name,
Calendar value) |
Property |
setProperty(String name,
double value) |
Property |
setProperty(String name,
InputStream value) |
Property |
setProperty(String name,
long value) |
Property |
setProperty(String name,
Node value) |
Property |
setProperty(String name,
String value) |
Property |
setProperty(String name,
String[] strings) |
Property |
setProperty(String name,
String[] strings,
int type) |
Property |
setProperty(String name,
String string,
int type) |
Property |
setProperty(String name,
Value value) |
Property |
setProperty(String name,
Value[] values) |
Property |
setProperty(String name,
Value[] values,
int type) |
Property |
setProperty(String name,
Value value,
int type) |
void |
unlock() |
void |
update(String workspace) |
getAncestor, getDepth, getName, getParent, getPath, getSession, isModified, isNew, isSame, refresh, remove, save
public 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 ClientItem
public 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 ClientItem
RepositoryException
public Node addNode(String path) throws RepositoryException
RepositoryException
public Node addNode(String path, String type) throws RepositoryException
RepositoryException
public void orderBefore(String src, String dst) throws RepositoryException
RepositoryException
public Property setProperty(String name, Value value) throws RepositoryException
RepositoryException
public Property setProperty(String name, Value[] values) throws RepositoryException
RepositoryException
public Property setProperty(String name, String[] strings) throws RepositoryException
RepositoryException
public Property setProperty(String name, String value) throws RepositoryException
RepositoryException
public Property setProperty(String name, InputStream value) throws RepositoryException
RepositoryException
public Property setProperty(String name, boolean value) throws RepositoryException
RepositoryException
public Property setProperty(String name, double value) throws RepositoryException
RepositoryException
public Property setProperty(String name, long value) throws RepositoryException
RepositoryException
public Property setProperty(String name, Calendar value) throws RepositoryException
RepositoryException
public Property setProperty(String name, Node value) throws RepositoryException
RepositoryException
public Property setProperty(String name, Binary value) throws RepositoryException
RepositoryException
public Property setProperty(String name, BigDecimal value) throws RepositoryException
RepositoryException
public Node getNode(String path) throws RepositoryException
RepositoryException
public NodeIterator getNodes() throws RepositoryException
RepositoryException
public NodeIterator getNodes(String pattern) throws RepositoryException
RepositoryException
public NodeIterator getNodes(String[] globs) throws RepositoryException
RepositoryException
public Property getProperty(String path) throws RepositoryException
RepositoryException
public PropertyIterator getProperties() throws RepositoryException
RepositoryException
public PropertyIterator getProperties(String pattern) throws RepositoryException
RepositoryException
public PropertyIterator getProperties(String[] globs) throws RepositoryException
RepositoryException
public Item getPrimaryItem() throws RepositoryException
RepositoryException
public String getIdentifier() throws RepositoryException
RepositoryException
public String getUUID() throws RepositoryException
RepositoryException
public PropertyIterator getReferences() throws RepositoryException
RepositoryException
public PropertyIterator getReferences(String name) throws RepositoryException
RepositoryException
public boolean hasNode(String path) throws RepositoryException
RepositoryException
public boolean hasProperty(String path) throws RepositoryException
RepositoryException
public boolean hasNodes() throws RepositoryException
RepositoryException
public boolean hasProperties() throws RepositoryException
RepositoryException
public NodeType getPrimaryNodeType() throws RepositoryException
RepositoryException
public NodeType[] getMixinNodeTypes() throws RepositoryException
RepositoryException
public boolean isNodeType(String type) throws RepositoryException
RepositoryException
public void addMixin(String name) throws RepositoryException
RepositoryException
public void removeMixin(String name) throws RepositoryException
RepositoryException
public boolean canAddMixin(String name) throws RepositoryException
RepositoryException
public NodeDefinition getDefinition() throws RepositoryException
RepositoryException
public Version checkin() throws RepositoryException
RepositoryException
public void checkout() throws RepositoryException
RepositoryException
public void update(String workspace) throws RepositoryException
RepositoryException
public NodeIterator merge(String workspace, boolean bestEffort) throws RepositoryException
RepositoryException
public void cancelMerge(Version version) throws RepositoryException
RepositoryException
public void doneMerge(Version version) throws RepositoryException
RepositoryException
public String getCorrespondingNodePath(String workspace) throws RepositoryException
RepositoryException
public int getIndex() throws RepositoryException
RepositoryException
public void restore(String version, boolean removeExisting) throws RepositoryException
RepositoryException
public void restore(Version version, boolean removeExisting) throws RepositoryException
RepositoryException
public void restore(Version version, String path, boolean removeExisting) throws RepositoryException
RepositoryException
public void restoreByLabel(String label, boolean removeExisting) throws RepositoryException
RepositoryException
public Property setProperty(String name, String[] strings, int type) throws RepositoryException
RepositoryException
public Property setProperty(String name, Value[] values, int type) throws RepositoryException
RepositoryException
public Property setProperty(String name, Value value, int type) throws RepositoryException
RepositoryException
public Property setProperty(String name, String string, int type) throws RepositoryException
RepositoryException
public boolean isCheckedOut() throws RepositoryException
RepositoryException
public VersionHistory getVersionHistory() throws RepositoryException
RepositoryException
public Version getBaseVersion() throws RepositoryException
RepositoryException
public Lock lock(boolean isDeep, boolean isSessionScoped) throws RepositoryException
RepositoryException
public Lock getLock() throws RepositoryException
RepositoryException
public void unlock() throws RepositoryException
RepositoryException
public boolean holdsLock() throws RepositoryException
RepositoryException
public boolean isLocked() throws RepositoryException
RepositoryException
public void followLifecycleTransition(String transition) throws RepositoryException
RepositoryException
public String[] getAllowedLifecycleTransistions() throws RepositoryException
RepositoryException
public NodeIterator getSharedSet() throws RepositoryException
RepositoryException
public PropertyIterator getWeakReferences() throws RepositoryException
RepositoryException
public PropertyIterator getWeakReferences(String name) throws RepositoryException
RepositoryException
public void removeShare() throws RepositoryException
RepositoryException
public void removeSharedSet() throws RepositoryException
RepositoryException
public void setPrimaryType(String nodeTypeName) throws RepositoryException
RepositoryException
"Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"