public class ClientObject extends Object
Modifier | Constructor and Description |
---|---|
protected |
ClientObject(LocalAdapterFactory factory)
Creates a basic client adapter that uses the given factory
to create new adapters.
|
Modifier and Type | Method and Description |
---|---|
protected LocalAdapterFactory |
getFactory()
Returns the local adapter factory used to create new adapters.
|
protected javax.jcr.Item |
getItem(javax.jcr.Session session,
RemoteItem remote)
Utility method to create a local adapter for a remote item.
|
protected javax.jcr.Node |
getNode(javax.jcr.Session session,
RemoteNode remote)
Utility method to create a local adapter for a remote node.
|
protected javax.jcr.nodetype.NodeType[] |
getNodeTypeArray(RemoteNodeType[] remotes)
Utility method for creating an array of local node type adapters
for an array of remote node types.
|
protected ClientObject(LocalAdapterFactory factory)
factory
- local adapter factoryprotected LocalAdapterFactory getFactory()
protected javax.jcr.Item getItem(javax.jcr.Session session, RemoteItem remote)
Property
,
a Node
, or an Item
adapter using
the local adapter factory.
If the remote item is a RemoteNode
, this method delegates
to getNode(Session, RemoteNode)
.
session
- current sessionremote
- remote itemprotected javax.jcr.Node getNode(javax.jcr.Session session, RemoteNode remote)
Node
,
a VersionHistory
, or a
Version
adapter using
the local adapter factory.session
- current sessionremote
- remote nodeprotected javax.jcr.nodetype.NodeType[] getNodeTypeArray(RemoteNodeType[] remotes)
A null
input is treated as an empty array.
remotes
- remote node typesCopyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.