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(String mixinName)
|
Node |
addNode(String relPath)
|
Node |
addNode(String relPath,
String primaryNodeTypeName)
|
boolean |
canAddMixin(String mixinName)
|
void |
cancelMerge(Version version)
|
Version |
checkin()
|
void |
checkout()
|
void |
doneMerge(Version version)
|
void |
followLifecycleTransition(String transition)
|
String[] |
getAllowedLifecycleTransistions()
|
Version |
getBaseVersion()
|
String |
getCorrespondingNodePath(String workspaceName)
|
NodeDefinition |
getDefinition()
|
String |
getIdentifier()
|
int |
getIndex()
|
Lock |
getLock()
|
NodeType[] |
getMixinNodeTypes()
|
String |
getName()
|
protected Node |
getNode(Name nodeName,
int index)
|
Node |
getNode(String relPath)
|
NodeIterator |
getNodes()
|
NodeIterator |
getNodes(String namePattern)
|
NodeIterator |
getNodes(String[] nameGlobs)
|
Item |
getPrimaryItem()
|
NodeType |
getPrimaryNodeType()
|
PropertyIterator |
getProperties()
|
PropertyIterator |
getProperties(String namePattern)
|
PropertyIterator |
getProperties(String[] nameGlobs)
|
protected Property |
getProperty(Name qName)
|
Property |
getProperty(String relPath)
|
PropertyIterator |
getReferences()
|
PropertyIterator |
getReferences(String name)
|
NodeIterator |
getSharedSet()
|
String |
getUUID()
|
VersionHistory |
getVersionHistory()
|
PropertyIterator |
getWeakReferences()
|
PropertyIterator |
getWeakReferences(String name)
|
boolean |
hasNode(String relPath)
|
boolean |
hasNodes()
|
boolean |
hasProperties()
|
boolean |
hasProperty(String relPath)
|
boolean |
holdsLock()
|
boolean |
isCheckedOut()
|
boolean |
isLocked()
|
boolean |
isNode()
Returns true |
boolean |
isNodeType(String nodeTypeName)
|
Lock |
lock(boolean isDeep,
boolean isSessionScoped)
|
Lock |
lock(boolean isDeep,
boolean isSessionScoped,
long timeoutHint,
String ownerHint)
|
NodeIterator |
merge(String srcWorkspace,
boolean bestEffort)
|
NodeIterator |
merge(String srcWorkspace,
boolean bestEffort,
boolean isShallow)
TODO: Issue 728 of the pfd... this method is a leftover and will be removed in the final version.
-> change to package protected then |
void |
orderBefore(String srcChildRelPath,
String destChildRelPath)
|
void |
removeMixin(String mixinName)
|
void |
removeShare()
|
void |
removeSharedSet()
|
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)
|
void |
setPrimaryType(String nodeTypeName)
|
Property |
setProperty(String name,
BigDecimal value)
|
Property |
setProperty(String name,
Binary value)
|
Property |
setProperty(String name,
boolean value)
|
Property |
setProperty(String name,
Calendar value)
|
Property |
setProperty(String name,
double value)
|
Property |
setProperty(String name,
InputStream value)
|
Property |
setProperty(String name,
long value)
|
Property |
setProperty(String name,
Node value)
|
Property |
setProperty(String name,
String value)
|
Property |
setProperty(String name,
String[] 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.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 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(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(String relPath,
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(String srcChildRelPath,
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(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(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(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(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(String name,
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(String name,
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(String name,
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(String name,
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(String name,
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(String name,
Binary value)
throws RepositoryException
- Specified by:
setProperty
in interface Node
- Throws:
RepositoryException
- See Also:
Node.setProperty(String, Binary)
setProperty
public Property setProperty(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(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(String name,
BigDecimal value)
throws RepositoryException
- Specified by:
setProperty
in interface Node
- Throws:
RepositoryException
- See Also:
Node.setProperty(String, BigDecimal)
setProperty
public Property setProperty(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(String name,
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(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(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(String namePattern)
throws RepositoryException
- Specified by:
getNodes
in interface Node
- Throws:
RepositoryException
- See Also:
Node.getNodes(String)
getNodes
public NodeIterator getNodes(String[] nameGlobs)
throws RepositoryException
- Specified by:
getNodes
in interface Node
- Throws:
RepositoryException
- See Also:
Node.getNodes(String[])
getProperty
public Property getProperty(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(String namePattern)
throws RepositoryException
- Specified by:
getProperties
in interface Node
- Throws:
RepositoryException
- See Also:
Node.getProperties(String)
getProperties
public PropertyIterator getProperties(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 String getUUID()
throws UnsupportedRepositoryOperationException,
RepositoryException
- Specified by:
getUUID
in interface Node
- Throws:
UnsupportedRepositoryOperationException
RepositoryException
- See Also:
Node.getUUID()
getIdentifier
public 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(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(String name)
throws RepositoryException
- Specified by:
getWeakReferences
in interface Node
- Throws:
RepositoryException
- See Also:
Node.getWeakReferences()
hasNode
public boolean hasNode(String relPath)
throws RepositoryException
- Specified by:
hasNode
in interface Node
- Throws:
RepositoryException
- See Also:
Node.hasNode(String)
hasProperty
public boolean hasProperty(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(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(String nodeTypeName)
throws RepositoryException
- Specified by:
isNodeType
in interface Node
- Throws:
RepositoryException
- See Also:
Node.isNodeType(String)
addMixin
public void addMixin(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(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(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(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(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(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 String getCorrespondingNodePath(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(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,
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(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,
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(String transition)
throws RepositoryException
- Specified by:
followLifecycleTransition
in interface Node
- Throws:
RepositoryException
- See Also:
Node.followLifecycleTransition(String)
getAllowedLifecycleTransistions
public 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-2010 The Apache Software Foundation. All Rights Reserved.