|
|||||||||||
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 Item
RepositoryException
public String getName() throws RepositoryException
getName
in interface Item
RepositoryException
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 Item
ItemNotFoundException
AccessDeniedException
RepositoryException
public Node getParent() throws ItemNotFoundException, AccessDeniedException, RepositoryException
getParent
in interface Item
ItemNotFoundException
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 Item
RepositoryException
public Session getSession() throws RepositoryException
getSession
in interface Item
RepositoryException
public boolean isNode()
false
.
isNode
in interface Item
public boolean isNew()
isNew
in interface Item
public boolean isModified()
isModified
in interface Item
public boolean isSame(Item otherItem)
isSame
in interface Item
public void accept(ItemVisitor visitor) throws RepositoryException
accept
in interface Item
RepositoryException
public void save() throws AccessDeniedException, ConstraintViolationException, InvalidItemStateException, ReferentialIntegrityException, VersionException, LockException, RepositoryException
save
in interface Item
AccessDeniedException
ConstraintViolationException
InvalidItemStateException
ReferentialIntegrityException
VersionException
LockException
RepositoryException
public void refresh(boolean keepChanges) throws InvalidItemStateException, RepositoryException
refresh
in interface Item
InvalidItemStateException
RepositoryException
public void remove() throws VersionException, LockException, RepositoryException
remove
in interface Item
VersionException
LockException
RepositoryException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |