Package org.apache.jackrabbit.rmi.client
Class ClientItem
- java.lang.Object
-
- org.apache.jackrabbit.rmi.client.ClientObject
-
- org.apache.jackrabbit.rmi.client.ClientItem
-
- All Implemented Interfaces:
Item
- Direct Known Subclasses:
ClientNode,ClientProperty
@Deprecated public class ClientItem extends ClientObject implements Item
Deprecated.RMI support is deprecated and will be removed in a future version of Jackrabbit; see Jira ticket JCR-4972 for more information.Local adapter for the JCR-RMI
RemoteIteminterface. This class makes a remote item locally available using the JCRIteminterface. Used mainly as the base class for theClientPropertyandClientNodeadapters.- See Also:
Item,RemoteItem
-
-
Constructor Summary
Constructors Constructor Description ClientItem(Session session, RemoteItem remote, LocalAdapterFactory factory)Deprecated.Creates a local adapter for the given remote item.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaccept(ItemVisitor visitor)Deprecated.Accepts the visitor to visit this item.ItemgetAncestor(int level)Deprecated.intgetDepth()Deprecated.StringgetName()Deprecated.NodegetParent()Deprecated.StringgetPath()Deprecated.SessiongetSession()Deprecated.Returns the current session without contacting the remote item.booleanisModified()Deprecated.booleanisNew()Deprecated.booleanisNode()Deprecated.Returns false by default without contacting the remote item.booleanisSame(Item item)Deprecated.Checks whether this instance represents the same repository item as the given other instance.voidrefresh(boolean keepChanges)Deprecated.voidremove()Deprecated.voidsave()Deprecated.-
Methods inherited from class org.apache.jackrabbit.rmi.client.ClientObject
getFactory, getItem, getNode, getNodeTypeArray
-
-
-
-
Constructor Detail
-
ClientItem
public ClientItem(Session session, RemoteItem remote, LocalAdapterFactory factory)
Deprecated.Creates a local adapter for the given remote item.- Parameters:
session- current sessionremote- remote itemfactory- local adapter factory
-
-
Method Detail
-
getSession
public Session getSession()
Deprecated.Returns the current session without contacting the remote item.- Specified by:
getSessionin interfaceItem
-
getPath
public String getPath() throws RepositoryException
Deprecated.- Specified by:
getPathin interfaceItem- Throws:
RepositoryException
-
getName
public String getName() throws RepositoryException
Deprecated.- Specified by:
getNamein interfaceItem- Throws:
RepositoryException
-
getAncestor
public Item getAncestor(int level) throws RepositoryException
Deprecated.- Specified by:
getAncestorin interfaceItem- Throws:
RepositoryException
-
getParent
public Node getParent() throws RepositoryException
Deprecated.- Specified by:
getParentin interfaceItem- Throws:
RepositoryException
-
getDepth
public int getDepth() throws RepositoryExceptionDeprecated.- Specified by:
getDepthin interfaceItem- Throws:
RepositoryException
-
isNode
public boolean isNode()
Deprecated.Returns false by default without contacting the remote item. This method should be overridden byNodesubclasses.
-
isModified
public boolean isModified()
Deprecated.- Specified by:
isModifiedin interfaceItem
-
isSame
public boolean isSame(Item item) throws RepositoryException
Deprecated.Checks whether this instance represents the same repository item as the given other instance. A simple heuristic is used to first check some generic conditions (null values, instance equality, type equality), after which the item paths are compared to determine sameness. A RuntimeException is thrown if the item paths cannot be retrieved.- Specified by:
isSamein interfaceItem- Throws:
RepositoryException- See Also:
Item.getPath()
-
accept
public void accept(ItemVisitor visitor) throws RepositoryException
Deprecated.Accepts the visitor to visit this item.NodeandPropertysubclasses should override this method to call the appropriateItemVisitormethods, as the default implementation does nothing.- Specified by:
acceptin interfaceItem- Throws:
RepositoryException
-
save
public void save() throws RepositoryExceptionDeprecated.- Specified by:
savein interfaceItem- Throws:
RepositoryException
-
refresh
public void refresh(boolean keepChanges) throws RepositoryExceptionDeprecated.- Specified by:
refreshin interfaceItem- Throws:
RepositoryException
-
remove
public void remove() throws RepositoryExceptionDeprecated.- Specified by:
removein interfaceItem- Throws:
RepositoryException
-
-