Local adapter for the JCR-RMI
RemoteItem
interface. This class makes a remote item locally available using
the JCR Item
interface. Used mainly as the
base class for the
ClientProperty
and
ClientNode
adapters.
@Deprecated public class ClientItem extends ClientObject implements Item
Item
,
RemoteItem
Constructor and Description |
---|
ClientItem(Session session,
RemoteItem remote,
LocalAdapterFactory factory)
Deprecated.
Creates a local adapter for the given remote item.
|
Modifier and Type | Method and Description |
---|---|
void |
accept(ItemVisitor visitor)
Deprecated.
Accepts the visitor to visit this item.
|
Item |
getAncestor(int level)
Deprecated.
|
int |
getDepth()
Deprecated.
|
String |
getName()
Deprecated.
|
Node |
getParent()
Deprecated.
|
String |
getPath()
Deprecated.
|
Session |
getSession()
Deprecated.
Returns the current session without contacting the remote item.
|
boolean |
isModified()
Deprecated.
|
boolean |
isNew()
Deprecated.
|
boolean |
isNode()
Deprecated.
Returns false by default without contacting the remote item.
|
boolean |
isSame(Item item)
Deprecated.
Checks whether this instance represents the same repository item as
the given other instance.
|
void |
refresh(boolean keepChanges)
Deprecated.
|
void |
remove()
Deprecated.
|
void |
save()
Deprecated.
|
getFactory, getItem, getNode, getNodeTypeArray
public ClientItem(Session session, RemoteItem remote, LocalAdapterFactory factory)
session
- current sessionremote
- remote itemfactory
- local adapter factorypublic Session getSession()
getSession
in interface Item
public String getPath() throws RepositoryException
getPath
in interface Item
RepositoryException
public String getName() throws RepositoryException
getName
in interface Item
RepositoryException
public Item getAncestor(int level) throws RepositoryException
getAncestor
in interface Item
RepositoryException
public Node getParent() throws RepositoryException
getParent
in interface Item
RepositoryException
public int getDepth() throws RepositoryException
getDepth
in interface Item
RepositoryException
public boolean isNode()
Node
subclasses.
public boolean isModified()
isModified
in interface Item
public boolean isSame(Item item) throws RepositoryException
isSame
in interface Item
RepositoryException
Item.getPath()
public void accept(ItemVisitor visitor) throws RepositoryException
Node
and
Property
subclasses should override this method
to call the appropriate ItemVisitor
methods,
as the default implementation does nothing.
accept
in interface Item
RepositoryException
public void save() throws RepositoryException
save
in interface Item
RepositoryException
public void refresh(boolean keepChanges) throws RepositoryException
refresh
in interface Item
RepositoryException
public void remove() throws RepositoryException
remove
in interface Item
RepositoryException
Copyright © 2004–2024 The Apache Software Foundation. All rights reserved.