|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.jackrabbit.base.BaseItem
Item base class.
| Constructor Summary | |
protected |
BaseItem()
Protected constructor. |
| Method Summary | |
void |
accept(ItemVisitor visitor)
Does nothing. |
Item |
getAncestor(int depth)
Implemented by calling getDepth() and returning either
this item, getSession().getRootNode(), or
getParent().getAncestor(), or throwing an
ItemNotFoundException depending on the
given depth. |
int |
getDepth()
Implemented by calling getParent().getDepth() + 1 and
returning 0 if an
ItemNotFoundException is thrown by
getParent() (indicating that this is the root node). |
String |
getName()
Not implemented. |
Node |
getParent()
Not implemented. |
String |
getPath()
Implemented by calling getParent().getPath() and
appending getName() to the returned parent path. |
Session |
getSession()
Not implemented. |
boolean |
isModified()
Not implemented. |
boolean |
isNew()
Not implemented. |
boolean |
isNode()
Always returns false. |
boolean |
isSame(Item otherItem)
Not implemented. |
void |
refresh(boolean keepChanges)
Not implemented. |
void |
remove()
Not implemented. |
void |
save()
Not implemented. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
protected BaseItem()
| Method Detail |
public String getPath()
throws RepositoryException
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 ItemRepositoryException
public String getName()
throws RepositoryException
getName in interface ItemRepositoryException
public Item getAncestor(int depth)
throws ItemNotFoundException,
AccessDeniedException,
RepositoryException
getDepth() and returning either
this item, getSession().getRootNode(), or
getParent().getAncestor(), or throwing an
ItemNotFoundException depending on the
given depth.
getAncestor in interface ItemItemNotFoundException
AccessDeniedException
RepositoryException
public Node getParent()
throws ItemNotFoundException,
AccessDeniedException,
RepositoryException
getParent in interface ItemItemNotFoundException
AccessDeniedException
RepositoryException
public int getDepth()
throws RepositoryException
getParent().getDepth() + 1 and
returning 0 if an
ItemNotFoundException is thrown by
getParent() (indicating that this is the root node).
getDepth in interface ItemRepositoryException
public Session getSession()
throws RepositoryException
getSession in interface ItemRepositoryExceptionpublic boolean isNode()
false.
isNode in interface Itempublic boolean isNew()
isNew in interface Itempublic boolean isModified()
isModified in interface Itempublic boolean isSame(Item otherItem)
isSame in interface Item
public void accept(ItemVisitor visitor)
throws RepositoryException
accept in interface ItemRepositoryException
public void save()
throws AccessDeniedException,
ConstraintViolationException,
InvalidItemStateException,
ReferentialIntegrityException,
VersionException,
LockException,
RepositoryException
save in interface ItemAccessDeniedException
ConstraintViolationException
InvalidItemStateException
ReferentialIntegrityException
VersionException
LockException
RepositoryException
public void refresh(boolean keepChanges)
throws InvalidItemStateException,
RepositoryException
refresh in interface ItemInvalidItemStateException
RepositoryException
public void remove()
throws VersionException,
LockException,
RepositoryException
remove in interface ItemVersionException
LockException
RepositoryException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||