Package org.apache.jackrabbit.rmi.server
Class ServerItem
- java.lang.Object
-
- java.rmi.server.RemoteObject
-
- java.rmi.server.RemoteServer
-
- java.rmi.server.UnicastRemoteObject
-
- org.apache.jackrabbit.rmi.server.ServerObject
-
- org.apache.jackrabbit.rmi.server.ServerItem
-
- All Implemented Interfaces:
Serializable,Remote,RemoteItem
- Direct Known Subclasses:
ServerNode,ServerProperty
@Deprecated public class ServerItem extends ServerObject implements RemoteItem
Deprecated.RMI support is deprecated and will be removed in a future version of Jackrabbit; see Jira ticket JCR-4972 for more information.Remote adapter for the JCR
Iteminterface. This class makes a local item available as an RMI service using theRemoteIteminterface. Used mainly as the base class for theServerPropertyandServerNodeadapters.- See Also:
Item,RemoteItem, Serialized Form
-
-
Field Summary
-
Fields inherited from class java.rmi.server.RemoteObject
ref
-
-
Constructor Summary
Constructors Constructor Description ServerItem(Item item, RemoteAdapterFactory factory)Deprecated.Creates a remote adapter for the given local item.
-
Method Summary
All Methods Instance Methods Concrete 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.-
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
-
-
-
-
Constructor Detail
-
ServerItem
public ServerItem(Item item, RemoteAdapterFactory factory) throws RemoteException
Deprecated.Creates a remote adapter for the given local item.- Parameters:
item- local item to be adaptedfactory- remote adapter factory- Throws:
RemoteException- on RMI errors
-
-
Method Detail
-
getPath
public String getPath() throws RepositoryException, RemoteException
Deprecated.Remote version of theItem.getPath()method.- Specified by:
getPathin interfaceRemoteItem- Returns:
- item path
- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
getName
public String getName() throws RepositoryException, RemoteException
Deprecated.Remote version of theItem.getName()method.- Specified by:
getNamein interfaceRemoteItem- Returns:
- item name
- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
save
public void save() throws RepositoryException, RemoteExceptionDeprecated.Remote version of theItem.save()method.- Specified by:
savein interfaceRemoteItem- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
getAncestor
public RemoteItem getAncestor(int level) throws RepositoryException, RemoteException
Deprecated.Remote version of theItem.getAncestor(int)method.- Specified by:
getAncestorin interfaceRemoteItem- Parameters:
level- ancestor level- Returns:
- ancestor item
- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
getDepth
public int getDepth() throws RepositoryException, RemoteExceptionDeprecated.Remote version of theItem.getDepth()method.- Specified by:
getDepthin interfaceRemoteItem- Returns:
- item depth
- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
getParent
public RemoteNode getParent() throws RepositoryException, RemoteException
Deprecated.Remote version of theItem.getParent()method.- Specified by:
getParentin interfaceRemoteItem- Returns:
- parent node
- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
isModified
public boolean isModified() throws RemoteExceptionDeprecated.Remote version of theItem.isModified()method.- Specified by:
isModifiedin interfaceRemoteItem- Returns:
trueif the item is modified,falseotherwise- Throws:
RemoteException- on RMI errors
-
isNew
public boolean isNew() throws RemoteExceptionDeprecated.Remote version of theItem.isNew()method.- Specified by:
isNewin interfaceRemoteItem- Returns:
trueif the item is new,falseotherwise- Throws:
RemoteException- on RMI errors
-
refresh
public void refresh(boolean keepChanges) throws RepositoryException, RemoteExceptionDeprecated.Remote version of theItem.refresh(boolean)method.- Specified by:
refreshin interfaceRemoteItem- Parameters:
keepChanges- flag to keep transient changes- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
remove
public void remove() throws RepositoryException, RemoteExceptionDeprecated.Remote version of theItem.remove()method.- Specified by:
removein interfaceRemoteItem- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
-