|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.services.jcr.rmi.api.client.ClientObject
org.exoplatform.services.jcr.rmi.api.client.ClientItem
public class ClientItem
Local adapter for the JCR-RMI RemoteItem inteface. 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,
rmi.remote.RemoteItem| Constructor Summary | |
|---|---|
ClientItem(javax.jcr.Session session,
RemoteItem remote,
LocalAdapterFactory factory)
Creates a local adapter for the given remote item. |
|
| Method Summary | |
|---|---|
void |
accept(javax.jcr.ItemVisitor visitor)
Accepts the visitor to visit this item. |
boolean |
equals(java.lang.Object obj)
|
javax.jcr.Item |
getAncestor(int level)
|
int |
getDepth()
|
java.lang.String |
getName()
|
javax.jcr.Node |
getParent()
|
java.lang.String |
getPath()
|
javax.jcr.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(javax.jcr.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.exoplatform.services.jcr.rmi.api.client.ClientObject |
|---|
getFactory, getItem, getNode, getNodeTypeArray |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ClientItem(javax.jcr.Session session,
RemoteItem remote,
LocalAdapterFactory factory)
session - current sessionremote - remote itemfactory - local adapter factory| Method Detail |
|---|
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic javax.jcr.Session getSession()
getSession in interface javax.jcr.Item
public java.lang.String getPath()
throws javax.jcr.RepositoryException
getPath in interface javax.jcr.Itemjavax.jcr.RepositoryException
public java.lang.String getName()
throws javax.jcr.RepositoryException
getName in interface javax.jcr.Itemjavax.jcr.RepositoryException
public javax.jcr.Item getAncestor(int level)
throws javax.jcr.RepositoryException
getAncestor in interface javax.jcr.Itemjavax.jcr.RepositoryException
public javax.jcr.Node getParent()
throws javax.jcr.RepositoryException
getParent in interface javax.jcr.Itemjavax.jcr.RepositoryException
public int getDepth()
throws javax.jcr.RepositoryException
getDepth in interface javax.jcr.Itemjavax.jcr.RepositoryExceptionpublic boolean isNode()
Node subclasses.
isNode in interface javax.jcr.Itempublic boolean isNew()
isNew in interface javax.jcr.Itempublic boolean isModified()
isModified in interface javax.jcr.Item
public boolean isSame(javax.jcr.Item item)
throws javax.jcr.RepositoryException
isSame in interface javax.jcr.Itemjavax.jcr.RepositoryExceptionItem.getPath()
public void accept(javax.jcr.ItemVisitor visitor)
throws javax.jcr.RepositoryException
Node and Property
subclasses should override this method to call the appropriate ItemVisitor
methods, as the default implementation does nothing.
accept in interface javax.jcr.Itemjavax.jcr.RepositoryException
public void save()
throws javax.jcr.RepositoryException
save in interface javax.jcr.Itemjavax.jcr.RepositoryException
public void refresh(boolean keepChanges)
throws javax.jcr.RepositoryException
refresh in interface javax.jcr.Itemjavax.jcr.RepositoryException
public void remove()
throws javax.jcr.RepositoryException
remove in interface javax.jcr.Itemjavax.jcr.RepositoryException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||