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, getNodeTypeArraypublic ClientItem(Session session, RemoteItem remote, LocalAdapterFactory factory)
session - current sessionremote - remote itemfactory - local adapter factorypublic Session getSession()
getSession in interface Itempublic String getPath() throws RepositoryException
getPath in interface ItemRepositoryExceptionpublic String getName() throws RepositoryException
getName in interface ItemRepositoryExceptionpublic Item getAncestor(int level) throws RepositoryException
getAncestor in interface ItemRepositoryExceptionpublic Node getParent() throws RepositoryException
getParent in interface ItemRepositoryExceptionpublic int getDepth()
throws RepositoryException
getDepth in interface ItemRepositoryExceptionpublic boolean isNode()
Node subclasses.
public boolean isModified()
isModified in interface Itempublic boolean isSame(Item item) throws RepositoryException
isSame in interface ItemRepositoryExceptionItem.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 ItemRepositoryExceptionpublic void save()
throws RepositoryException
save in interface ItemRepositoryExceptionpublic void refresh(boolean keepChanges)
throws RepositoryException
refresh in interface ItemRepositoryExceptionpublic void remove()
throws RepositoryException
remove in interface ItemRepositoryExceptionCopyright © 2004–2024 The Apache Software Foundation. All rights reserved.