|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.jackrabbit.base.BaseItem
org.apache.jackrabbit.base.BaseNode
Node base class.
| Constructor Summary | |
protected |
BaseNode()
Protected constructor. |
| Method Summary | |
void |
accept(ItemVisitor visitor)
Implemented by calling visitor.visit(this). |
void |
addMixin(String mixinName)
Not implemented. |
Node |
addNode(String relPath)
Not implemented. |
Node |
addNode(String relPath,
String primaryNodeTypeName)
Implemented by calling addNode(relPath).setProperty(prefix + ":primaryType", primaryNodeTypeName)
and returning the created node. |
boolean |
canAddMixin(String mixinName)
Not implemented. |
void |
cancelMerge(Version version)
Not implemented. |
Version |
checkin()
Not implemented. |
void |
checkout()
Not implemented. |
void |
doneMerge(Version version)
Not implemented. |
Version |
getBaseVersion()
Not implemented. |
String |
getCorrespondingNodePath(String workspaceName)
Not implemented. |
NodeDefinition |
getDefinition()
Not implemented. |
int |
getIndex()
Always returns 1. |
Lock |
getLock()
Not implemented. |
NodeType[] |
getMixinNodeTypes()
Not implemented. |
Node |
getNode(String relPath)
Implemented by calling Path.resolve(this, relPath) from
the Path utility class. |
NodeIterator |
getNodes()
Not implemented. |
NodeIterator |
getNodes(String namePattern)
Not implemented. |
String |
getPath()
Implemented by calling super.getPath()
(see BaseItem.getPath() and appending
"[" + getIndex() + "]" if
getDefinition().allowsSameNameSiblings() returns
true. |
Item |
getPrimaryItem()
Not implemented. |
NodeType |
getPrimaryNodeType()
Not implemented. |
PropertyIterator |
getProperties()
Not implemented. |
PropertyIterator |
getProperties(String namePattern)
Not implemented. |
Property |
getProperty(String relPath)
Implemented by calling Path.resolve(this, relPath) from
the Path utility class. |
PropertyIterator |
getReferences()
Not implemented. |
String |
getUUID()
Not implemented. |
VersionHistory |
getVersionHistory()
Not implemented. |
boolean |
hasNode(String relPath)
Implemented by calling getNode(relPath) and returning
true unless a
PathNotFoundException is thrown. |
boolean |
hasNodes()
Implemented by calling getNodes().hasNext(). |
boolean |
hasProperties()
Implemented by calling getProperties().hasNext(). |
boolean |
hasProperty(String relPath)
Implemented by calling getProperty(relPath) and returning
true unless a
PathNotFoundException is thrown. |
boolean |
holdsLock()
Not implemented. |
boolean |
isCheckedOut()
Not implemented. |
boolean |
isLocked()
Not implemented. |
boolean |
isNode()
Always returns true. |
boolean |
isNodeType(String nodeTypeName)
Implemented by calling type.isNodeType(nodeTypeName)
for the primary type and all mixin types of this node. |
Lock |
lock(boolean isDeep,
boolean isSessionScoped)
Not implemented. |
NodeIterator |
merge(String srcWorkspace,
boolean bestEffort)
Not implemented. |
void |
orderBefore(String srcChildRelPath,
String destChildRelPath)
Not implemented. |
void |
removeMixin(String mixinName)
Not implemented. |
void |
restore(String versionName,
boolean removeExisting)
Not implemented. |
void |
restore(Version version,
boolean removeExisting)
Not implemented. |
void |
restore(Version version,
String relPath,
boolean removeExisting)
Not implemented. |
void |
restoreByLabel(String versionLabel,
boolean removeExisting)
Not implemented. |
Property |
setProperty(String name,
boolean value)
Implemented by calling setProperty(name, getSession().getValueFactory().createValue(value). |
Property |
setProperty(String name,
Calendar value)
Implemented by calling setProperty(name, getSession().getValueFactory().createValue(value). |
Property |
setProperty(String name,
double value)
Implemented by calling setProperty(name, getSession().getValueFactory().createValue(value). |
Property |
setProperty(String name,
InputStream value)
Implemented by calling setProperty(name, getSession().getValueFactory().createValue(value). |
Property |
setProperty(String name,
long value)
Implemented by calling setProperty(name, getSession().getValueFactory().createValue(value). |
Property |
setProperty(String name,
Node value)
Implemented by calling setProperty(name, getSession().getValueFactory().createValue(value). |
Property |
setProperty(String name,
String value)
Implemented by calling setProperty(name, getSession().getValueFactory().createValue(value). |
Property |
setProperty(String name,
String[] values)
Implemented by calling setProperty(name, stringValues)
with an array of values that were created from the given strings by
getSession().getValueFactory().createValue(values[i])). |
Property |
setProperty(String name,
String[] values,
int type)
Implemented by calling setProperty(name, stringValues, type)
with an array of Values that were created from the given strings by
getSession().getValueFactory().createValue(values[i])). |
Property |
setProperty(String name,
String value,
int type)
Implemented by calling setProperty(name, getSession().getValueFactory().createValue(value, type). |
Property |
setProperty(String name,
Value value)
Implemented by calling getProperty(name).setValue(value)
and returning the retrieved property. |
Property |
setProperty(String name,
Value[] values)
Implemented by calling getProperty(name).setValue(values)
and returning the retrieved property. |
Property |
setProperty(String name,
Value[] values,
int type)
Implemented by calling setProperty(name, convertedValues)
with an array of values that were converted from the given values to
the given type. |
Property |
setProperty(String name,
Value value,
int type)
Implemented by calling setProperty(name, value) after converting the given
value to the given type. |
void |
unlock()
Not implemented. |
void |
update(String srcWorkspaceName)
Not implemented. |
| Methods inherited from class org.apache.jackrabbit.base.BaseItem |
getAncestor, getDepth, getName, getParent, getSession, isModified, isNew, isSame, refresh, remove, save |
| 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, getSession, isModified, isNew, isSame, refresh, remove, save |
| Constructor Detail |
protected BaseNode()
| Method Detail |
public String getPath()
throws RepositoryException
super.getPath()
(see BaseItem.getPath() and appending
"[" + getIndex() + "]" if
getDefinition().allowsSameNameSiblings() returns
true.
Implemented by calling getParent().getPath() and
appending getName() to the returned parent path.
Returns the root path / if an
ItemNotFoundException is thrown by
getParent() (indicating that this is the root node).
getPath in interface ItemgetPath in class BaseItemRepositoryException
public void accept(ItemVisitor visitor)
throws RepositoryException
visitor.visit(this).
Does nothing.
accept in interface Itemaccept in class BaseItemRepositoryExceptionpublic boolean isNode()
true. Always returns false.
isNode in interface ItemisNode in class BaseItem
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 primaryNodeTypeName)
throws ItemExistsException,
PathNotFoundException,
NoSuchNodeTypeException,
LockException,
VersionException,
ConstraintViolationException,
RepositoryException
addNode(relPath).setProperty(prefix + ":primaryType", primaryNodeTypeName)
and returning the created node. The prefix is acquired by calling
getSession().getNamespacePrefix("http://www.jcp.org/jcr/1.0").
addNode in interface NodeItemExistsException
PathNotFoundException
NoSuchNodeTypeException
LockException
VersionException
ConstraintViolationException
RepositoryException
public void orderBefore(String srcChildRelPath,
String destChildRelPath)
throws UnsupportedRepositoryOperationException,
VersionException,
ConstraintViolationException,
ItemNotFoundException,
LockException,
RepositoryException
orderBefore in interface NodeUnsupportedRepositoryOperationException
VersionException
ConstraintViolationException
ItemNotFoundException
LockException
RepositoryException
public Property setProperty(String name,
Value value)
throws ValueFormatException,
VersionException,
LockException,
RepositoryException
getProperty(name).setValue(value)
and returning the retrieved property. Adding new properties is not
implemented.
setProperty in interface NodeValueFormatException
VersionException
LockException
RepositoryException
public Property setProperty(String name,
Value value,
int type)
throws ValueFormatException,
VersionException,
LockException,
RepositoryException
setProperty(name, value) after converting the given
value to the given type.
setProperty in interface NodeValueFormatException
VersionException
LockException
RepositoryException
public Property setProperty(String name,
Value[] values)
throws ValueFormatException,
VersionException,
LockException,
RepositoryException
getProperty(name).setValue(values)
and returning the retrieved property. Adding new properties is not
implemented.
setProperty in interface NodeValueFormatException
VersionException
LockException
RepositoryException
public Property setProperty(String name,
Value[] values,
int type)
throws ValueFormatException,
VersionException,
LockException,
RepositoryException
setProperty(name, convertedValues)
with an array of values that were converted from the given values to
the given type.
setProperty in interface NodeValueFormatException
VersionException
LockException
RepositoryException
public Property setProperty(String name,
String[] values)
throws ValueFormatException,
VersionException,
LockException,
RepositoryException
setProperty(name, stringValues)
with an array of values that were created from the given strings by
getSession().getValueFactory().createValue(values[i])).
setProperty in interface NodeValueFormatException
VersionException
LockException
RepositoryException
public Property setProperty(String name,
String[] values,
int type)
throws ValueFormatException,
VersionException,
LockException,
RepositoryException
setProperty(name, stringValues, type)
with an array of Values that were created from the given strings by
getSession().getValueFactory().createValue(values[i])).
setProperty in interface NodeValueFormatException
VersionException
LockException
RepositoryException
public Property setProperty(String name,
String value)
throws ValueFormatException,
VersionException,
LockException,
RepositoryException
setProperty(name, getSession().getValueFactory().createValue(value).
setProperty in interface NodeValueFormatException
VersionException
LockException
RepositoryException
public Property setProperty(String name,
String value,
int type)
throws ValueFormatException,
VersionException,
LockException,
RepositoryException
setProperty(name, getSession().getValueFactory().createValue(value, type).
setProperty in interface NodeValueFormatException
VersionException
LockException
RepositoryException
public Property setProperty(String name,
InputStream value)
throws ValueFormatException,
VersionException,
LockException,
RepositoryException
setProperty(name, getSession().getValueFactory().createValue(value).
setProperty in interface NodeValueFormatException
VersionException
LockException
RepositoryException
public Property setProperty(String name,
boolean value)
throws ValueFormatException,
VersionException,
LockException,
RepositoryException
setProperty(name, getSession().getValueFactory().createValue(value).
setProperty in interface NodeValueFormatException
VersionException
LockException
RepositoryException
public Property setProperty(String name,
double value)
throws ValueFormatException,
VersionException,
LockException,
RepositoryException
setProperty(name, getSession().getValueFactory().createValue(value).
setProperty in interface NodeValueFormatException
VersionException
LockException
RepositoryException
public Property setProperty(String name,
long value)
throws ValueFormatException,
VersionException,
LockException,
RepositoryException
setProperty(name, getSession().getValueFactory().createValue(value).
setProperty in interface NodeValueFormatException
VersionException
LockException
RepositoryException
public Property setProperty(String name,
Calendar value)
throws ValueFormatException,
VersionException,
LockException,
RepositoryException
setProperty(name, getSession().getValueFactory().createValue(value).
setProperty in interface NodeValueFormatException
VersionException
LockException
RepositoryException
public Property setProperty(String name,
Node value)
throws ValueFormatException,
VersionException,
LockException,
RepositoryException
setProperty(name, getSession().getValueFactory().createValue(value).
setProperty in interface NodeValueFormatException
VersionException
LockException
RepositoryException
public Node getNode(String relPath)
throws PathNotFoundException,
RepositoryException
Path.resolve(this, relPath) from
the Path utility class. If the given path resolves to
a property, then a PathNotFoundException
is thrown.
getNode in interface NodePathNotFoundException
RepositoryException
public NodeIterator getNodes()
throws RepositoryException
getNodes in interface NodeRepositoryException
public NodeIterator getNodes(String namePattern)
throws RepositoryException
getNodes in interface NodeRepositoryException
public Property getProperty(String relPath)
throws PathNotFoundException,
RepositoryException
Path.resolve(this, relPath) from
the Path utility class. If the given path resolves to
a node, then a PathNotFoundException
is thrown.
getProperty in interface NodePathNotFoundException
RepositoryException
public PropertyIterator getProperties()
throws RepositoryException
getProperties 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 int getIndex()
throws RepositoryException
1.
getIndex in interface NodeRepositoryException
public PropertyIterator getReferences()
throws RepositoryException
getReferences in interface NodeRepositoryException
public boolean hasNode(String relPath)
throws RepositoryException
getNode(relPath) and returning
true unless a
PathNotFoundException is thrown.
hasNode in interface NodeRepositoryException
public boolean hasProperty(String relPath)
throws RepositoryException
getProperty(relPath) and returning
true unless a
PathNotFoundException is thrown.
hasProperty in interface NodeRepositoryException
public boolean hasNodes()
throws RepositoryException
getNodes().hasNext().
hasNodes in interface NodeRepositoryException
public boolean hasProperties()
throws RepositoryException
getProperties().hasNext().
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 nodeTypeName)
throws RepositoryException
type.isNodeType(nodeTypeName)
for the primary type and all mixin types of this node. Returns
true if any of these calls return true.
Returns false otherwise.
isNodeType 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 RepositoryException
canAddMixin in interface NodeRepositoryException
public NodeDefinition getDefinition()
throws RepositoryException
getDefinition 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 doneMerge(Version version)
throws VersionException,
InvalidItemStateException,
UnsupportedRepositoryOperationException,
RepositoryException
doneMerge in interface NodeVersionException
InvalidItemStateException
UnsupportedRepositoryOperationException
RepositoryException
public void cancelMerge(Version version)
throws VersionException,
InvalidItemStateException,
UnsupportedRepositoryOperationException,
RepositoryException
cancelMerge in interface NodeVersionException
InvalidItemStateException
UnsupportedRepositoryOperationException
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 UnsupportedRepositoryOperationException,
NoSuchWorkspaceException,
AccessDeniedException,
VersionException,
LockException,
InvalidItemStateException,
RepositoryException
merge in interface NodeUnsupportedRepositoryOperationException
NoSuchWorkspaceException
AccessDeniedException
VersionException
LockException
InvalidItemStateException
RepositoryException
public String getCorrespondingNodePath(String workspaceName)
throws ItemNotFoundException,
NoSuchWorkspaceException,
AccessDeniedException,
RepositoryException
getCorrespondingNodePath in interface NodeItemNotFoundException
NoSuchWorkspaceException
AccessDeniedException
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
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
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||