Package org.apache.jackrabbit.rmi.remote
Interface RemoteItem
-
- All Superinterfaces:
Remote
- All Known Subinterfaces:
RemoteNode
,RemoteProperty
,RemoteVersion
,RemoteVersionHistory
- All Known Implementing Classes:
ServerItem
,ServerNode
,ServerProperty
,ServerVersion
,ServerVersionHistory
@Deprecated(forRemoval=true) public interface RemoteItem extends Remote
Deprecated, for removal: This API element is subject to removal in a future version.RMI support is deprecated and will be removed in a future version of Jackrabbit; see Jira ticket JCR-4972 for more information.Remote version of the JCR
Item
interface. Used by theServerItem
andClientItem
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.
- See Also:
Item
,ClientItem
,ServerItem
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description RemoteItem
getAncestor(int level)
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theItem.getAncestor(int)
method.int
getDepth()
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theItem.getDepth()
method.String
getName()
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theItem.getName()
method.RemoteNode
getParent()
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theItem.getParent()
method.String
getPath()
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theItem.getPath()
method.boolean
isModified()
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theItem.isModified()
method.boolean
isNew()
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theItem.isNew()
method.void
refresh(boolean keepChanges)
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theItem.refresh(boolean)
method.void
remove()
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theItem.remove()
method.void
save()
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theItem.save()
method.
-
-
-
Method Detail
-
getPath
String getPath() throws RepositoryException, RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theItem.getPath()
method.- Returns:
- item path
- Throws:
RepositoryException
- on repository errorsRemoteException
- on RMI errors
-
getName
String getName() throws RepositoryException, RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theItem.getName()
method.- Returns:
- item name
- Throws:
RepositoryException
- on repository errorsRemoteException
- on RMI errors
-
getAncestor
RemoteItem getAncestor(int level) throws RepositoryException, RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theItem.getAncestor(int)
method.- Parameters:
level
- ancestor level- Returns:
- ancestor item
- Throws:
RepositoryException
- on repository errorsRemoteException
- on RMI errors
-
getParent
RemoteNode getParent() throws RepositoryException, RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theItem.getParent()
method.- Returns:
- parent node
- Throws:
RepositoryException
- on repository errorsRemoteException
- on RMI errors
-
getDepth
int getDepth() throws RepositoryException, RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theItem.getDepth()
method.- Returns:
- item depth
- Throws:
RepositoryException
- on repository errorsRemoteException
- on RMI errors
-
isNew
boolean isNew() throws RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theItem.isNew()
method.- Returns:
true
if the item is new,false
otherwise- Throws:
RemoteException
- on RMI errors
-
isModified
boolean isModified() throws RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theItem.isModified()
method.- Returns:
true
if the item is modified,false
otherwise- Throws:
RemoteException
- on RMI errors
-
save
void save() throws RepositoryException, RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theItem.save()
method.- Throws:
RepositoryException
- on repository errorsRemoteException
- on RMI errors
-
refresh
void refresh(boolean keepChanges) throws RepositoryException, RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theItem.refresh(boolean)
method.- Parameters:
keepChanges
- flag to keep transient changes- Throws:
RepositoryException
- on repository errorsRemoteException
- on RMI errors
-
remove
void remove() throws RepositoryException, RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theItem.remove()
method.- Throws:
RepositoryException
- on repository errorsRemoteException
- on RMI errors
-
-