Package org.apache.jackrabbit.rmi.client
Class ClientObject
- java.lang.Object
-
- org.apache.jackrabbit.rmi.client.ClientObject
-
- Direct Known Subclasses:
ClientAccessControlEntry
,ClientAccessControlManager
,ClientAccessControlPolicy
,ClientItem
,ClientItemDefinition
,ClientIterator
,ClientLock
,ClientLockManager
,ClientNamespaceRegistry
,ClientNodeType
,ClientNodeTypeManager
,ClientObservationManager
,ClientPrivilege
,ClientQuery
,ClientQueryManager
,ClientQueryResult
,ClientRow
,ClientSession
,ClientVersionManager
,ClientWorkspace
,SafeClientRepository
@Deprecated(forRemoval=true) public class ClientObject extends Object
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.Base class for client adapter objects. The only purpose of this class is to centralize the handling of the local adapter factory used by the client adapters to instantiate new adapters.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ClientObject(LocalAdapterFactory factory)
Deprecated, for removal: This API element is subject to removal in a future version.Creates a basic client adapter that uses the given factory to create new adapters.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected LocalAdapterFactory
getFactory()
Deprecated, for removal: This API element is subject to removal in a future version.Returns the local adapter factory used to create new adapters.protected Item
getItem(Session session, RemoteItem remote)
Deprecated, for removal: This API element is subject to removal in a future version.Utility method to create a local adapter for a remote item.protected Node
getNode(Session session, RemoteNode remote)
Deprecated, for removal: This API element is subject to removal in a future version.Utility method to create a local adapter for a remote node.protected NodeType[]
getNodeTypeArray(RemoteNodeType[] remotes)
Deprecated, for removal: This API element is subject to removal in a future version.Utility method for creating an array of local node type adapters for an array of remote node types.
-
-
-
Constructor Detail
-
ClientObject
protected ClientObject(LocalAdapterFactory factory)
Deprecated, for removal: This API element is subject to removal in a future version.Creates a basic client adapter that uses the given factory to create new adapters.- Parameters:
factory
- local adapter factory
-
-
Method Detail
-
getFactory
protected LocalAdapterFactory getFactory()
Deprecated, for removal: This API element is subject to removal in a future version.Returns the local adapter factory used to create new adapters.- Returns:
- local adapter factory
-
getItem
protected Item getItem(Session session, RemoteItem remote)
Deprecated, for removal: This API element is subject to removal in a future version.Utility method to create a local adapter for a remote item. This method introspects the remote reference to determine whether to instantiate aProperty
, aNode
, or anItem
adapter using the local adapter factory.If the remote item is a
RemoteNode
, this method delegates togetNode(Session, RemoteNode)
.- Parameters:
session
- current sessionremote
- remote item- Returns:
- local property, node, or item adapter
-
getNode
protected Node getNode(Session session, RemoteNode remote)
Deprecated, for removal: This API element is subject to removal in a future version.Utility method to create a local adapter for a remote node. This method introspects the remote reference to determine whether to instantiate aNode
, aVersionHistory
, or aVersion
adapter using the local adapter factory.- Parameters:
session
- current sessionremote
- remote node- Returns:
- local node, version, or version history adapter
-
getNodeTypeArray
protected NodeType[] getNodeTypeArray(RemoteNodeType[] remotes)
Deprecated, for removal: This API element is subject to removal in a future version.Utility method for creating an array of local node type adapters for an array of remote node types. The node type adapters are created using the local adapter factory.A
null
input is treated as an empty array.- Parameters:
remotes
- remote node types- Returns:
- local node type array
-
-