org.apache.jackrabbit.decorator
Class NodeDecorator
java.lang.Object
org.apache.jackrabbit.decorator.ChainedItemDecorator
org.apache.jackrabbit.decorator.NodeDecorator
- All Implemented Interfaces:
- Item, Node
- public class NodeDecorator
- extends ChainedItemDecorator
- implements Node
Method Summary |
void |
addMixin(String arg0)
|
Node |
addNode(String name)
|
Node |
addNode(String name,
String type)
|
boolean |
canAddMixin(String arg0)
|
void |
cancelMerge(Version arg0)
|
Version |
checkin()
|
void |
checkout()
|
void |
doneMerge(Version arg0)
|
Version |
getBaseVersion()
|
String |
getCorrespondingNodePath(String arg0)
|
NodeDefinition |
getDefinition()
|
int |
getIndex()
|
Lock |
getLock()
|
NodeType[] |
getMixinNodeTypes()
|
Node |
getNode(String arg0)
|
NodeIterator |
getNodes()
|
NodeIterator |
getNodes(String arg0)
|
Item |
getPrimaryItem()
|
NodeType |
getPrimaryNodeType()
|
PropertyIterator |
getProperties()
|
PropertyIterator |
getProperties(String arg0)
|
Property |
getProperty(String arg0)
|
PropertyIterator |
getReferences()
|
String |
getUUID()
|
VersionHistory |
getVersionHistory()
|
boolean |
hasNode(String arg0)
|
boolean |
hasNodes()
|
boolean |
hasProperties()
|
boolean |
hasProperty(String arg0)
|
boolean |
holdsLock()
|
boolean |
isCheckedOut()
|
boolean |
isLocked()
|
boolean |
isNodeType(String arg0)
|
Lock |
lock(boolean arg0,
boolean arg1)
|
NodeIterator |
merge(String arg0,
boolean arg1)
|
void |
orderBefore(String arg0,
String arg1)
|
void |
removeMixin(String arg0)
|
void |
restore(String arg0,
boolean arg1)
|
void |
restore(Version arg0,
boolean arg1)
|
void |
restore(Version arg0,
String arg1,
boolean arg2)
|
void |
restoreByLabel(String arg0,
boolean arg1)
|
Property |
setProperty(String arg0,
boolean arg1)
|
Property |
setProperty(String arg0,
Calendar arg1)
|
Property |
setProperty(String arg0,
double arg1)
|
Property |
setProperty(String arg0,
InputStream arg1)
|
Property |
setProperty(String arg0,
long arg1)
|
Property |
setProperty(String arg0,
Node arg1)
|
Property |
setProperty(String arg0,
String arg1)
|
Property |
setProperty(String arg0,
String[] arg1)
|
Property |
setProperty(String arg0,
String[] arg1,
int arg2)
|
Property |
setProperty(String arg0,
String arg1,
int arg2)
|
Property |
setProperty(String arg0,
Value arg1)
|
Property |
setProperty(String arg0,
Value[] arg1)
|
Property |
setProperty(String arg0,
Value[] arg1,
int arg2)
|
Property |
setProperty(String arg0,
Value arg1,
int arg2)
|
void |
unlock()
|
void |
update(String arg0)
|
Methods inherited from class org.apache.jackrabbit.decorator.ChainedItemDecorator |
accept, getAncestor, getDepth, getName, getParent, getPath, getSession, isModified, isNew, isNode, 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 |
accept, getAncestor, getDepth, getName, getParent, getPath, getSession, isModified, isNew, isNode, isSame, refresh, remove, save |
NodeDecorator
public NodeDecorator(ItemDecorator decorator,
DecoratorFactory factory,
Session session,
Node node)
addNode
public Node addNode(String name)
throws ItemExistsException,
PathNotFoundException,
VersionException,
ConstraintViolationException,
LockException,
RepositoryException
- Specified by:
addNode
in interface Node
- Throws:
ItemExistsException
PathNotFoundException
VersionException
ConstraintViolationException
LockException
RepositoryException
addNode
public Node addNode(String name,
String type)
throws ItemExistsException,
PathNotFoundException,
NoSuchNodeTypeException,
LockException,
VersionException,
ConstraintViolationException,
RepositoryException
- Specified by:
addNode
in interface Node
- Throws:
ItemExistsException
PathNotFoundException
NoSuchNodeTypeException
LockException
VersionException
ConstraintViolationException
RepositoryException
orderBefore
public void orderBefore(String arg0,
String arg1)
throws UnsupportedRepositoryOperationException,
VersionException,
ConstraintViolationException,
ItemNotFoundException,
LockException,
RepositoryException
- Specified by:
orderBefore
in interface Node
- Throws:
UnsupportedRepositoryOperationException
VersionException
ConstraintViolationException
ItemNotFoundException
LockException
RepositoryException
setProperty
public Property setProperty(String arg0,
Value arg1)
throws ValueFormatException,
VersionException,
LockException,
ConstraintViolationException,
RepositoryException
- Specified by:
setProperty
in interface Node
- Throws:
ValueFormatException
VersionException
LockException
ConstraintViolationException
RepositoryException
setProperty
public Property setProperty(String arg0,
Value arg1,
int arg2)
throws ValueFormatException,
VersionException,
LockException,
ConstraintViolationException,
RepositoryException
- Specified by:
setProperty
in interface Node
- Throws:
ValueFormatException
VersionException
LockException
ConstraintViolationException
RepositoryException
setProperty
public Property setProperty(String arg0,
Value[] arg1)
throws ValueFormatException,
VersionException,
LockException,
ConstraintViolationException,
RepositoryException
- Specified by:
setProperty
in interface Node
- Throws:
ValueFormatException
VersionException
LockException
ConstraintViolationException
RepositoryException
setProperty
public Property setProperty(String arg0,
Value[] arg1,
int arg2)
throws ValueFormatException,
VersionException,
LockException,
ConstraintViolationException,
RepositoryException
- Specified by:
setProperty
in interface Node
- Throws:
ValueFormatException
VersionException
LockException
ConstraintViolationException
RepositoryException
setProperty
public Property setProperty(String arg0,
String[] arg1)
throws ValueFormatException,
VersionException,
LockException,
ConstraintViolationException,
RepositoryException
- Specified by:
setProperty
in interface Node
- Throws:
ValueFormatException
VersionException
LockException
ConstraintViolationException
RepositoryException
setProperty
public Property setProperty(String arg0,
String[] arg1,
int arg2)
throws ValueFormatException,
VersionException,
LockException,
ConstraintViolationException,
RepositoryException
- Specified by:
setProperty
in interface Node
- Throws:
ValueFormatException
VersionException
LockException
ConstraintViolationException
RepositoryException
setProperty
public Property setProperty(String arg0,
String arg1)
throws ValueFormatException,
VersionException,
LockException,
ConstraintViolationException,
RepositoryException
- Specified by:
setProperty
in interface Node
- Throws:
ValueFormatException
VersionException
LockException
ConstraintViolationException
RepositoryException
setProperty
public Property setProperty(String arg0,
String arg1,
int arg2)
throws ValueFormatException,
VersionException,
LockException,
ConstraintViolationException,
RepositoryException
- Specified by:
setProperty
in interface Node
- Throws:
ValueFormatException
VersionException
LockException
ConstraintViolationException
RepositoryException
setProperty
public Property setProperty(String arg0,
InputStream arg1)
throws ValueFormatException,
VersionException,
LockException,
ConstraintViolationException,
RepositoryException
- Specified by:
setProperty
in interface Node
- Throws:
ValueFormatException
VersionException
LockException
ConstraintViolationException
RepositoryException
setProperty
public Property setProperty(String arg0,
boolean arg1)
throws ValueFormatException,
VersionException,
LockException,
ConstraintViolationException,
RepositoryException
- Specified by:
setProperty
in interface Node
- Throws:
ValueFormatException
VersionException
LockException
ConstraintViolationException
RepositoryException
setProperty
public Property setProperty(String arg0,
double arg1)
throws ValueFormatException,
VersionException,
LockException,
ConstraintViolationException,
RepositoryException
- Specified by:
setProperty
in interface Node
- Throws:
ValueFormatException
VersionException
LockException
ConstraintViolationException
RepositoryException
setProperty
public Property setProperty(String arg0,
long arg1)
throws ValueFormatException,
VersionException,
LockException,
ConstraintViolationException,
RepositoryException
- Specified by:
setProperty
in interface Node
- Throws:
ValueFormatException
VersionException
LockException
ConstraintViolationException
RepositoryException
setProperty
public Property setProperty(String arg0,
Calendar arg1)
throws ValueFormatException,
VersionException,
LockException,
ConstraintViolationException,
RepositoryException
- Specified by:
setProperty
in interface Node
- Throws:
ValueFormatException
VersionException
LockException
ConstraintViolationException
RepositoryException
setProperty
public Property setProperty(String arg0,
Node arg1)
throws ValueFormatException,
VersionException,
LockException,
ConstraintViolationException,
RepositoryException
- Specified by:
setProperty
in interface Node
- Throws:
ValueFormatException
VersionException
LockException
ConstraintViolationException
RepositoryException
getNode
public Node getNode(String arg0)
throws PathNotFoundException,
RepositoryException
- Specified by:
getNode
in interface Node
- Throws:
PathNotFoundException
RepositoryException
getNodes
public NodeIterator getNodes()
throws RepositoryException
- Specified by:
getNodes
in interface Node
- Throws:
RepositoryException
getNodes
public NodeIterator getNodes(String arg0)
throws RepositoryException
- Specified by:
getNodes
in interface Node
- Throws:
RepositoryException
getProperty
public Property getProperty(String arg0)
throws PathNotFoundException,
RepositoryException
- Specified by:
getProperty
in interface Node
- Throws:
PathNotFoundException
RepositoryException
getProperties
public PropertyIterator getProperties()
throws RepositoryException
- Specified by:
getProperties
in interface Node
- Throws:
RepositoryException
getProperties
public PropertyIterator getProperties(String arg0)
throws RepositoryException
- Specified by:
getProperties
in interface Node
- Throws:
RepositoryException
getPrimaryItem
public Item getPrimaryItem()
throws ItemNotFoundException,
RepositoryException
- Specified by:
getPrimaryItem
in interface Node
- Throws:
ItemNotFoundException
RepositoryException
getUUID
public String getUUID()
throws UnsupportedRepositoryOperationException,
RepositoryException
- Specified by:
getUUID
in interface Node
- Throws:
UnsupportedRepositoryOperationException
RepositoryException
getIndex
public int getIndex()
throws RepositoryException
- Specified by:
getIndex
in interface Node
- Throws:
RepositoryException
getReferences
public PropertyIterator getReferences()
throws RepositoryException
- Specified by:
getReferences
in interface Node
- Throws:
RepositoryException
hasNode
public boolean hasNode(String arg0)
throws RepositoryException
- Specified by:
hasNode
in interface Node
- Throws:
RepositoryException
hasProperty
public boolean hasProperty(String arg0)
throws RepositoryException
- Specified by:
hasProperty
in interface Node
- Throws:
RepositoryException
hasNodes
public boolean hasNodes()
throws RepositoryException
- Specified by:
hasNodes
in interface Node
- Throws:
RepositoryException
hasProperties
public boolean hasProperties()
throws RepositoryException
- Specified by:
hasProperties
in interface Node
- Throws:
RepositoryException
getPrimaryNodeType
public NodeType getPrimaryNodeType()
throws RepositoryException
- Specified by:
getPrimaryNodeType
in interface Node
- Throws:
RepositoryException
getMixinNodeTypes
public NodeType[] getMixinNodeTypes()
throws RepositoryException
- Specified by:
getMixinNodeTypes
in interface Node
- Throws:
RepositoryException
isNodeType
public boolean isNodeType(String arg0)
throws RepositoryException
- Specified by:
isNodeType
in interface Node
- Throws:
RepositoryException
addMixin
public void addMixin(String arg0)
throws NoSuchNodeTypeException,
VersionException,
ConstraintViolationException,
LockException,
RepositoryException
- Specified by:
addMixin
in interface Node
- Throws:
NoSuchNodeTypeException
VersionException
ConstraintViolationException
LockException
RepositoryException
removeMixin
public void removeMixin(String arg0)
throws NoSuchNodeTypeException,
VersionException,
ConstraintViolationException,
LockException,
RepositoryException
- Specified by:
removeMixin
in interface Node
- Throws:
NoSuchNodeTypeException
VersionException
ConstraintViolationException
LockException
RepositoryException
canAddMixin
public boolean canAddMixin(String arg0)
throws NoSuchNodeTypeException,
RepositoryException
- Specified by:
canAddMixin
in interface Node
- Throws:
NoSuchNodeTypeException
RepositoryException
getDefinition
public NodeDefinition getDefinition()
throws RepositoryException
- Specified by:
getDefinition
in interface Node
- Throws:
RepositoryException
checkin
public Version checkin()
throws VersionException,
UnsupportedRepositoryOperationException,
InvalidItemStateException,
LockException,
RepositoryException
- Specified by:
checkin
in interface Node
- Throws:
VersionException
UnsupportedRepositoryOperationException
InvalidItemStateException
LockException
RepositoryException
checkout
public void checkout()
throws UnsupportedRepositoryOperationException,
LockException,
RepositoryException
- Specified by:
checkout
in interface Node
- Throws:
UnsupportedRepositoryOperationException
LockException
RepositoryException
doneMerge
public void doneMerge(Version arg0)
throws VersionException,
InvalidItemStateException,
UnsupportedRepositoryOperationException,
RepositoryException
- Specified by:
doneMerge
in interface Node
- Throws:
VersionException
InvalidItemStateException
UnsupportedRepositoryOperationException
RepositoryException
cancelMerge
public void cancelMerge(Version arg0)
throws VersionException,
InvalidItemStateException,
UnsupportedRepositoryOperationException,
RepositoryException
- Specified by:
cancelMerge
in interface Node
- Throws:
VersionException
InvalidItemStateException
UnsupportedRepositoryOperationException
RepositoryException
update
public void update(String arg0)
throws NoSuchWorkspaceException,
AccessDeniedException,
LockException,
InvalidItemStateException,
RepositoryException
- Specified by:
update
in interface Node
- Throws:
NoSuchWorkspaceException
AccessDeniedException
LockException
InvalidItemStateException
RepositoryException
merge
public NodeIterator merge(String arg0,
boolean arg1)
throws NoSuchWorkspaceException,
AccessDeniedException,
VersionException,
LockException,
InvalidItemStateException,
RepositoryException
- Specified by:
merge
in interface Node
- Throws:
NoSuchWorkspaceException
AccessDeniedException
VersionException
LockException
InvalidItemStateException
RepositoryException
getCorrespondingNodePath
public String getCorrespondingNodePath(String arg0)
throws ItemNotFoundException,
NoSuchWorkspaceException,
AccessDeniedException,
RepositoryException
- Specified by:
getCorrespondingNodePath
in interface Node
- Throws:
ItemNotFoundException
NoSuchWorkspaceException
AccessDeniedException
RepositoryException
isCheckedOut
public boolean isCheckedOut()
throws RepositoryException
- Specified by:
isCheckedOut
in interface Node
- Throws:
RepositoryException
restore
public void restore(String arg0,
boolean arg1)
throws VersionException,
ItemExistsException,
UnsupportedRepositoryOperationException,
LockException,
InvalidItemStateException,
RepositoryException
- Specified by:
restore
in interface Node
- Throws:
VersionException
ItemExistsException
UnsupportedRepositoryOperationException
LockException
InvalidItemStateException
RepositoryException
restore
public void restore(Version arg0,
boolean arg1)
throws VersionException,
ItemExistsException,
UnsupportedRepositoryOperationException,
LockException,
RepositoryException
- Specified by:
restore
in interface Node
- Throws:
VersionException
ItemExistsException
UnsupportedRepositoryOperationException
LockException
RepositoryException
restore
public void restore(Version arg0,
String arg1,
boolean arg2)
throws PathNotFoundException,
ItemExistsException,
VersionException,
ConstraintViolationException,
UnsupportedRepositoryOperationException,
LockException,
InvalidItemStateException,
RepositoryException
- Specified by:
restore
in interface Node
- Throws:
PathNotFoundException
ItemExistsException
VersionException
ConstraintViolationException
UnsupportedRepositoryOperationException
LockException
InvalidItemStateException
RepositoryException
restoreByLabel
public void restoreByLabel(String arg0,
boolean arg1)
throws VersionException,
ItemExistsException,
UnsupportedRepositoryOperationException,
LockException,
InvalidItemStateException,
RepositoryException
- Specified by:
restoreByLabel
in interface Node
- Throws:
VersionException
ItemExistsException
UnsupportedRepositoryOperationException
LockException
InvalidItemStateException
RepositoryException
getVersionHistory
public VersionHistory getVersionHistory()
throws UnsupportedRepositoryOperationException,
RepositoryException
- Specified by:
getVersionHistory
in interface Node
- Throws:
UnsupportedRepositoryOperationException
RepositoryException
getBaseVersion
public Version getBaseVersion()
throws UnsupportedRepositoryOperationException,
RepositoryException
- Specified by:
getBaseVersion
in interface Node
- Throws:
UnsupportedRepositoryOperationException
RepositoryException
lock
public Lock lock(boolean arg0,
boolean arg1)
throws UnsupportedRepositoryOperationException,
LockException,
AccessDeniedException,
InvalidItemStateException,
RepositoryException
- Specified by:
lock
in interface Node
- 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
unlock
public void unlock()
throws UnsupportedRepositoryOperationException,
LockException,
AccessDeniedException,
InvalidItemStateException,
RepositoryException
- Specified by:
unlock
in interface Node
- Throws:
UnsupportedRepositoryOperationException
LockException
AccessDeniedException
InvalidItemStateException
RepositoryException
holdsLock
public boolean holdsLock()
throws RepositoryException
- Specified by:
holdsLock
in interface Node
- Throws:
RepositoryException
isLocked
public boolean isLocked()
throws RepositoryException
- Specified by:
isLocked
in interface Node
- Throws:
RepositoryException
Copyright © 2004-2005 . All Rights Reserved.