org.apache.jackrabbit.decorator
Class ChainedItemDecorator

java.lang.Object
  extended byorg.apache.jackrabbit.decorator.ChainedItemDecorator
All Implemented Interfaces:
Item
Direct Known Subclasses:
NodeDecorator

public class ChainedItemDecorator
extends Object
implements Item

TODO


Constructor Summary
ChainedItemDecorator(ItemDecorator decorator)
           
 
Method Summary
 void accept(ItemVisitor visitor)
          
 Item getAncestor(int depth)
          
 int getDepth()
          
 String getName()
          
 Node getParent()
          
 String getPath()
          
 Session getSession()
          
 boolean isModified()
          
 boolean isNew()
          
 boolean isNode()
          
 boolean isSame(Item otherItem)
          
 void refresh(boolean keepChanges)
          
 void remove()
          
 void save()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChainedItemDecorator

public ChainedItemDecorator(ItemDecorator decorator)
Method Detail

getSession

public Session getSession()
                   throws RepositoryException

Specified by:
getSession in interface Item
Throws:
RepositoryException

getPath

public String getPath()
               throws RepositoryException

Specified by:
getPath in interface Item
Throws:
RepositoryException

getName

public String getName()
               throws RepositoryException

Specified by:
getName in interface Item
Throws:
RepositoryException

getAncestor

public Item getAncestor(int depth)
                 throws ItemNotFoundException,
                        AccessDeniedException,
                        RepositoryException

Specified by:
getAncestor in interface Item
Throws:
ItemNotFoundException
AccessDeniedException
RepositoryException

getParent

public Node getParent()
               throws ItemNotFoundException,
                      AccessDeniedException,
                      RepositoryException

Specified by:
getParent in interface Item
Throws:
ItemNotFoundException
AccessDeniedException
RepositoryException

getDepth

public int getDepth()
             throws RepositoryException

Specified by:
getDepth in interface Item
Throws:
RepositoryException

isNode

public boolean isNode()

Specified by:
isNode in interface Item

isNew

public boolean isNew()

Specified by:
isNew in interface Item

isModified

public boolean isModified()

Specified by:
isModified in interface Item

isSame

public boolean isSame(Item otherItem)

Specified by:
isSame in interface Item

accept

public void accept(ItemVisitor visitor)
            throws RepositoryException

Specified by:
accept in interface Item
Throws:
RepositoryException

save

public void save()
          throws AccessDeniedException,
                 ConstraintViolationException,
                 InvalidItemStateException,
                 ReferentialIntegrityException,
                 VersionException,
                 LockException,
                 RepositoryException

Specified by:
save in interface Item
Throws:
AccessDeniedException
ConstraintViolationException
InvalidItemStateException
ReferentialIntegrityException
VersionException
LockException
RepositoryException

refresh

public void refresh(boolean keepChanges)
             throws InvalidItemStateException,
                    RepositoryException

Specified by:
refresh in interface Item
Throws:
InvalidItemStateException
RepositoryException

remove

public void remove()
            throws VersionException,
                   LockException,
                   RepositoryException

Specified by:
remove in interface Item
Throws:
VersionException
LockException
RepositoryException


Copyright © 2004-2005 . All Rights Reserved.