Remote version of the JCR Item
interface.
Used by the ServerItem
and ClientItem
adapter base classes to provide transparent RMI access to remote items.
The methods in this interface are documented only with a reference to a corresponding Item method. The remote object will simply forward the method call to the underlying Item instance. Argument and return values, as well as possible exceptions, are copied over the network. Complex return values (Items and Nodes) are returned as remote references to the corresponding remote interfaces. RMI errors are signaled with RemoteExceptions.
@Deprecated public interface RemoteItem extends Remote
Item
,
ClientItem
,
ServerItem
Modifier and Type | Method and Description |
---|---|
RemoteItem |
getAncestor(int level)
Deprecated.
Remote version of the
Item.getAncestor(int) method. |
int |
getDepth()
Deprecated.
Remote version of the
Item.getDepth() method. |
String |
getName()
Deprecated.
Remote version of the
Item.getName() method. |
RemoteNode |
getParent()
Deprecated.
Remote version of the
Item.getParent() method. |
String |
getPath()
Deprecated.
Remote version of the
Item.getPath() method. |
boolean |
isModified()
Deprecated.
Remote version of the
Item.isModified() method. |
boolean |
isNew()
Deprecated.
Remote version of the
Item.isNew() method. |
void |
refresh(boolean keepChanges)
Deprecated.
Remote version of the
Item.refresh(boolean) method. |
void |
remove()
Deprecated.
Remote version of the
Item.remove() method. |
void |
save()
Deprecated.
Remote version of the
Item.save() method. |
String getPath() throws RepositoryException, RemoteException
Item.getPath()
method.RepositoryException
- on repository errorsRemoteException
- on RMI errorsString getName() throws RepositoryException, RemoteException
Item.getName()
method.RepositoryException
- on repository errorsRemoteException
- on RMI errorsRemoteItem getAncestor(int level) throws RepositoryException, RemoteException
Item.getAncestor(int)
method.level
- ancestor levelRepositoryException
- on repository errorsRemoteException
- on RMI errorsRemoteNode getParent() throws RepositoryException, RemoteException
Item.getParent()
method.RepositoryException
- on repository errorsRemoteException
- on RMI errorsint getDepth() throws RepositoryException, RemoteException
Item.getDepth()
method.RepositoryException
- on repository errorsRemoteException
- on RMI errorsboolean isNew() throws RemoteException
Item.isNew()
method.true
if the item is new,
false
otherwiseRemoteException
- on RMI errorsboolean isModified() throws RemoteException
Item.isModified()
method.true
if the item is modified,
false
otherwiseRemoteException
- on RMI errorsvoid save() throws RepositoryException, RemoteException
Item.save()
method.RepositoryException
- on repository errorsRemoteException
- on RMI errorsvoid refresh(boolean keepChanges) throws RepositoryException, RemoteException
Item.refresh(boolean)
method.keepChanges
- flag to keep transient changesRepositoryException
- on repository errorsRemoteException
- on RMI errorsvoid remove() throws RepositoryException, RemoteException
Item.remove()
method.RepositoryException
- on repository errorsRemoteException
- on RMI errorsCopyright © 2004–2024 The Apache Software Foundation. All rights reserved.