|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
org.apache.jackrabbit.rmi.server.ServerObject
org.apache.jackrabbit.rmi.server.ServerItem
public class ServerItem
Remote adapter for the JCR Item interface.
This class makes a local item available as an RMI service using
the RemoteItem
interface. Used mainly as the base class for the
ServerProperty
and ServerNode
adapters.
Item,
RemoteItem,
Serialized Form| Field Summary |
|---|
| Fields inherited from class java.rmi.server.RemoteObject |
|---|
ref |
| Constructor Summary | |
|---|---|
ServerItem(Item item,
RemoteAdapterFactory factory)
Creates a remote adapter for the given local item. |
|
| Method Summary | |
|---|---|
RemoteItem |
getAncestor(int level)
Remote version of the Item.getAncestor(int) method. |
int |
getDepth()
Remote version of the Item.getDepth() method. |
String |
getName()
Remote version of the Item.getName() method. |
RemoteNode |
getParent()
Remote version of the Item.getParent() method. |
String |
getPath()
Remote version of the Item.getPath() method. |
boolean |
isModified()
Remote version of the Item.isModified() method. |
boolean |
isNew()
Remote version of the Item.isNew() method. |
void |
refresh(boolean keepChanges)
Remote version of the Item.refresh(boolean) method. |
void |
remove()
Remote version of the Item.remove() method. |
void |
save()
Remote version of the Item.save() method. |
| Methods inherited from class org.apache.jackrabbit.rmi.server.ServerObject |
|---|
getFactory, getRemoteItem, getRemoteNode, getRemoteNodeTypeArray, getRepositoryException, getSerialValue, getSerialValues |
| Methods inherited from class java.rmi.server.UnicastRemoteObject |
|---|
clone, exportObject, exportObject, exportObject, unexportObject |
| Methods inherited from class java.rmi.server.RemoteServer |
|---|
getClientHost, getLog, setLog |
| Methods inherited from class java.rmi.server.RemoteObject |
|---|
equals, getRef, hashCode, toString, toStub |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ServerItem(Item item,
RemoteAdapterFactory factory)
throws RemoteException
item - local item to be adaptedfactory - remote adapter factory
RemoteException - on RMI errors| Method Detail |
|---|
public String getPath()
throws RepositoryException,
RemoteException
Item.getPath() method.
getPath in interface RemoteItemRepositoryException - on repository errors
RemoteException - on RMI errors
public String getName()
throws RepositoryException,
RemoteException
Item.getName() method.
getName in interface RemoteItemRepositoryException - on repository errors
RemoteException - on RMI errors
public void save()
throws RepositoryException,
RemoteException
Item.save() method.
save in interface RemoteItemRepositoryException - on repository errors
RemoteException - on RMI errors
public RemoteItem getAncestor(int level)
throws RepositoryException,
RemoteException
Item.getAncestor(int) method.
getAncestor in interface RemoteItemlevel - ancestor level
RepositoryException - on repository errors
RemoteException - on RMI errors
public int getDepth()
throws RepositoryException,
RemoteException
Item.getDepth() method.
getDepth in interface RemoteItemRepositoryException - on repository errors
RemoteException - on RMI errors
public RemoteNode getParent()
throws RepositoryException,
RemoteException
Item.getParent() method.
getParent in interface RemoteItemRepositoryException - on repository errors
RemoteException - on RMI errors
public boolean isModified()
throws RemoteException
Item.isModified() method.
isModified in interface RemoteItemtrue if the item is modified,
false otherwise
RemoteException - on RMI errors
public boolean isNew()
throws RemoteException
Item.isNew() method.
isNew in interface RemoteItemtrue if the item is new,
false otherwise
RemoteException - on RMI errors
public void refresh(boolean keepChanges)
throws RepositoryException,
RemoteException
Item.refresh(boolean) method.
refresh in interface RemoteItemkeepChanges - flag to keep transient changes
RepositoryException - on repository errors
RemoteException - on RMI errors
public void remove()
throws RepositoryException,
RemoteException
Item.remove() method.
remove in interface RemoteItemRepositoryException - on repository errors
RemoteException - on RMI errors
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||