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(forRemoval=true) public class ClientItem extends ClientObject implements Item
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.Local adapter for the JCR-RMI
RemoteItem
interface. This class makes a remote item locally available using the JCRItem
interface. Used mainly as the base class for theClientProperty
andClientNode
adapters.- See Also:
Item
,RemoteItem
-
-
Constructor Summary
Constructors Constructor Description ClientItem(Session session, RemoteItem remote, LocalAdapterFactory factory)
Deprecated, for removal: This API element is subject to removal in a future version.Creates a local adapter for the given remote item.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
accept(ItemVisitor visitor)
Deprecated, for removal: This API element is subject to removal in a future version.Accepts the visitor to visit this item.Item
getAncestor(int level)
Deprecated, for removal: This API element is subject to removal in a future version.int
getDepth()
Deprecated, for removal: This API element is subject to removal in a future version.String
getName()
Deprecated, for removal: This API element is subject to removal in a future version.Node
getParent()
Deprecated, for removal: This API element is subject to removal in a future version.String
getPath()
Deprecated, for removal: This API element is subject to removal in a future version.Session
getSession()
Deprecated, for removal: This API element is subject to removal in a future version.Returns the current session without contacting the remote item.boolean
isModified()
Deprecated, for removal: This API element is subject to removal in a future version.boolean
isNew()
Deprecated, for removal: This API element is subject to removal in a future version.boolean
isNode()
Deprecated, for removal: This API element is subject to removal in a future version.Returns false by default without contacting the remote item.boolean
isSame(Item item)
Deprecated, for removal: This API element is subject to removal in a future version.Checks whether this instance represents the same repository item as the given other instance.void
refresh(boolean keepChanges)
Deprecated, for removal: This API element is subject to removal in a future version.void
remove()
Deprecated, for removal: This API element is subject to removal in a future version.void
save()
Deprecated, for removal: This API element is subject to removal in a future version.-
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, for removal: This API element is subject to removal in a future version.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, for removal: This API element is subject to removal in a future version.Returns the current session without contacting the remote item.- Specified by:
getSession
in interfaceItem
-
getPath
public String getPath() throws RepositoryException
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getPath
in interfaceItem
- Throws:
RepositoryException
-
getName
public String getName() throws RepositoryException
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getName
in interfaceItem
- Throws:
RepositoryException
-
getAncestor
public Item getAncestor(int level) throws RepositoryException
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getAncestor
in interfaceItem
- Throws:
RepositoryException
-
getParent
public Node getParent() throws RepositoryException
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getParent
in interfaceItem
- Throws:
RepositoryException
-
getDepth
public int getDepth() throws RepositoryException
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getDepth
in interfaceItem
- Throws:
RepositoryException
-
isNode
public boolean isNode()
Deprecated, for removal: This API element is subject to removal in a future version.Returns false by default without contacting the remote item. This method should be overridden byNode
subclasses.
-
isNew
public boolean isNew()
Deprecated, for removal: This API element is subject to removal in a future version.
-
isModified
public boolean isModified()
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
isModified
in interfaceItem
-
isSame
public boolean isSame(Item item) throws RepositoryException
Deprecated, for removal: This API element is subject to removal in a future version.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:
isSame
in interfaceItem
- Throws:
RepositoryException
- See Also:
Item.getPath()
-
accept
public void accept(ItemVisitor visitor) throws RepositoryException
Deprecated, for removal: This API element is subject to removal in a future version.Accepts the visitor to visit this item.Node
andProperty
subclasses should override this method to call the appropriateItemVisitor
methods, as the default implementation does nothing.- Specified by:
accept
in interfaceItem
- Throws:
RepositoryException
-
save
public void save() throws RepositoryException
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
save
in interfaceItem
- Throws:
RepositoryException
-
refresh
public void refresh(boolean keepChanges) throws RepositoryException
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
refresh
in interfaceItem
- Throws:
RepositoryException
-
remove
public void remove() throws RepositoryException
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
remove
in interfaceItem
- Throws:
RepositoryException
-
-