public class ServerItem extends ServerObject implements RemoteItem
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 Formref
Constructor and Description |
---|
ServerItem(Item item,
RemoteAdapterFactory factory)
Creates a remote adapter for the given local item.
|
Modifier and Type | Method and Description |
---|---|
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. |
getFactory, getRemoteItem, getRemoteNode, getRemoteNodeTypeArray, getRepositoryException, getSerialValue, getSerialValues
clone, exportObject, exportObject, exportObject, unexportObject
getClientHost, getLog, setLog
public ServerItem(Item item, RemoteAdapterFactory factory) throws RemoteException
item
- local item to be adaptedfactory
- remote adapter factoryRemoteException
- on RMI errorspublic String getPath() throws RepositoryException, RemoteException
Item.getPath()
method.getPath
in interface RemoteItem
RepositoryException
- on repository errorsRemoteException
- on RMI errorspublic String getName() throws RepositoryException, RemoteException
Item.getName()
method.getName
in interface RemoteItem
RepositoryException
- on repository errorsRemoteException
- on RMI errorspublic void save() throws RepositoryException, RemoteException
Item.save()
method.save
in interface RemoteItem
RepositoryException
- on repository errorsRemoteException
- on RMI errorspublic RemoteItem getAncestor(int level) throws RepositoryException, RemoteException
Item.getAncestor(int)
method.getAncestor
in interface RemoteItem
level
- ancestor levelRepositoryException
- on repository errorsRemoteException
- on RMI errorspublic int getDepth() throws RepositoryException, RemoteException
Item.getDepth()
method.getDepth
in interface RemoteItem
RepositoryException
- on repository errorsRemoteException
- on RMI errorspublic RemoteNode getParent() throws RepositoryException, RemoteException
Item.getParent()
method.getParent
in interface RemoteItem
RepositoryException
- on repository errorsRemoteException
- on RMI errorspublic boolean isModified() throws RemoteException
Item.isModified()
method.isModified
in interface RemoteItem
true
if the item is modified,
false
otherwiseRemoteException
- on RMI errorspublic boolean isNew() throws RemoteException
Item.isNew()
method.isNew
in interface RemoteItem
true
if the item is new,
false
otherwiseRemoteException
- on RMI errorspublic void refresh(boolean keepChanges) throws RepositoryException, RemoteException
Item.refresh(boolean)
method.refresh
in interface RemoteItem
keepChanges
- flag to keep transient changesRepositoryException
- on repository errorsRemoteException
- on RMI errorspublic void remove() throws RepositoryException, RemoteException
Item.remove()
method.remove
in interface RemoteItem
RepositoryException
- on repository errorsRemoteException
- on RMI errorsCopyright © 2004–2021 The Apache Software Foundation. All rights reserved.