org.apache.jackrabbit.jcr2spi
Class NodeImpl
java.lang.Object
org.apache.jackrabbit.jcr2spi.ItemImpl
org.apache.jackrabbit.jcr2spi.NodeImpl
- All Implemented Interfaces:
- Item, Node, ItemStateLifeCycleListener
- Direct Known Subclasses:
- VersionHistoryImpl, VersionImpl
public class NodeImpl
- extends ItemImpl
- implements Node
NodeImpl...
|
Method Summary |
void |
accept(ItemVisitor visitor)
Implementation of Item.accept(javax.jcr.ItemVisitor) for nodes. |
void |
addMixin(java.lang.String mixinName)
|
Node |
addNode(java.lang.String relPath)
|
Node |
addNode(java.lang.String relPath,
java.lang.String primaryNodeTypeName)
|
boolean |
canAddMixin(java.lang.String mixinName)
|
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 workspaceName)
|
NodeDefinition |
getDefinition()
|
java.lang.String |
getIdentifier()
|
int |
getIndex()
|
Lock |
getLock()
|
NodeType[] |
getMixinNodeTypes()
|
java.lang.String |
getName()
|
protected Node |
getNode(Name nodeName,
int index)
|
Node |
getNode(java.lang.String relPath)
|
NodeIterator |
getNodes()
|
NodeIterator |
getNodes(java.lang.String namePattern)
|
NodeIterator |
getNodes(java.lang.String[] nameGlobs)
|
Item |
getPrimaryItem()
|
NodeType |
getPrimaryNodeType()
|
PropertyIterator |
getProperties()
|
PropertyIterator |
getProperties(java.lang.String namePattern)
|
PropertyIterator |
getProperties(java.lang.String[] nameGlobs)
|
protected Property |
getProperty(Name qName)
|
Property |
getProperty(java.lang.String relPath)
|
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 relPath)
|
boolean |
hasNodes()
|
boolean |
hasProperties()
|
boolean |
hasProperty(java.lang.String relPath)
|
boolean |
holdsLock()
|
boolean |
isCheckedOut()
|
boolean |
isLocked()
|
boolean |
isNode()
Returns true |
boolean |
isNodeType(java.lang.String nodeTypeName)
|
Lock |
lock(boolean isDeep,
boolean isSessionScoped)
|
Lock |
lock(boolean isDeep,
boolean isSessionScoped,
long timeoutHint,
java.lang.String ownerHint)
|
NodeIterator |
merge(java.lang.String srcWorkspace,
boolean bestEffort)
|
NodeIterator |
merge(java.lang.String srcWorkspace,
boolean bestEffort,
boolean isShallow)
TODO: Issue 728 of the pfd... |
void |
orderBefore(java.lang.String srcChildRelPath,
java.lang.String destChildRelPath)
|
void |
removeMixin(java.lang.String mixinName)
|
void |
removeShare()
|
void |
removeSharedSet()
|
void |
restore(java.lang.String versionName,
boolean removeExisting)
|
void |
restore(Version version,
boolean removeExisting)
|
void |
restore(Version version,
java.lang.String relPath,
boolean removeExisting)
|
void |
restoreByLabel(java.lang.String versionLabel,
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[] values)
|
Property |
setProperty(java.lang.String name,
java.lang.String[] values,
int type)
|
Property |
setProperty(java.lang.String name,
java.lang.String value,
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 srcWorkspaceName)
|
| Methods inherited from class org.apache.jackrabbit.jcr2spi.ItemImpl |
checkIsWritable, checkStatus, getAncestor, getDepth, getItemManager, getItemState, getParent, getPath, getSession, isModified, isNew, isSame, isWritable, refresh, remove, save, statusChanged |
| 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, getParent, getPath, getSession, isModified, isNew, isSame, refresh, remove, save |
NodeImpl
protected NodeImpl(SessionImpl session,
NodeState state,
ItemLifeCycleListener[] listeners)
getName
public java.lang.String getName()
throws RepositoryException
- Specified by:
getName in interface Item- Specified by:
getName in class ItemImpl
- Throws:
RepositoryException- See Also:
Item.getName()
accept
public void accept(ItemVisitor visitor)
throws RepositoryException
- Implementation of
Item.accept(javax.jcr.ItemVisitor) for nodes.
- Specified by:
accept in interface Item- Specified by:
accept in class ItemImpl
- Parameters:
visitor -
- Throws:
RepositoryException- See Also:
Item.accept(javax.jcr.ItemVisitor)
isNode
public boolean isNode()
- Returns true
- Specified by:
isNode in interface Item- Specified by:
isNode in class ItemImpl
- Returns:
- true
- See Also:
Item.isNode()
addNode
public Node addNode(java.lang.String relPath)
throws ItemExistsException,
PathNotFoundException,
VersionException,
ConstraintViolationException,
LockException,
RepositoryException
- Specified by:
addNode in interface Node
- Throws:
ItemExistsException
PathNotFoundException
VersionException
ConstraintViolationException
LockException
RepositoryException- See Also:
Node.addNode(String)
addNode
public Node addNode(java.lang.String relPath,
java.lang.String primaryNodeTypeName)
throws ItemExistsException,
PathNotFoundException,
NoSuchNodeTypeException,
LockException,
VersionException,
ConstraintViolationException,
RepositoryException
- Specified by:
addNode in interface Node
- Throws:
ItemExistsException
PathNotFoundException
NoSuchNodeTypeException
LockException
VersionException
ConstraintViolationException
RepositoryException- See Also:
Node.addNode(String, String)
orderBefore
public void orderBefore(java.lang.String srcChildRelPath,
java.lang.String destChildRelPath)
throws UnsupportedRepositoryOperationException,
VersionException,
ConstraintViolationException,
ItemNotFoundException,
LockException,
RepositoryException
- Specified by:
orderBefore in interface Node
- Throws:
UnsupportedRepositoryOperationException
VersionException
ConstraintViolationException
ItemNotFoundException
LockException
RepositoryException- See Also:
Node.orderBefore(String, String)
setProperty
public Property setProperty(java.lang.String name,
Value value)
throws ValueFormatException,
VersionException,
LockException,
ConstraintViolationException,
RepositoryException
- Specified by:
setProperty in interface Node
- Throws:
ValueFormatException
VersionException
LockException
ConstraintViolationException
RepositoryException- See Also:
Node.setProperty(String, Value)
setProperty
public Property setProperty(java.lang.String name,
Value value,
int type)
throws ValueFormatException,
VersionException,
LockException,
ConstraintViolationException,
RepositoryException
- Specified by:
setProperty in interface Node
- Throws:
ValueFormatException
VersionException
LockException
ConstraintViolationException
RepositoryException- See Also:
Node.setProperty(String, javax.jcr.Value, int)
setProperty
public Property setProperty(java.lang.String name,
Value[] values)
throws ValueFormatException,
VersionException,
LockException,
ConstraintViolationException,
RepositoryException
- Specified by:
setProperty in interface Node
- Throws:
ValueFormatException
VersionException
LockException
ConstraintViolationException
RepositoryException- See Also:
Node.setProperty(String, Value[])
setProperty
public Property setProperty(java.lang.String name,
Value[] values,
int type)
throws ValueFormatException,
VersionException,
LockException,
ConstraintViolationException,
RepositoryException
- Specified by:
setProperty in interface Node
- Throws:
ValueFormatException
VersionException
LockException
ConstraintViolationException
RepositoryException- See Also:
Node.setProperty(String, Value[], int)
setProperty
public Property setProperty(java.lang.String name,
java.lang.String[] values)
throws ValueFormatException,
VersionException,
LockException,
ConstraintViolationException,
RepositoryException
- Specified by:
setProperty in interface Node
- Throws:
ValueFormatException
VersionException
LockException
ConstraintViolationException
RepositoryException- See Also:
Node.setProperty(String, String[])
setProperty
public Property setProperty(java.lang.String name,
java.lang.String[] values,
int type)
throws ValueFormatException,
VersionException,
LockException,
ConstraintViolationException,
RepositoryException
- Specified by:
setProperty in interface Node
- Throws:
ValueFormatException
VersionException
LockException
ConstraintViolationException
RepositoryException- See Also:
Node.setProperty(String, String[], int)
setProperty
public Property setProperty(java.lang.String name,
java.lang.String value)
throws ValueFormatException,
VersionException,
LockException,
ConstraintViolationException,
RepositoryException
- Specified by:
setProperty in interface Node
- Throws:
ValueFormatException
VersionException
LockException
ConstraintViolationException
RepositoryException- See Also:
Node.setProperty(String, String)
setProperty
public Property setProperty(java.lang.String name,
java.lang.String value,
int type)
throws ValueFormatException,
VersionException,
LockException,
ConstraintViolationException,
RepositoryException
- Specified by:
setProperty in interface Node
- Throws:
ValueFormatException
VersionException
LockException
ConstraintViolationException
RepositoryException- See Also:
Node.setProperty(String, String, int)
setProperty
public Property setProperty(java.lang.String name,
java.io.InputStream value)
throws ValueFormatException,
VersionException,
LockException,
ConstraintViolationException,
RepositoryException
- Specified by:
setProperty in interface Node
- Throws:
ValueFormatException
VersionException
LockException
ConstraintViolationException
RepositoryException- See Also:
Node.setProperty(String, InputStream)
setProperty
public Property setProperty(java.lang.String name,
Binary value)
throws RepositoryException
- Specified by:
setProperty in interface Node
- Throws:
RepositoryException- See Also:
Node.setProperty(String, Binary)
setProperty
public Property setProperty(java.lang.String name,
boolean value)
throws ValueFormatException,
VersionException,
LockException,
ConstraintViolationException,
RepositoryException
- Specified by:
setProperty in interface Node
- Throws:
ValueFormatException
VersionException
LockException
ConstraintViolationException
RepositoryException- See Also:
Node.setProperty(String, boolean)
setProperty
public Property setProperty(java.lang.String name,
double value)
throws ValueFormatException,
VersionException,
LockException,
ConstraintViolationException,
RepositoryException
- Specified by:
setProperty in interface Node
- Throws:
ValueFormatException
VersionException
LockException
ConstraintViolationException
RepositoryException- See Also:
Node.setProperty(String, double)
setProperty
public Property setProperty(java.lang.String name,
java.math.BigDecimal value)
throws RepositoryException
- Specified by:
setProperty in interface Node
- Throws:
RepositoryException- See Also:
Node.setProperty(String, BigDecimal)
setProperty
public Property setProperty(java.lang.String name,
long value)
throws ValueFormatException,
VersionException,
LockException,
ConstraintViolationException,
RepositoryException
- Specified by:
setProperty in interface Node
- Throws:
ValueFormatException
VersionException
LockException
ConstraintViolationException
RepositoryException- See Also:
Node.setProperty(String, long)
setProperty
public Property setProperty(java.lang.String name,
java.util.Calendar value)
throws ValueFormatException,
VersionException,
LockException,
ConstraintViolationException,
RepositoryException
- Specified by:
setProperty in interface Node
- Throws:
ValueFormatException
VersionException
LockException
ConstraintViolationException
RepositoryException- See Also:
Node.setProperty(String, Calendar)
setProperty
public Property setProperty(java.lang.String name,
Node value)
throws ValueFormatException,
VersionException,
LockException,
ConstraintViolationException,
RepositoryException
- Specified by:
setProperty in interface Node
- Throws:
ValueFormatException
VersionException
LockException
ConstraintViolationException
RepositoryException- See Also:
Node.setProperty(String, Node)
getNode
public Node getNode(java.lang.String relPath)
throws PathNotFoundException,
RepositoryException
- Specified by:
getNode in interface Node
- Throws:
PathNotFoundException
RepositoryException- See Also:
Node.getNode(String)
getNodes
public NodeIterator getNodes()
throws RepositoryException
- Specified by:
getNodes in interface Node
- Throws:
RepositoryException- See Also:
Node.getNodes()
getNodes
public NodeIterator getNodes(java.lang.String namePattern)
throws RepositoryException
- Specified by:
getNodes in interface Node
- Throws:
RepositoryException- See Also:
Node.getNodes(String)
getNodes
public NodeIterator getNodes(java.lang.String[] nameGlobs)
throws RepositoryException
- Specified by:
getNodes in interface Node
- Throws:
RepositoryException- See Also:
Node.getNodes(String[])
getProperty
public Property getProperty(java.lang.String relPath)
throws PathNotFoundException,
RepositoryException
- Specified by:
getProperty in interface Node
- Throws:
PathNotFoundException
RepositoryException- See Also:
Node.getProperty(String)
getProperties
public PropertyIterator getProperties()
throws RepositoryException
- Specified by:
getProperties in interface Node
- Throws:
RepositoryException- See Also:
Node.getProperties()
getProperties
public PropertyIterator getProperties(java.lang.String namePattern)
throws RepositoryException
- Specified by:
getProperties in interface Node
- Throws:
RepositoryException- See Also:
Node.getProperties(String)
getProperties
public PropertyIterator getProperties(java.lang.String[] nameGlobs)
throws RepositoryException
- Specified by:
getProperties in interface Node
- Throws:
RepositoryException- See Also:
Node.getProperties(String)
getPrimaryItem
public Item getPrimaryItem()
throws ItemNotFoundException,
RepositoryException
- Specified by:
getPrimaryItem in interface Node
- Throws:
ItemNotFoundException
RepositoryException- See Also:
Node.getPrimaryItem()
getUUID
public java.lang.String getUUID()
throws UnsupportedRepositoryOperationException,
RepositoryException
- Specified by:
getUUID in interface Node
- Throws:
UnsupportedRepositoryOperationException
RepositoryException- See Also:
Node.getUUID()
getIdentifier
public java.lang.String getIdentifier()
throws RepositoryException
- Specified by:
getIdentifier in interface Node
- Throws:
RepositoryException- See Also:
Node.getIdentifier()
getIndex
public int getIndex()
throws RepositoryException
- Specified by:
getIndex in interface Node
- Throws:
RepositoryException- See Also:
Node.getIndex()
getReferences
public PropertyIterator getReferences()
throws RepositoryException
- Specified by:
getReferences in interface Node
- Throws:
RepositoryException- See Also:
Node.getReferences()
getReferences
public PropertyIterator getReferences(java.lang.String name)
throws RepositoryException
- Specified by:
getReferences in interface Node
- Throws:
RepositoryException- See Also:
Node.getReferences(String)
getWeakReferences
public PropertyIterator getWeakReferences()
throws RepositoryException
- Specified by:
getWeakReferences in interface Node
- Throws:
RepositoryException- See Also:
Node.getWeakReferences()
getWeakReferences
public PropertyIterator getWeakReferences(java.lang.String name)
throws RepositoryException
- Specified by:
getWeakReferences in interface Node
- Throws:
RepositoryException- See Also:
Node.getWeakReferences()
hasNode
public boolean hasNode(java.lang.String relPath)
throws RepositoryException
- Specified by:
hasNode in interface Node
- Throws:
RepositoryException- See Also:
Node.hasNode(String)
hasProperty
public boolean hasProperty(java.lang.String relPath)
throws RepositoryException
- Specified by:
hasProperty in interface Node
- Throws:
RepositoryException- See Also:
Node.hasProperty(String)
hasNodes
public boolean hasNodes()
throws RepositoryException
- Specified by:
hasNodes in interface Node
- Throws:
RepositoryException- See Also:
Node.hasNodes()
hasProperties
public boolean hasProperties()
throws RepositoryException
- Specified by:
hasProperties in interface Node
- Throws:
RepositoryException- See Also:
Node.hasProperties()
getPrimaryNodeType
public NodeType getPrimaryNodeType()
throws RepositoryException
- Specified by:
getPrimaryNodeType in interface Node
- Throws:
RepositoryException- See Also:
Node.getPrimaryNodeType()
setPrimaryType
public void setPrimaryType(java.lang.String nodeTypeName)
throws RepositoryException
- Specified by:
setPrimaryType in interface Node
- Throws:
RepositoryException- See Also:
Node.setPrimaryType(String)
getMixinNodeTypes
public NodeType[] getMixinNodeTypes()
throws RepositoryException
- Specified by:
getMixinNodeTypes in interface Node
- Throws:
RepositoryException- See Also:
Node.getMixinNodeTypes()
isNodeType
public boolean isNodeType(java.lang.String nodeTypeName)
throws RepositoryException
- Specified by:
isNodeType in interface Node
- Throws:
RepositoryException- See Also:
Node.isNodeType(String)
addMixin
public void addMixin(java.lang.String mixinName)
throws NoSuchNodeTypeException,
VersionException,
ConstraintViolationException,
LockException,
RepositoryException
- Specified by:
addMixin in interface Node
- Throws:
NoSuchNodeTypeException
VersionException
ConstraintViolationException
LockException
RepositoryException- See Also:
Node.addMixin(String)
removeMixin
public void removeMixin(java.lang.String mixinName)
throws NoSuchNodeTypeException,
VersionException,
ConstraintViolationException,
LockException,
RepositoryException
- Specified by:
removeMixin in interface Node
- Throws:
NoSuchNodeTypeException
VersionException
ConstraintViolationException
LockException
RepositoryException- See Also:
Node.removeMixin(String)
canAddMixin
public boolean canAddMixin(java.lang.String mixinName)
throws RepositoryException
- Specified by:
canAddMixin in interface Node
- Throws:
RepositoryException- See Also:
Node.canAddMixin(String)
getDefinition
public NodeDefinition getDefinition()
throws RepositoryException
- Specified by:
getDefinition in interface Node
- Throws:
RepositoryException- See Also:
Node.getDefinition()
checkin
public Version checkin()
throws VersionException,
UnsupportedRepositoryOperationException,
InvalidItemStateException,
LockException,
RepositoryException
- Specified by:
checkin in interface Node
- Throws:
VersionException
UnsupportedRepositoryOperationException
InvalidItemStateException
LockException
RepositoryException- See Also:
Node.checkin()
checkout
public void checkout()
throws UnsupportedRepositoryOperationException,
LockException,
RepositoryException
- Specified by:
checkout in interface Node
- Throws:
UnsupportedRepositoryOperationException
LockException
RepositoryException- See Also:
Node.checkout()
doneMerge
public void doneMerge(Version version)
throws VersionException,
InvalidItemStateException,
UnsupportedRepositoryOperationException,
RepositoryException
- Specified by:
doneMerge in interface Node
- Throws:
VersionException
InvalidItemStateException
UnsupportedRepositoryOperationException
RepositoryException- See Also:
Node.doneMerge(Version)
cancelMerge
public void cancelMerge(Version version)
throws VersionException,
InvalidItemStateException,
UnsupportedRepositoryOperationException,
RepositoryException
- Specified by:
cancelMerge in interface Node
- Throws:
VersionException
InvalidItemStateException
UnsupportedRepositoryOperationException
RepositoryException- See Also:
Node.cancelMerge(Version)
update
public void update(java.lang.String srcWorkspaceName)
throws NoSuchWorkspaceException,
AccessDeniedException,
LockException,
InvalidItemStateException,
RepositoryException
- Specified by:
update in interface Node
- Throws:
NoSuchWorkspaceException
AccessDeniedException
LockException
InvalidItemStateException
RepositoryException- See Also:
Node.update(String)
merge
public NodeIterator merge(java.lang.String srcWorkspace,
boolean bestEffort)
throws NoSuchWorkspaceException,
AccessDeniedException,
VersionException,
LockException,
InvalidItemStateException,
RepositoryException
- Specified by:
merge in interface Node
- Throws:
NoSuchWorkspaceException
AccessDeniedException
VersionException
LockException
InvalidItemStateException
RepositoryException- See Also:
Node.merge(String, boolean)
merge
public NodeIterator merge(java.lang.String srcWorkspace,
boolean bestEffort,
boolean isShallow)
throws RepositoryException
- TODO: Issue 728 of the pfd... this method is a leftover and will be removed in the final version.
-> change to package protected then
- Throws:
RepositoryException
getCorrespondingNodePath
public java.lang.String getCorrespondingNodePath(java.lang.String workspaceName)
throws ItemNotFoundException,
NoSuchWorkspaceException,
AccessDeniedException,
RepositoryException
- Specified by:
getCorrespondingNodePath in interface Node
- Throws:
ItemNotFoundException
NoSuchWorkspaceException
AccessDeniedException
RepositoryException- See Also:
Node.getCorrespondingNodePath(String)
isCheckedOut
public boolean isCheckedOut()
throws RepositoryException
- Specified by:
isCheckedOut in interface Node
- Throws:
RepositoryException- See Also:
Node.isCheckedOut()
restore
public void restore(java.lang.String versionName,
boolean removeExisting)
throws VersionException,
ItemExistsException,
UnsupportedRepositoryOperationException,
LockException,
InvalidItemStateException,
RepositoryException
- Specified by:
restore in interface Node
- Throws:
VersionException
ItemExistsException
UnsupportedRepositoryOperationException
LockException
InvalidItemStateException
RepositoryException- See Also:
Node.restore(String, boolean)
restore
public void restore(Version version,
boolean removeExisting)
throws VersionException,
ItemExistsException,
UnsupportedRepositoryOperationException,
LockException,
RepositoryException
- Specified by:
restore in interface Node
- Throws:
VersionException
ItemExistsException
UnsupportedRepositoryOperationException
LockException
RepositoryException- See Also:
Node.restore(Version, boolean)
restore
public void restore(Version version,
java.lang.String relPath,
boolean removeExisting)
throws PathNotFoundException,
ItemExistsException,
VersionException,
ConstraintViolationException,
UnsupportedRepositoryOperationException,
LockException,
InvalidItemStateException,
RepositoryException
- Specified by:
restore in interface Node
- Throws:
PathNotFoundException
ItemExistsException
VersionException
ConstraintViolationException
UnsupportedRepositoryOperationException
LockException
InvalidItemStateException
RepositoryException- See Also:
Node.restore(Version, String, boolean)
restoreByLabel
public void restoreByLabel(java.lang.String versionLabel,
boolean removeExisting)
throws VersionException,
ItemExistsException,
UnsupportedRepositoryOperationException,
LockException,
InvalidItemStateException,
RepositoryException
- Specified by:
restoreByLabel in interface Node
- Throws:
VersionException
ItemExistsException
UnsupportedRepositoryOperationException
LockException
InvalidItemStateException
RepositoryException- See Also:
Node.restoreByLabel(String, boolean)
getVersionHistory
public VersionHistory getVersionHistory()
throws UnsupportedRepositoryOperationException,
RepositoryException
- Specified by:
getVersionHistory in interface Node
- Throws:
UnsupportedRepositoryOperationException
RepositoryException- See Also:
Node.getVersionHistory()
getBaseVersion
public Version getBaseVersion()
throws UnsupportedRepositoryOperationException,
RepositoryException
- Specified by:
getBaseVersion in interface Node
- Throws:
UnsupportedRepositoryOperationException
RepositoryException- See Also:
Node.getBaseVersion()
lock
public Lock lock(boolean isDeep,
boolean isSessionScoped)
throws UnsupportedRepositoryOperationException,
LockException,
AccessDeniedException,
InvalidItemStateException,
RepositoryException
- Specified by:
lock in interface Node
- Throws:
UnsupportedRepositoryOperationException
LockException
AccessDeniedException
InvalidItemStateException
RepositoryException- See Also:
Node.lock(boolean, boolean)
lock
public Lock lock(boolean isDeep,
boolean isSessionScoped,
long timeoutHint,
java.lang.String ownerHint)
throws UnsupportedRepositoryOperationException,
LockException,
AccessDeniedException,
InvalidItemStateException,
RepositoryException
- Throws:
UnsupportedRepositoryOperationException
LockException
AccessDeniedException
InvalidItemStateException
RepositoryException
getLock
public Lock getLock()
throws UnsupportedRepositoryOperationException,
LockException,
AccessDeniedException,
RepositoryException
- Specified by:
getLock in interface Node
- Throws:
UnsupportedRepositoryOperationException
LockException
AccessDeniedException
RepositoryException- See Also:
Node.getLock()
unlock
public void unlock()
throws UnsupportedRepositoryOperationException,
LockException,
AccessDeniedException,
InvalidItemStateException,
RepositoryException
- Specified by:
unlock in interface Node
- Throws:
UnsupportedRepositoryOperationException
LockException
AccessDeniedException
InvalidItemStateException
RepositoryException- See Also:
Node.unlock()
holdsLock
public boolean holdsLock()
throws RepositoryException
- Specified by:
holdsLock in interface Node
- Throws:
RepositoryException- See Also:
Node.holdsLock()
isLocked
public boolean isLocked()
throws RepositoryException
- Specified by:
isLocked in interface Node
- Throws:
RepositoryException- See Also:
Node.isLocked()
followLifecycleTransition
public void followLifecycleTransition(java.lang.String transition)
throws RepositoryException
- Specified by:
followLifecycleTransition in interface Node
- Throws:
RepositoryException- See Also:
Node.followLifecycleTransition(String)
getAllowedLifecycleTransistions
public java.lang.String[] getAllowedLifecycleTransistions()
throws RepositoryException
- Specified by:
getAllowedLifecycleTransistions in interface Node
- Throws:
RepositoryException- See Also:
Node.getAllowedLifecycleTransistions()
getSharedSet
public NodeIterator getSharedSet()
throws RepositoryException
- Specified by:
getSharedSet in interface Node
- Throws:
RepositoryException- See Also:
Node.getSharedSet()
removeShare
public void removeShare()
throws RepositoryException
- Specified by:
removeShare in interface Node
- Throws:
RepositoryException- See Also:
Node.removeShare()
removeSharedSet
public void removeSharedSet()
throws RepositoryException
- Specified by:
removeSharedSet in interface Node
- Throws:
RepositoryException- See Also:
Node.removeSharedSet()
getNode
protected Node getNode(Name nodeName,
int index)
throws PathNotFoundException,
RepositoryException
- Parameters:
nodeName - index -
- Returns:
-
- Throws:
PathNotFoundException
RepositoryException
getProperty
protected Property getProperty(Name qName)
throws PathNotFoundException,
RepositoryException
- Parameters:
qName -
- Returns:
-
- Throws:
PathNotFoundException
RepositoryException
Copyright © 2004-2011 The Apache Software Foundation. All Rights Reserved.