|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.rmi.client.ClientObject
org.apache.jackrabbit.rmi.client.ClientItem
public class ClientItem
Local adapter for the JCR-RMI
RemoteItem
interface. This class makes a remote item locally available using
the JCR Item interface. Used mainly as the
base class for the
ClientProperty
and
ClientNode adapters.
Item,
RemoteItem| Constructor Summary | |
|---|---|
ClientItem(Session session,
RemoteItem remote,
LocalAdapterFactory factory)
Creates a local adapter for the given remote item. |
|
| Method Summary | |
|---|---|
void |
accept(ItemVisitor visitor)
Accepts the visitor to visit this item. |
Item |
getAncestor(int level)
|
int |
getDepth()
|
String |
getName()
|
Node |
getParent()
|
String |
getPath()
|
Session |
getSession()
Returns the current session without contacting the remote item. |
boolean |
isModified()
|
boolean |
isNew()
|
boolean |
isNode()
Returns false by default without contacting the remote item. |
boolean |
isSame(Item item)
Checks whether this instance represents the same repository item as the given other instance. |
void |
refresh(boolean keepChanges)
|
void |
remove()
|
void |
save()
|
| Methods inherited from class org.apache.jackrabbit.rmi.client.ClientObject |
|---|
getFactory, getItem, getNode, getNodeTypeArray |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ClientItem(Session session,
RemoteItem remote,
LocalAdapterFactory factory)
session - current sessionremote - remote itemfactory - local adapter factory| Method Detail |
|---|
public Session getSession()
getSession in interface Item
public String getPath()
throws RepositoryException
getPath in interface ItemRepositoryException
public String getName()
throws RepositoryException
getName in interface ItemRepositoryException
public Item getAncestor(int level)
throws RepositoryException
getAncestor in interface ItemRepositoryException
public Node getParent()
throws RepositoryException
getParent in interface ItemRepositoryException
public int getDepth()
throws RepositoryException
getDepth in interface ItemRepositoryExceptionpublic boolean isNode()
Node subclasses.
isNode in interface Itempublic boolean isNew()
isNew in interface Itempublic boolean isModified()
isModified in interface Item
public boolean isSame(Item item)
throws RepositoryException
isSame in interface ItemRepositoryExceptionItem.getPath()
public void accept(ItemVisitor visitor)
throws RepositoryException
Node and
Property subclasses should override this method
to call the appropriate ItemVisitor methods,
as the default implementation does nothing.
accept in interface ItemRepositoryException
public void save()
throws RepositoryException
save in interface ItemRepositoryException
public void refresh(boolean keepChanges)
throws RepositoryException
refresh in interface ItemRepositoryException
public void remove()
throws RepositoryException
remove in interface ItemRepositoryException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||