|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.core.ItemImpl
org.apache.jackrabbit.core.NodeImpl
public class NodeImpl
NodeImpl implements the Node interface.
| Field Summary | |
|---|---|
protected static short |
CREATED
|
protected NodeDefinition |
definition
the definition of this node |
protected QName |
primaryTypeName
same as ((NodeState) state).getNodeTypeName(); cached to avoid type casts |
| Fields inherited from class org.apache.jackrabbit.core.ItemImpl |
|---|
id, itemMgr, listeners, rep, session, state, stateMgr, status, STATUS_DESTROYED, STATUS_INVALIDATED, STATUS_MODIFIED, STATUS_NORMAL |
| Constructor Summary | |
|---|---|
protected |
NodeImpl(ItemManager itemMgr,
SessionImpl session,
NodeId id,
NodeState state,
NodeDefinition definition,
ItemLifeCycleListener[] listeners)
Protected constructor. |
| Method Summary | |
|---|---|
void |
accept(ItemVisitor visitor)
|
void |
addMixin(QName mixinName)
Same as Node.addMixin(String) except that it takes a
QName instead of a String. |
void |
addMixin(String mixinName)
|
NodeImpl |
addNode(QName nodeName,
QName nodeTypeName,
UUID uuid)
Same as except that
this method takes QName arguments instead of
Strings and has an additional uuid argument. |
Node |
addNode(String relPath)
|
Node |
addNode(String relPath,
String nodeTypeName)
|
boolean |
canAddMixin(String mixinName)
|
void |
cancelMerge(Version version)
|
Version |
checkin()
|
protected void |
checkLock()
Check whether this node is locked by somebody else. |
void |
checkout()
|
protected void |
checkSetProperty()
Checks various pre-conditions that are common to all setProperty() methods. |
protected InternalValue[] |
computeSystemGeneratedPropertyValues(QName name,
PropertyDefinitionImpl def)
Computes the values of well-known system (i.e. |
protected NodeImpl |
createChildNode(QName name,
NodeDefinitionImpl def,
NodeTypeImpl nodeType,
NodeId id)
|
protected PropertyImpl |
createChildProperty(QName name,
int type,
PropertyDefinitionImpl def)
|
void |
doneMerge(Version version)
|
protected NodeDefinitionImpl |
getApplicableChildNodeDefinition(QName nodeName,
QName nodeTypeName)
Returns the applicable child node definition for a child node with the specified name and node type. |
protected PropertyDefinitionImpl |
getApplicablePropertyDefinition(QName propertyName,
int type,
boolean multiValued,
boolean exactTypeMatch)
Returns the applicable property definition for a property with the specified name and type. |
Version |
getBaseVersion()
|
String |
getCorrespondingNodePath(String workspaceName)
|
NodeDefinition |
getDefinition()
|
EffectiveNodeType |
getEffectiveNodeType()
Returns the effective (i.e. |
int |
getIndex()
|
Lock |
getLock()
|
NodeType[] |
getMixinNodeTypes()
|
Set |
getMixinTypeNames()
Returns the QNames of this node's mixin types. |
String |
getName()
|
NodeImpl |
getNode(QName name)
Returns the child node of this node with the specified
name. |
NodeImpl |
getNode(QName name,
int index)
Returns the child node of this node with the specified
name. |
Node |
getNode(String relPath)
|
NodeId |
getNodeId()
Returns the identifier of this Node. |
NodeIterator |
getNodes()
|
NodeIterator |
getNodes(String namePattern)
|
protected PropertyImpl |
getOrCreateProperty(QName name,
int type,
boolean multiValued,
boolean exactTypeMatch,
BitSet status)
|
protected PropertyImpl |
getOrCreateProperty(String name,
int type,
boolean multiValued,
boolean exactTypeMatch,
BitSet status)
|
protected ItemState |
getOrCreateTransientItemState()
|
Node |
getParent()
|
Item |
getPrimaryItem()
|
NodeType |
getPrimaryNodeType()
|
PropertyIterator |
getProperties()
|
PropertyIterator |
getProperties(String namePattern)
|
PropertyImpl |
getProperty(QName name)
Returns the property of this node with the specified
name. |
Property |
getProperty(String relPath)
|
QName |
getQName()
Same as except that
this method returns a QName instead of a
String. |
PropertyIterator |
getReferences()
|
String |
getUUID()
|
VersionHistory |
getVersionHistory()
|
boolean |
hasNode(QName name)
Indicates whether a child node with the specified name exists. |
boolean |
hasNode(QName name,
int index)
Indicates whether a child node with the specified name exists. |
boolean |
hasNode(String relPath)
|
boolean |
hasNodes()
|
protected boolean |
hasPendingChanges()
Determines if there are pending unsaved changes either on this node or on any node or property in the subtree below it. |
boolean |
hasProperties()
|
boolean |
hasProperty(QName name)
Indicates whether a property with the specified name exists. |
boolean |
hasProperty(String relPath)
|
boolean |
holdsLock()
|
protected NodeImpl |
internalAddChildNode(QName nodeName,
NodeTypeImpl nodeType)
|
protected NodeImpl |
internalAddChildNode(QName nodeName,
NodeTypeImpl nodeType,
NodeId id)
|
protected NodeImpl |
internalAddNode(String relPath,
NodeTypeImpl nodeType)
|
protected NodeImpl |
internalAddNode(String relPath,
NodeTypeImpl nodeType,
NodeId id)
|
protected void |
internalCopyPropertyFrom(PropertyImpl prop)
Copies a property to this node |
UUID |
internalGetUUID()
Returns the (internal) uuid of this node. |
protected boolean |
internalIsCheckedOut()
Determines the checked-out status of this node. |
protected Version[] |
internalRestore(VersionImpl version,
VersionSelector vsel,
boolean removeExisting)
Internal method to restore a version. |
protected Property |
internalSetProperty(QName name,
InternalValue value)
Sets the internal value of a property without checking any constraints. |
protected Property |
internalSetProperty(QName name,
InternalValue[] values)
Sets the internal value of a property without checking any constraints. |
protected Property |
internalSetProperty(QName name,
InternalValue[] values,
int type)
Sets the internal value of a property without checking any constraints. |
boolean |
isCheckedOut()
|
boolean |
isLocked()
|
boolean |
isNode()
|
boolean |
isNodeType(QName ntName)
Same as Node.isNodeType(String) except that it takes a
QName instead of a String. |
boolean |
isNodeType(String nodeTypeName)
|
Lock |
lock(boolean isDeep,
boolean isSessionScoped)
|
protected void |
makePersistent()
|
NodeIterator |
merge(String srcWorkspace,
boolean bestEffort)
|
protected void |
onRedefine(NodeDefId defId)
|
protected void |
onRemove()
|
void |
orderBefore(Path.PathElement srcName,
Path.PathElement dstName)
Same as except that
this method takes a Path.PathElement arguments instead of
Strings. |
void |
orderBefore(String srcName,
String destName)
|
protected void |
removeChildNode(QName nodeName,
int index)
|
protected void |
removeChildProperty(QName propName)
|
protected void |
removeChildProperty(String propName)
|
void |
removeMixin(QName mixinName)
Same as Node.removeMixin(String) except that it takes a
QName instead of a String. |
void |
removeMixin(String mixinName)
|
protected void |
renameChildNode(QName oldName,
int index,
NodeId id,
QName newName)
|
protected NodeId |
resolveRelativeNodePath(String relPath)
Returns the id of the node at relPath or null
if no node exists at relPath. |
protected PropertyId |
resolveRelativePropertyPath(String relPath)
Returns the id of the property at relPath or null
if no property exists at relPath. |
void |
restore(String versionName,
boolean removeExisting)
|
void |
restore(Version version,
boolean removeExisting)
|
void |
restore(Version version,
String relPath,
boolean removeExisting)
|
void |
restoreByLabel(String versionLabel,
boolean removeExisting)
|
protected void |
restoreTransient(NodeState transientState)
|
PropertyImpl |
setProperty(QName name,
Value value)
Same as except that
this method takes a QName name argument instead of a
String. |
PropertyImpl |
setProperty(QName name,
Value[] values)
Same as except that
this method takes a QName name argument instead of a
String. |
PropertyImpl |
setProperty(QName name,
Value[] values,
int type)
Same as except
that this method takes a QName name argument instead of a
String. |
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[] values)
|
Property |
setProperty(String name,
String[] values,
int type)
|
Property |
setProperty(String name,
String value,
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 srcWorkspaceName)
|
| Methods inherited from class org.apache.jackrabbit.core.ItemImpl |
|---|
getAncestor, getDepth, getId, getPath, getPrimaryPath, getSession, internalRemove, isModified, isNew, isSame, isTransactionalNew, isTransient, notifyDestroyed, notifyInvalidated, refresh, remove, safeGetJCRPath, sanityCheck, save, setRemoved, stateCreated, stateDestroyed, stateDiscarded, stateModified |
| 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, getPath, getSession, isModified, isNew, isSame, refresh, remove, save |
| Field Detail |
|---|
protected final QName primaryTypeName
protected NodeDefinition definition
protected static final short CREATED
| Constructor Detail |
|---|
protected NodeImpl(ItemManager itemMgr,
SessionImpl session,
NodeId id,
NodeState state,
NodeDefinition definition,
ItemLifeCycleListener[] listeners)
itemMgr - the ItemManager that created this Node instancesession - the Session through which this Node is acquiredid - id of this Nodestate - state associated with this Nodedefinition - definition of this Nodelisteners - listeners on life cylce changes of this NodeImpl| Method Detail |
|---|
protected PropertyId resolveRelativePropertyPath(String relPath)
throws RepositoryException
relPath or null
if no property exists at relPath.
Note that access rights are not checked.
relPath - relative path of a (possible) property
relPath or
null if no property exists at relPath
RepositoryException - if relPath is not a valid
relative path
protected NodeId resolveRelativeNodePath(String relPath)
throws RepositoryException
relPath or null
if no node exists at relPath.
Note that access rights are not checked.
relPath - relative path of a (possible) node
relPath or
null if no node exists at relPath
RepositoryException - if relPath is not a valid
relative path
protected boolean hasPendingChanges()
throws RepositoryException
true if there are pending unsaved changes,
false otherwise.
RepositoryException - if an error occured
protected ItemState getOrCreateTransientItemState()
throws RepositoryException
getOrCreateTransientItemState in class ItemImplRepositoryException
protected InternalValue[] computeSystemGeneratedPropertyValues(QName name,
PropertyDefinitionImpl def)
throws RepositoryException
name - def -
RepositoryException
protected PropertyImpl getOrCreateProperty(String name,
int type,
boolean multiValued,
boolean exactTypeMatch,
BitSet status)
throws ConstraintViolationException,
RepositoryException
name - type - multiValued - exactTypeMatch - status -
ConstraintViolationException - if no applicable property definition
could be found
RepositoryException - if another error occurs
protected PropertyImpl getOrCreateProperty(QName name,
int type,
boolean multiValued,
boolean exactTypeMatch,
BitSet status)
throws ConstraintViolationException,
RepositoryException
name - type - multiValued - exactTypeMatch - status -
ConstraintViolationException - if no applicable property definition
could be found
RepositoryException - if another error occurs
protected PropertyImpl createChildProperty(QName name,
int type,
PropertyDefinitionImpl def)
throws RepositoryException
RepositoryException
protected NodeImpl createChildNode(QName name,
NodeDefinitionImpl def,
NodeTypeImpl nodeType,
NodeId id)
throws RepositoryException
RepositoryException
protected void renameChildNode(QName oldName,
int index,
NodeId id,
QName newName)
throws RepositoryException
RepositoryException
protected void removeChildProperty(String propName)
throws RepositoryException
RepositoryException
protected void removeChildProperty(QName propName)
throws RepositoryException
RepositoryException
protected void removeChildNode(QName nodeName,
int index)
throws RepositoryException
RepositoryException
protected void onRedefine(NodeDefId defId)
throws RepositoryException
RepositoryException
protected void onRemove()
throws RepositoryException
RepositoryException
protected NodeImpl internalAddNode(String relPath,
NodeTypeImpl nodeType)
throws ItemExistsException,
PathNotFoundException,
VersionException,
ConstraintViolationException,
LockException,
RepositoryException
ItemExistsException
PathNotFoundException
VersionException
ConstraintViolationException
LockException
RepositoryException
protected NodeImpl internalAddNode(String relPath,
NodeTypeImpl nodeType,
NodeId id)
throws ItemExistsException,
PathNotFoundException,
VersionException,
ConstraintViolationException,
LockException,
RepositoryException
ItemExistsException
PathNotFoundException
VersionException
ConstraintViolationException
LockException
RepositoryException
protected NodeImpl internalAddChildNode(QName nodeName,
NodeTypeImpl nodeType)
throws ItemExistsException,
ConstraintViolationException,
RepositoryException
ItemExistsException
ConstraintViolationException
RepositoryException
protected NodeImpl internalAddChildNode(QName nodeName,
NodeTypeImpl nodeType,
NodeId id)
throws ItemExistsException,
ConstraintViolationException,
RepositoryException
ItemExistsException
ConstraintViolationException
RepositoryExceptionpublic Set getMixinTypeNames()
QNames of this node's mixin types.
QNames of this node's mixin types.
public EffectiveNodeType getEffectiveNodeType()
throws RepositoryException
RepositoryException - if an error occurs
protected NodeDefinitionImpl getApplicableChildNodeDefinition(QName nodeName,
QName nodeTypeName)
throws ConstraintViolationException,
RepositoryException
nodeName - nodeTypeName -
ConstraintViolationException - if no applicable child node definition
could be found
RepositoryException - if another error occurs
protected PropertyDefinitionImpl getApplicablePropertyDefinition(QName propertyName,
int type,
boolean multiValued,
boolean exactTypeMatch)
throws ConstraintViolationException,
RepositoryException
propertyName - type - multiValued - exactTypeMatch -
ConstraintViolationException - if no applicable property definition
could be found
RepositoryException - if another error occurs
protected void makePersistent()
throws InvalidItemStateException
makePersistent in class ItemImplInvalidItemStateException
protected void restoreTransient(NodeState transientState)
throws RepositoryException
RepositoryException
public void addMixin(QName mixinName)
throws NoSuchNodeTypeException,
VersionException,
ConstraintViolationException,
LockException,
RepositoryException
Node.addMixin(String) except that it takes a
QName instead of a String.
NoSuchNodeTypeException
VersionException
ConstraintViolationException
LockException
RepositoryExceptionNode.addMixin(String)
public void removeMixin(QName mixinName)
throws NoSuchNodeTypeException,
VersionException,
ConstraintViolationException,
LockException,
RepositoryException
Node.removeMixin(String) except that it takes a
QName instead of a String.
NoSuchNodeTypeException
VersionException
ConstraintViolationException
LockException
RepositoryExceptionNode.removeMixin(String)
public boolean isNodeType(QName ntName)
throws RepositoryException
Node.isNodeType(String) except that it takes a
QName instead of a String.
ntName - name of node type
true if this node is of the specified node type;
otherwise false
RepositoryExceptionpublic UUID internalGetUUID()
protected void checkSetProperty()
throws VersionException,
LockException,
RepositoryException
setProperty() methods. The checks performed are:
Property.setValue() methods.
VersionException - if this node is not checked-out
LockException - if this node is locked by somebody else
RepositoryException - if another error occursNode.setProperty(java.lang.String, javax.jcr.Value)
protected Property internalSetProperty(QName name,
InternalValue value)
throws ValueFormatException,
RepositoryException
name - value -
ValueFormatException
RepositoryException
protected Property internalSetProperty(QName name,
InternalValue[] values)
throws ValueFormatException,
RepositoryException
name - values -
ValueFormatException
RepositoryException
protected Property internalSetProperty(QName name,
InternalValue[] values,
int type)
throws ValueFormatException,
RepositoryException
name - values - type -
ValueFormatException
RepositoryException
public NodeImpl getNode(QName name)
throws ItemNotFoundException,
RepositoryException
this node with the specified
name.
name - The qualified name of the child node to retrieve.
name.
ItemNotFoundException - If no child node exists with the
specified name.
RepositoryException - If another error occurs.
public NodeImpl getNode(QName name,
int index)
throws ItemNotFoundException,
RepositoryException
this node with the specified
name.
name - The qualified name of the child node to retrieve.index - The index of the child node to retrieve (in the case of same-name siblings).
name.
ItemNotFoundException - If no child node exists with the
specified name.
RepositoryException - If another error occurs.
public boolean hasNode(QName name)
throws RepositoryException
name exists.
Returns true if the child node exists and false
otherwise.
name - The qualified name of the child node.
true if the child node exists; false otherwise.
RepositoryException - If an unspecified error occurs.
public boolean hasNode(QName name,
int index)
throws RepositoryException
name exists.
Returns true if the child node exists and false
otherwise.
name - The qualified name of the child node.index - The index of the child node (in the case of same-name siblings).
true if the child node exists; false otherwise.
RepositoryException - If an unspecified error occurs.
public PropertyImpl getProperty(QName name)
throws ItemNotFoundException,
RepositoryException
this node with the specified
name.
name - The qualified name of the property to retrieve.
name.
ItemNotFoundException - If no property exists with the
specified name.
RepositoryException - If another error occurs.
public boolean hasProperty(QName name)
throws RepositoryException
name exists.
Returns true if the property exists and false
otherwise.
name - The qualified name of the property.
true if the property exists; false otherwise.
RepositoryException - If an unspecified error occurs.
public NodeImpl addNode(QName nodeName,
QName nodeTypeName,
UUID uuid)
throws ItemExistsException,
NoSuchNodeTypeException,
VersionException,
ConstraintViolationException,
LockException,
RepositoryException
Node.addNode(String, String) except that
this method takes QName arguments instead of
Strings and has an additional uuid argument.
Important Notice: This method is for internal use only! Passing
already assigned uuid's might lead to unexpected results and
data corruption in the worst case.
nodeName - name of the new nodenodeTypeName - name of the new node's node type or null
if it should be determined automaticallyuuid - uuid of the new node or null if a new
uuid should be assigned
ItemExistsException
NoSuchNodeTypeException
VersionException
ConstraintViolationException
LockException
RepositoryException
public PropertyImpl setProperty(QName name,
Value[] values)
throws ValueFormatException,
VersionException,
LockException,
ConstraintViolationException,
RepositoryException
Node.setProperty(String, Value[]) except that
this method takes a QName name argument instead of a
String.
name - values -
ValueFormatException
VersionException
LockException
ConstraintViolationException
RepositoryException
public PropertyImpl setProperty(QName name,
Value[] values,
int type)
throws ValueFormatException,
VersionException,
LockException,
ConstraintViolationException,
RepositoryException
Node.setProperty(String, Value[], int) except
that this method takes a QName name argument instead of a
String.
name - values - type -
ValueFormatException
VersionException
LockException
ConstraintViolationException
RepositoryException
public PropertyImpl setProperty(QName name,
Value value)
throws ValueFormatException,
VersionException,
LockException,
ConstraintViolationException,
RepositoryException
Node.setProperty(String, Value) except that
this method takes a QName name argument instead of a
String.
name - value -
ValueFormatException
VersionException
LockException
ConstraintViolationException
RepositoryException
public QName getQName()
throws RepositoryException
ItemImplItem.getName() except that
this method returns a QName instead of a
String.
getQName in class ItemImplQName
RepositoryException - if an error occurs.ItemImpl.getQName()public NodeId getNodeId()
Node.
Node
public void orderBefore(Path.PathElement srcName,
Path.PathElement dstName)
throws UnsupportedRepositoryOperationException,
VersionException,
ConstraintViolationException,
ItemNotFoundException,
LockException,
RepositoryException
Node.orderBefore(String, String) except that
this method takes a Path.PathElement arguments instead of
Strings.
srcName - dstName -
UnsupportedRepositoryOperationException
VersionException
ConstraintViolationException
ItemNotFoundException
LockException
RepositoryExceptionpublic boolean isNode()
isNode in interface ItemisNode in class ItemImpl
public String getName()
throws RepositoryException
getName in interface ItemgetName in class ItemImplRepositoryException
public void accept(ItemVisitor visitor)
throws RepositoryException
accept in interface Itemaccept in class ItemImplRepositoryException
public Node getParent()
throws ItemNotFoundException,
AccessDeniedException,
RepositoryException
getParent in interface ItemgetParent in class ItemImplItemNotFoundException
AccessDeniedException
RepositoryException
public Node addNode(String relPath)
throws ItemExistsException,
PathNotFoundException,
VersionException,
ConstraintViolationException,
LockException,
RepositoryException
addNode in interface NodeItemExistsException
PathNotFoundException
VersionException
ConstraintViolationException
LockException
RepositoryException
public Node addNode(String relPath,
String nodeTypeName)
throws ItemExistsException,
PathNotFoundException,
NoSuchNodeTypeException,
VersionException,
ConstraintViolationException,
LockException,
RepositoryException
addNode in interface NodeItemExistsException
PathNotFoundException
NoSuchNodeTypeException
VersionException
ConstraintViolationException
LockException
RepositoryException
public void orderBefore(String srcName,
String destName)
throws UnsupportedRepositoryOperationException,
VersionException,
ConstraintViolationException,
ItemNotFoundException,
LockException,
RepositoryException
orderBefore in interface NodeUnsupportedRepositoryOperationException
VersionException
ConstraintViolationException
ItemNotFoundException
LockException
RepositoryException
public Property setProperty(String name,
Value[] values)
throws ValueFormatException,
VersionException,
LockException,
ConstraintViolationException,
RepositoryException
setProperty in interface NodeValueFormatException
VersionException
LockException
ConstraintViolationException
RepositoryException
public Property setProperty(String name,
Value[] values,
int type)
throws ValueFormatException,
VersionException,
LockException,
ConstraintViolationException,
RepositoryException
setProperty in interface NodeValueFormatException
VersionException
LockException
ConstraintViolationException
RepositoryException
public Property setProperty(String name,
String[] values)
throws ValueFormatException,
VersionException,
LockException,
ConstraintViolationException,
RepositoryException
setProperty in interface NodeValueFormatException
VersionException
LockException
ConstraintViolationException
RepositoryException
public Property setProperty(String name,
String[] values,
int type)
throws ValueFormatException,
VersionException,
LockException,
ConstraintViolationException,
RepositoryException
setProperty in interface NodeValueFormatException
VersionException
LockException
ConstraintViolationException
RepositoryException
public Property setProperty(String name,
String value)
throws ValueFormatException,
VersionException,
LockException,
ConstraintViolationException,
RepositoryException
setProperty in interface NodeValueFormatException
VersionException
LockException
ConstraintViolationException
RepositoryException
public Property setProperty(String name,
String value,
int type)
throws ValueFormatException,
VersionException,
LockException,
ConstraintViolationException,
RepositoryException
setProperty in interface NodeValueFormatException
VersionException
LockException
ConstraintViolationException
RepositoryException
public Property setProperty(String name,
Value value,
int type)
throws ValueFormatException,
VersionException,
LockException,
ConstraintViolationException,
RepositoryException
setProperty in interface NodeValueFormatException
VersionException
LockException
ConstraintViolationException
RepositoryException
public Property setProperty(String name,
Value value)
throws ValueFormatException,
VersionException,
LockException,
ConstraintViolationException,
RepositoryException
setProperty in interface NodeValueFormatException
VersionException
LockException
ConstraintViolationException
RepositoryException
public Property setProperty(String name,
InputStream value)
throws ValueFormatException,
VersionException,
LockException,
ConstraintViolationException,
RepositoryException
setProperty in interface NodeValueFormatException
VersionException
LockException
ConstraintViolationException
RepositoryException
public Property setProperty(String name,
boolean value)
throws ValueFormatException,
VersionException,
LockException,
ConstraintViolationException,
RepositoryException
setProperty in interface NodeValueFormatException
VersionException
LockException
ConstraintViolationException
RepositoryException
public Property setProperty(String name,
double value)
throws ValueFormatException,
VersionException,
LockException,
ConstraintViolationException,
RepositoryException
setProperty in interface NodeValueFormatException
VersionException
LockException
ConstraintViolationException
RepositoryException
public Property setProperty(String name,
long value)
throws ValueFormatException,
VersionException,
LockException,
ConstraintViolationException,
RepositoryException
setProperty in interface NodeValueFormatException
VersionException
LockException
ConstraintViolationException
RepositoryException
public Property setProperty(String name,
Calendar value)
throws ValueFormatException,
VersionException,
LockException,
ConstraintViolationException,
RepositoryException
setProperty in interface NodeValueFormatException
VersionException
LockException
ConstraintViolationException
RepositoryException
public Property setProperty(String name,
Node value)
throws ValueFormatException,
VersionException,
LockException,
ConstraintViolationException,
RepositoryException
setProperty in interface NodeValueFormatException
VersionException
LockException
ConstraintViolationException
RepositoryException
public Node getNode(String relPath)
throws PathNotFoundException,
RepositoryException
getNode in interface NodePathNotFoundException
RepositoryException
public NodeIterator getNodes()
throws RepositoryException
getNodes in interface NodeRepositoryException
public PropertyIterator getProperties()
throws RepositoryException
getProperties in interface NodeRepositoryException
public Property getProperty(String relPath)
throws PathNotFoundException,
RepositoryException
getProperty in interface NodePathNotFoundException
RepositoryException
public boolean hasNode(String relPath)
throws RepositoryException
hasNode in interface NodeRepositoryException
public boolean hasNodes()
throws RepositoryException
hasNodes in interface NodeRepositoryException
public boolean hasProperties()
throws RepositoryException
hasProperties in interface NodeRepositoryException
public boolean isNodeType(String nodeTypeName)
throws RepositoryException
isNodeType in interface NodeRepositoryException
public NodeType getPrimaryNodeType()
throws RepositoryException
getPrimaryNodeType in interface NodeRepositoryException
public NodeType[] getMixinNodeTypes()
throws RepositoryException
getMixinNodeTypes in interface NodeRepositoryException
public void addMixin(String mixinName)
throws NoSuchNodeTypeException,
VersionException,
ConstraintViolationException,
LockException,
RepositoryException
addMixin in interface NodeNoSuchNodeTypeException
VersionException
ConstraintViolationException
LockException
RepositoryException
public void removeMixin(String mixinName)
throws NoSuchNodeTypeException,
VersionException,
ConstraintViolationException,
LockException,
RepositoryException
removeMixin in interface NodeNoSuchNodeTypeException
VersionException
ConstraintViolationException
LockException
RepositoryException
public boolean canAddMixin(String mixinName)
throws NoSuchNodeTypeException,
RepositoryException
canAddMixin in interface NodeNoSuchNodeTypeException
RepositoryException
public boolean hasProperty(String relPath)
throws RepositoryException
hasProperty in interface NodeRepositoryException
public PropertyIterator getReferences()
throws RepositoryException
getReferences in interface NodeRepositoryException
public NodeDefinition getDefinition()
throws RepositoryException
getDefinition in interface NodeRepositoryException
public NodeIterator getNodes(String namePattern)
throws RepositoryException
getNodes in interface NodeRepositoryException
public PropertyIterator getProperties(String namePattern)
throws RepositoryException
getProperties in interface NodeRepositoryException
public Item getPrimaryItem()
throws ItemNotFoundException,
RepositoryException
getPrimaryItem in interface NodeItemNotFoundException
RepositoryException
public String getUUID()
throws UnsupportedRepositoryOperationException,
RepositoryException
getUUID in interface NodeUnsupportedRepositoryOperationException
RepositoryException
public String getCorrespondingNodePath(String workspaceName)
throws ItemNotFoundException,
NoSuchWorkspaceException,
AccessDeniedException,
RepositoryException
getCorrespondingNodePath in interface NodeItemNotFoundException
NoSuchWorkspaceException
AccessDeniedException
RepositoryException
public int getIndex()
throws RepositoryException
getIndex in interface NodeRepositoryException
public Version checkin()
throws VersionException,
UnsupportedRepositoryOperationException,
InvalidItemStateException,
LockException,
RepositoryException
checkin in interface NodeVersionException
UnsupportedRepositoryOperationException
InvalidItemStateException
LockException
RepositoryException
public void checkout()
throws UnsupportedRepositoryOperationException,
LockException,
RepositoryException
checkout in interface NodeUnsupportedRepositoryOperationException
LockException
RepositoryException
public void update(String srcWorkspaceName)
throws NoSuchWorkspaceException,
AccessDeniedException,
LockException,
InvalidItemStateException,
RepositoryException
update in interface NodeNoSuchWorkspaceException
AccessDeniedException
LockException
InvalidItemStateException
RepositoryException
public NodeIterator merge(String srcWorkspace,
boolean bestEffort)
throws NoSuchWorkspaceException,
AccessDeniedException,
VersionException,
LockException,
InvalidItemStateException,
RepositoryException
merge in interface NodeNoSuchWorkspaceException
AccessDeniedException
VersionException
LockException
InvalidItemStateException
RepositoryException
public void cancelMerge(Version version)
throws VersionException,
InvalidItemStateException,
UnsupportedRepositoryOperationException,
RepositoryException
cancelMerge in interface NodeVersionException
InvalidItemStateException
UnsupportedRepositoryOperationException
RepositoryException
public void doneMerge(Version version)
throws VersionException,
InvalidItemStateException,
UnsupportedRepositoryOperationException,
RepositoryException
doneMerge in interface NodeVersionException
InvalidItemStateException
UnsupportedRepositoryOperationException
RepositoryException
public boolean isCheckedOut()
throws RepositoryException
isCheckedOut in interface NodeRepositoryException
public void restore(String versionName,
boolean removeExisting)
throws VersionException,
ItemExistsException,
UnsupportedRepositoryOperationException,
LockException,
InvalidItemStateException,
RepositoryException
restore in interface NodeVersionException
ItemExistsException
UnsupportedRepositoryOperationException
LockException
InvalidItemStateException
RepositoryException
public void restore(Version version,
boolean removeExisting)
throws VersionException,
ItemExistsException,
UnsupportedRepositoryOperationException,
LockException,
RepositoryException
restore in interface NodeVersionException
ItemExistsException
UnsupportedRepositoryOperationException
LockException
RepositoryException
public void restore(Version version,
String relPath,
boolean removeExisting)
throws PathNotFoundException,
ItemExistsException,
VersionException,
ConstraintViolationException,
UnsupportedRepositoryOperationException,
LockException,
InvalidItemStateException,
RepositoryException
restore in interface NodePathNotFoundException
ItemExistsException
VersionException
ConstraintViolationException
UnsupportedRepositoryOperationException
LockException
InvalidItemStateException
RepositoryException
public void restoreByLabel(String versionLabel,
boolean removeExisting)
throws VersionException,
ItemExistsException,
UnsupportedRepositoryOperationException,
LockException,
InvalidItemStateException,
RepositoryException
restoreByLabel in interface NodeVersionException
ItemExistsException
UnsupportedRepositoryOperationException
LockException
InvalidItemStateException
RepositoryException
public VersionHistory getVersionHistory()
throws UnsupportedRepositoryOperationException,
RepositoryException
getVersionHistory in interface NodeUnsupportedRepositoryOperationException
RepositoryException
public Version getBaseVersion()
throws UnsupportedRepositoryOperationException,
RepositoryException
getBaseVersion in interface NodeUnsupportedRepositoryOperationException
RepositoryException
protected boolean internalIsCheckedOut()
throws RepositoryException
RepositoryExceptionNode.isCheckedOut()
protected Version[] internalRestore(VersionImpl version,
VersionSelector vsel,
boolean removeExisting)
throws RepositoryException
version - vsel - the version selector that will select the correct version for
OPV=Version childnodes.removeExisting -
RepositoryException
protected void internalCopyPropertyFrom(PropertyImpl prop)
throws RepositoryException
prop -
RepositoryException
public Lock lock(boolean isDeep,
boolean isSessionScoped)
throws UnsupportedRepositoryOperationException,
LockException,
AccessDeniedException,
InvalidItemStateException,
RepositoryException
lock in interface NodeUnsupportedRepositoryOperationException
LockException
AccessDeniedException
InvalidItemStateException
RepositoryException
public Lock getLock()
throws UnsupportedRepositoryOperationException,
LockException,
AccessDeniedException,
RepositoryException
getLock in interface NodeUnsupportedRepositoryOperationException
LockException
AccessDeniedException
RepositoryException
public void unlock()
throws UnsupportedRepositoryOperationException,
LockException,
AccessDeniedException,
InvalidItemStateException,
RepositoryException
unlock in interface NodeUnsupportedRepositoryOperationException
LockException
AccessDeniedException
InvalidItemStateException
RepositoryException
public boolean holdsLock()
throws RepositoryException
holdsLock in interface NodeRepositoryException
public boolean isLocked()
throws RepositoryException
isLocked in interface NodeRepositoryException
protected void checkLock()
throws LockException,
RepositoryException
LockException - if this node is locked by somebody else
RepositoryException - if some other error occurs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||