|
||||||||||
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 FormField 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 errorsMethod Detail |
---|
public String getPath() throws RepositoryException, RemoteException
Item.getPath()
method.
getPath
in interface RemoteItem
RepositoryException
- on repository errors
RemoteException
- on RMI errorspublic String getName() throws RepositoryException, RemoteException
Item.getName()
method.
getName
in interface RemoteItem
RepositoryException
- on repository errors
RemoteException
- on RMI errorspublic void save() throws RepositoryException, RemoteException
Item.save()
method.
save
in interface RemoteItem
RepositoryException
- on repository errors
RemoteException
- on RMI errorspublic RemoteItem getAncestor(int level) throws RepositoryException, RemoteException
Item.getAncestor(int)
method.
getAncestor
in interface RemoteItem
level
- ancestor level
RepositoryException
- on repository errors
RemoteException
- on RMI errorspublic int getDepth() throws RepositoryException, RemoteException
Item.getDepth()
method.
getDepth
in interface RemoteItem
RepositoryException
- on repository errors
RemoteException
- on RMI errorspublic RemoteNode getParent() throws RepositoryException, RemoteException
Item.getParent()
method.
getParent
in interface RemoteItem
RepositoryException
- on repository errors
RemoteException
- on RMI errorspublic boolean isModified() throws RemoteException
Item.isModified()
method.
isModified
in interface RemoteItem
true
if the item is modified,
false
otherwise
RemoteException
- on RMI errorspublic boolean isNew() throws RemoteException
Item.isNew()
method.
isNew
in interface RemoteItem
true
if the item is new,
false
otherwise
RemoteException
- on RMI errorspublic void refresh(boolean keepChanges) throws RepositoryException, RemoteException
Item.refresh(boolean)
method.
refresh
in interface RemoteItem
keepChanges
- flag to keep transient changes
RepositoryException
- on repository errors
RemoteException
- on RMI errorspublic void remove() throws RepositoryException, RemoteException
Item.remove()
method.
remove
in interface RemoteItem
RepositoryException
- on repository errors
RemoteException
- on RMI errors
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |