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 public interface RemoteItem extends Remote
Deprecated.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
Iteminterface. Used by theServerItemandClientItemadapter 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 RemoteItemgetAncestor(int level)Deprecated.Remote version of theItem.getAncestor(int)method.intgetDepth()Deprecated.Remote version of theItem.getDepth()method.StringgetName()Deprecated.Remote version of theItem.getName()method.RemoteNodegetParent()Deprecated.Remote version of theItem.getParent()method.StringgetPath()Deprecated.Remote version of theItem.getPath()method.booleanisModified()Deprecated.Remote version of theItem.isModified()method.booleanisNew()Deprecated.Remote version of theItem.isNew()method.voidrefresh(boolean keepChanges)Deprecated.Remote version of theItem.refresh(boolean)method.voidremove()Deprecated.Remote version of theItem.remove()method.voidsave()Deprecated.Remote version of theItem.save()method.
-
-
-
Method Detail
-
getPath
String getPath() throws RepositoryException, RemoteException
Deprecated.Remote version of theItem.getPath()method.- Returns:
- item path
- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
getName
String getName() throws RepositoryException, RemoteException
Deprecated.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.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.Remote version of theItem.getParent()method.- Returns:
- parent node
- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
getDepth
int getDepth() throws RepositoryException, RemoteExceptionDeprecated.Remote version of theItem.getDepth()method.- Returns:
- item depth
- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
isNew
boolean isNew() throws RemoteExceptionDeprecated.Remote version of theItem.isNew()method.- Returns:
trueif the item is new,falseotherwise- Throws:
RemoteException- on RMI errors
-
isModified
boolean isModified() throws RemoteExceptionDeprecated.Remote version of theItem.isModified()method.- Returns:
trueif the item is modified,falseotherwise- Throws:
RemoteException- on RMI errors
-
save
void save() throws RepositoryException, RemoteException
Deprecated.Remote version of theItem.save()method.- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
refresh
void refresh(boolean keepChanges) throws RepositoryException, RemoteExceptionDeprecated.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, RemoteExceptionDeprecated.Remote version of theItem.remove()method.- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
-