|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.rmi.client.ClientObject
org.apache.jackrabbit.rmi.client.ClientItem
org.apache.jackrabbit.rmi.client.ClientNode
public class ClientNode
Local adapter for the JCR-RMI
RemoteNode
interface. This class makes a remote node locally available using
the JCR Node interface.
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 | |
|---|---|
ClientNode(Session session,
RemoteNode remote,
LocalAdapterFactory factory)
Creates a local adapter for the given remote node. |
|
| 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 |
|---|
public ClientNode(Session session,
RemoteNode remote,
LocalAdapterFactory factory)
session - current sessionremote - remote nodefactory - local adapter factory| Method Detail |
|---|
public 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 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 interface Itemaccept in class ClientItemRepositoryException
public Node addNode(String path)
throws RepositoryException
addNode in interface NodeRepositoryException
public Node addNode(String path,
String type)
throws RepositoryException
addNode in interface NodeRepositoryException
public void orderBefore(String src,
String dst)
throws RepositoryException
orderBefore in interface NodeRepositoryException
public Property setProperty(String name,
Value value)
throws RepositoryException
setProperty in interface NodeRepositoryException
public Property setProperty(String name,
Value[] values)
throws RepositoryException
setProperty in interface NodeRepositoryException
public Property setProperty(String name,
String[] strings)
throws RepositoryException
setProperty in interface NodeRepositoryException
public Property setProperty(String name,
String value)
throws RepositoryException
setProperty in interface NodeRepositoryException
public Property setProperty(String name,
InputStream value)
throws RepositoryException
setProperty in interface NodeRepositoryException
public Property setProperty(String name,
boolean value)
throws RepositoryException
setProperty in interface NodeRepositoryException
public Property setProperty(String name,
double value)
throws RepositoryException
setProperty in interface NodeRepositoryException
public Property setProperty(String name,
long value)
throws RepositoryException
setProperty in interface NodeRepositoryException
public Property setProperty(String name,
Calendar value)
throws RepositoryException
setProperty in interface NodeRepositoryException
public Property setProperty(String name,
Node value)
throws RepositoryException
setProperty in interface NodeRepositoryException
public Property setProperty(String name,
Binary value)
throws RepositoryException
setProperty in interface NodeRepositoryException
public Property setProperty(String name,
BigDecimal value)
throws RepositoryException
setProperty in interface NodeRepositoryException
public Node getNode(String path)
throws RepositoryException
getNode in interface NodeRepositoryException
public NodeIterator getNodes()
throws RepositoryException
getNodes in interface NodeRepositoryException
public NodeIterator getNodes(String pattern)
throws RepositoryException
getNodes in interface NodeRepositoryException
public NodeIterator getNodes(String[] globs)
throws RepositoryException
getNodes in interface NodeRepositoryException
public Property getProperty(String path)
throws RepositoryException
getProperty in interface NodeRepositoryException
public PropertyIterator getProperties()
throws RepositoryException
getProperties in interface NodeRepositoryException
public PropertyIterator getProperties(String pattern)
throws RepositoryException
getProperties in interface NodeRepositoryException
public PropertyIterator getProperties(String[] globs)
throws RepositoryException
getProperties in interface NodeRepositoryException
public Item getPrimaryItem()
throws RepositoryException
getPrimaryItem in interface NodeRepositoryException
public String getIdentifier()
throws RepositoryException
getIdentifier in interface NodeRepositoryException
public String getUUID()
throws RepositoryException
getUUID in interface NodeRepositoryException
public PropertyIterator getReferences()
throws RepositoryException
getReferences in interface NodeRepositoryException
public PropertyIterator getReferences(String name)
throws RepositoryException
getReferences in interface NodeRepositoryException
public boolean hasNode(String path)
throws RepositoryException
hasNode in interface NodeRepositoryException
public boolean hasProperty(String path)
throws RepositoryException
hasProperty in interface NodeRepositoryException
public boolean hasNodes()
throws RepositoryException
hasNodes in interface NodeRepositoryException
public boolean hasProperties()
throws RepositoryException
hasProperties in interface NodeRepositoryException
public NodeType getPrimaryNodeType()
throws RepositoryException
getPrimaryNodeType in interface NodeRepositoryException
public NodeType[] getMixinNodeTypes()
throws RepositoryException
getMixinNodeTypes in interface NodeRepositoryException
public boolean isNodeType(String type)
throws RepositoryException
isNodeType in interface NodeRepositoryException
public void addMixin(String name)
throws RepositoryException
addMixin in interface NodeRepositoryException
public void removeMixin(String name)
throws RepositoryException
removeMixin in interface NodeRepositoryException
public boolean canAddMixin(String name)
throws RepositoryException
canAddMixin in interface NodeRepositoryException
public NodeDefinition getDefinition()
throws RepositoryException
getDefinition in interface NodeRepositoryException
public Version checkin()
throws RepositoryException
checkin in interface NodeRepositoryException
public void checkout()
throws RepositoryException
checkout in interface NodeRepositoryException
public void update(String workspace)
throws RepositoryException
update in interface NodeRepositoryException
public NodeIterator merge(String workspace,
boolean bestEffort)
throws RepositoryException
merge in interface NodeRepositoryException
public void cancelMerge(Version version)
throws RepositoryException
cancelMerge in interface NodeRepositoryException
public void doneMerge(Version version)
throws RepositoryException
doneMerge in interface NodeRepositoryException
public String getCorrespondingNodePath(String workspace)
throws RepositoryException
getCorrespondingNodePath in interface NodeRepositoryException
public int getIndex()
throws RepositoryException
getIndex in interface NodeRepositoryException
public void restore(String version,
boolean removeExisting)
throws RepositoryException
restore in interface NodeRepositoryException
public void restore(Version version,
boolean removeExisting)
throws RepositoryException
restore in interface NodeRepositoryException
public void restore(Version version,
String path,
boolean removeExisting)
throws RepositoryException
restore in interface NodeRepositoryException
public void restoreByLabel(String label,
boolean removeExisting)
throws RepositoryException
restoreByLabel in interface NodeRepositoryException
public Property setProperty(String name,
String[] strings,
int type)
throws RepositoryException
setProperty in interface NodeRepositoryException
public Property setProperty(String name,
Value[] values,
int type)
throws RepositoryException
setProperty in interface NodeRepositoryException
public Property setProperty(String name,
Value value,
int type)
throws RepositoryException
setProperty in interface NodeRepositoryException
public Property setProperty(String name,
String string,
int type)
throws RepositoryException
setProperty in interface NodeRepositoryException
public boolean isCheckedOut()
throws RepositoryException
isCheckedOut in interface NodeRepositoryException
public VersionHistory getVersionHistory()
throws RepositoryException
getVersionHistory in interface NodeRepositoryException
public Version getBaseVersion()
throws RepositoryException
getBaseVersion in interface NodeRepositoryException
public Lock lock(boolean isDeep,
boolean isSessionScoped)
throws RepositoryException
lock in interface NodeRepositoryException
public Lock getLock()
throws RepositoryException
getLock in interface NodeRepositoryException
public void unlock()
throws RepositoryException
unlock in interface NodeRepositoryException
public boolean holdsLock()
throws RepositoryException
holdsLock in interface NodeRepositoryException
public boolean isLocked()
throws RepositoryException
isLocked in interface NodeRepositoryException
public void followLifecycleTransition(String transition)
throws RepositoryException
followLifecycleTransition in interface NodeRepositoryException
public String[] getAllowedLifecycleTransistions()
throws RepositoryException
getAllowedLifecycleTransistions in interface NodeRepositoryException
public NodeIterator getSharedSet()
throws RepositoryException
getSharedSet in interface NodeRepositoryException
public PropertyIterator getWeakReferences()
throws RepositoryException
getWeakReferences in interface NodeRepositoryException
public PropertyIterator getWeakReferences(String name)
throws RepositoryException
getWeakReferences in interface NodeRepositoryException
public void removeShare()
throws RepositoryException
removeShare in interface NodeRepositoryException
public void removeSharedSet()
throws RepositoryException
removeSharedSet in interface NodeRepositoryException
public void setPrimaryType(String nodeTypeName)
throws RepositoryException
setPrimaryType in interface NodeRepositoryException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||