Package org.apache.jackrabbit.rmi.client
Class ClientAdapterFactory
- java.lang.Object
-
- org.apache.jackrabbit.rmi.client.ClientAdapterFactory
-
- All Implemented Interfaces:
LocalAdapterFactory
- Direct Known Subclasses:
JackrabbitClientAdapterFactory
@Deprecated(forRemoval=true) public class ClientAdapterFactory extends Object implements LocalAdapterFactory
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.Default implementation of the
LocalAdapterFactory
interface. This factory uses the client adapters defined in this package as the default adapter implementations. Subclasses can easily override or extend the default adapters by implementing the corresponding factory methods.
-
-
Constructor Summary
Constructors Constructor Description ClientAdapterFactory()
Deprecated, for removal: This API element is subject to removal in a future version.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description AccessControlEntry
getAccessControlEntry(RemoteAccessControlEntry remote)
Deprecated, for removal: This API element is subject to removal in a future version.Factory method for creating a local adapter for a remote access control entryAccessControlEntry[]
getAccessControlEntry(RemoteAccessControlEntry[] remote)
Deprecated, for removal: This API element is subject to removal in a future version.Factory method for creating an array of local adapter for an array of remote access control entryAccessControlManager
getAccessControlManager(RemoteAccessControlManager remote)
Deprecated, for removal: This API element is subject to removal in a future version.Factory method for creating a local adapter for a remote access control managerAccessControlPolicy
getAccessControlPolicy(RemoteAccessControlPolicy remote)
Deprecated, for removal: This API element is subject to removal in a future version.Factory method for creating a local adapter for a remote access control policyAccessControlPolicy[]
getAccessControlPolicy(RemoteAccessControlPolicy[] remote)
Deprecated, for removal: This API element is subject to removal in a future version.Factory method for creating an array of local adapter for an array of remote access control policiesAccessControlPolicyIterator
getAccessControlPolicyIterator(RemoteIterator remote)
Deprecated, for removal: This API element is subject to removal in a future version.Factory method for creating a local adapter for a remote access control policy iteratorItem
getItem(Session session, RemoteItem remote)
Deprecated, for removal: This API element is subject to removal in a future version.Creates and returns aClientItem
instance.ItemDefinition
getItemDef(RemoteItemDefinition remote)
Deprecated, for removal: This API element is subject to removal in a future version.Creates and returns aClientItemDefinition
instance.Lock
getLock(Session session, RemoteLock remote)
Deprecated, for removal: This API element is subject to removal in a future version.Creates and returns aClientLock
instance.LockManager
getLockManager(Session session, RemoteLockManager remote)
Deprecated, for removal: This API element is subject to removal in a future version.NamespaceRegistry
getNamespaceRegistry(RemoteNamespaceRegistry remote)
Deprecated, for removal: This API element is subject to removal in a future version.Creates and returns aClientClientNamespaceRegistry
instance.Node
getNode(Session session, RemoteNode remote)
Deprecated, for removal: This API element is subject to removal in a future version.Creates and returns aClientNode
instance.NodeDefinition
getNodeDef(RemoteNodeDefinition remote)
Deprecated, for removal: This API element is subject to removal in a future version.Creates and returns aClientNodeDefinition
instance.NodeIterator
getNodeIterator(Session session, RemoteIterator remote)
Deprecated, for removal: This API element is subject to removal in a future version.Creates and returns aClientNodeIterator
instance.NodeType
getNodeType(RemoteNodeType remote)
Deprecated, for removal: This API element is subject to removal in a future version.Creates and returns aClientNodeType
instance.NodeTypeIterator
getNodeTypeIterator(RemoteIterator remote)
Deprecated, for removal: This API element is subject to removal in a future version.Creates and returns aClientNodeTypeIterator
instance.NodeTypeManager
getNodeTypeManager(RemoteNodeTypeManager remote)
Deprecated, for removal: This API element is subject to removal in a future version.Creates and returns aClienNodeTypeManager
instance.ObservationManager
getObservationManager(Workspace workspace, RemoteObservationManager remote)
Deprecated, for removal: This API element is subject to removal in a future version.Creates and returns aClientObservationManager
instance.Principal
getPrincipal(RemotePrincipal remote)
Deprecated, for removal: This API element is subject to removal in a future version.Factory method for creating a local adapter for a remote principal.Iterator<Principal>
getPrincipalIterator(RemoteIterator remote)
Deprecated, for removal: This API element is subject to removal in a future version.Factory method for creating a local adapter for a remote principal iterator.Privilege
getPrivilege(RemotePrivilege remote)
Deprecated, for removal: This API element is subject to removal in a future version.Factory method for creating a local adapter for a remote privilegePrivilege[]
getPrivilege(RemotePrivilege[] remote)
Deprecated, for removal: This API element is subject to removal in a future version.Factory method for creating an array of local adapter for an array of remote privilegeProperty
getProperty(Session session, RemoteProperty remote)
Deprecated, for removal: This API element is subject to removal in a future version.Creates and returns aClientProperty
instance.PropertyDefinition
getPropertyDef(RemotePropertyDefinition remote)
Deprecated, for removal: This API element is subject to removal in a future version.Creates and returns aClientPropertyDefinition
instance.PropertyIterator
getPropertyIterator(Session session, RemoteIterator remote)
Deprecated, for removal: This API element is subject to removal in a future version.Creates and returns aClientPropertyIterator
instance.Query
getQuery(Session session, RemoteQuery remote)
Deprecated, for removal: This API element is subject to removal in a future version.Creates and returns aClientQuery
instance.QueryManager
getQueryManager(Session session, RemoteQueryManager remote)
Deprecated, for removal: This API element is subject to removal in a future version.Creates and returns aClientQueryManager
instance.QueryResult
getQueryResult(Session session, RemoteQueryResult remote)
Deprecated, for removal: This API element is subject to removal in a future version.Creates and returns aClientQueryResult
instance.Repository
getRepository(RemoteRepository remote)
Deprecated, for removal: This API element is subject to removal in a future version.Creates and returns aClientRepository
instance.Row
getRow(Session session, RemoteRow remote)
Deprecated, for removal: This API element is subject to removal in a future version.Creates and returns aClientRow
instance.RowIterator
getRowIterator(Session session, RemoteIterator remote)
Deprecated, for removal: This API element is subject to removal in a future version.Creates and returns aClientRowIterator
instance.Session
getSession(Repository repository, RemoteSession remote)
Deprecated, for removal: This API element is subject to removal in a future version.Creates and returns aClientSession
instance.Version
getVersion(Session session, RemoteVersion remote)
Deprecated, for removal: This API element is subject to removal in a future version.Creates and returns aClientVersion
instance.VersionHistory
getVersionHistory(Session session, RemoteVersionHistory remote)
Deprecated, for removal: This API element is subject to removal in a future version.Creates and returns aClientVersionHistory
instance.VersionIterator
getVersionIterator(Session session, RemoteIterator remote)
Deprecated, for removal: This API element is subject to removal in a future version.Creates and returns aClientVersionIterator
instance.VersionManager
getVersionManager(Session session, RemoteVersionManager remote)
Deprecated, for removal: This API element is subject to removal in a future version.Workspace
getWorkspace(Session session, RemoteWorkspace remote)
Deprecated, for removal: This API element is subject to removal in a future version.Creates and returns aClientWorkspace
instance.
-
-
-
Method Detail
-
getRepository
public Repository getRepository(RemoteRepository remote)
Deprecated, for removal: This API element is subject to removal in a future version.Creates and returns aClientRepository
instance. Factory method for creating a local adapter for a remote repository.- Specified by:
getRepository
in interfaceLocalAdapterFactory
- Parameters:
remote
- remote repository- Returns:
- local repository adapter
-
getSession
public Session getSession(Repository repository, RemoteSession remote)
Deprecated, for removal: This API element is subject to removal in a future version.Creates and returns aClientSession
instance. In case the remote session is transaction enabled, the returned session will be transaction enabled too through theClientXASession
. Factory method for creating a local adapter for a remote session.- Specified by:
getSession
in interfaceLocalAdapterFactory
- Parameters:
repository
- current repositoryremote
- remote session- Returns:
- local session adapter
-
getWorkspace
public Workspace getWorkspace(Session session, RemoteWorkspace remote)
Deprecated, for removal: This API element is subject to removal in a future version.Creates and returns aClientWorkspace
instance. Factory method for creating a local adapter for a remote workspace.- Specified by:
getWorkspace
in interfaceLocalAdapterFactory
- Parameters:
session
- current sessionremote
- remote workspace- Returns:
- local workspace adapter
-
getObservationManager
public ObservationManager getObservationManager(Workspace workspace, RemoteObservationManager remote)
Deprecated, for removal: This API element is subject to removal in a future version.Creates and returns aClientObservationManager
instance. Factory method for creating a local adapter for a remote observation manager.- Specified by:
getObservationManager
in interfaceLocalAdapterFactory
- Parameters:
workspace
- current workspaceremote
- remote observation manager- Returns:
- local observation manager adapter
-
getNamespaceRegistry
public NamespaceRegistry getNamespaceRegistry(RemoteNamespaceRegistry remote)
Deprecated, for removal: This API element is subject to removal in a future version.Creates and returns aClientClientNamespaceRegistry
instance. Factory method for creating a local adapter for a remote namespace registry.- Specified by:
getNamespaceRegistry
in interfaceLocalAdapterFactory
- Parameters:
remote
- remote namespace registry- Returns:
- local namespace registry adapter
-
getNodeTypeManager
public NodeTypeManager getNodeTypeManager(RemoteNodeTypeManager remote)
Deprecated, for removal: This API element is subject to removal in a future version.Creates and returns aClienNodeTypeManager
instance. Factory method for creating a local adapter for a remote node type manager.- Specified by:
getNodeTypeManager
in interfaceLocalAdapterFactory
- Parameters:
remote
- remote node type manager- Returns:
- local node type manager adapter
-
getItem
public Item getItem(Session session, RemoteItem remote)
Deprecated, for removal: This API element is subject to removal in a future version.Creates and returns aClientItem
instance. Factory method for creating a local adapter for a remote item. Note that before calling this method, the client may want to introspect the remote item reference to determine whether to use thegetNode
orgetProperty
method instead, as the adapter returned by this method will only cover the basicItem
interface.- Specified by:
getItem
in interfaceLocalAdapterFactory
- Parameters:
session
- current sessionremote
- remote item- Returns:
- local item adapter
-
getProperty
public Property getProperty(Session session, RemoteProperty remote)
Deprecated, for removal: This API element is subject to removal in a future version.Creates and returns aClientProperty
instance. Factory method for creating a local adapter for a remote property.- Specified by:
getProperty
in interfaceLocalAdapterFactory
- Parameters:
session
- current sessionremote
- remote property- Returns:
- local property adapter
-
getNode
public Node getNode(Session session, RemoteNode remote)
Deprecated, for removal: This API element is subject to removal in a future version.Creates and returns aClientNode
instance. Factory method for creating a local adapter for a remote node.- Specified by:
getNode
in interfaceLocalAdapterFactory
- Parameters:
session
- current sessionremote
- remote node- Returns:
- local node adapter
-
getVersion
public Version getVersion(Session session, RemoteVersion remote)
Deprecated, for removal: This API element is subject to removal in a future version.Creates and returns aClientVersion
instance. Factory method for creating a local adapter for a remote version.- Specified by:
getVersion
in interfaceLocalAdapterFactory
- Parameters:
session
- current sessionremote
- remote version- Returns:
- local version adapter
-
getVersionHistory
public VersionHistory getVersionHistory(Session session, RemoteVersionHistory remote)
Deprecated, for removal: This API element is subject to removal in a future version.Creates and returns aClientVersionHistory
instance. Factory method for creating a local adapter for a remote version history.- Specified by:
getVersionHistory
in interfaceLocalAdapterFactory
- Parameters:
session
- current sessionremote
- remote version history- Returns:
- local version history adapter
-
getNodeType
public NodeType getNodeType(RemoteNodeType remote)
Deprecated, for removal: This API element is subject to removal in a future version.Creates and returns aClientNodeType
instance. Factory method for creating a local adapter for a remote node type.- Specified by:
getNodeType
in interfaceLocalAdapterFactory
- Parameters:
remote
- remote node type- Returns:
- local node type adapter
-
getItemDef
public ItemDefinition getItemDef(RemoteItemDefinition remote)
Deprecated, for removal: This API element is subject to removal in a future version.Creates and returns aClientItemDefinition
instance. Factory method for creating a local adapter for a remote item definition. Note that before calling this method, the client may want to introspect the remote item definition to determine whether to use thegetNodeDef
orgetPropertyDef
method instead, as the adapter returned by this method will only cover theItemDef
base interface.- Specified by:
getItemDef
in interfaceLocalAdapterFactory
- Parameters:
remote
- remote item definition- Returns:
- local item definition adapter
-
getNodeDef
public NodeDefinition getNodeDef(RemoteNodeDefinition remote)
Deprecated, for removal: This API element is subject to removal in a future version.Creates and returns aClientNodeDefinition
instance. Factory method for creating a local adapter for a remote node definition.- Specified by:
getNodeDef
in interfaceLocalAdapterFactory
- Parameters:
remote
- remote node definition- Returns:
- local node definition adapter
-
getPropertyDef
public PropertyDefinition getPropertyDef(RemotePropertyDefinition remote)
Deprecated, for removal: This API element is subject to removal in a future version.Creates and returns aClientPropertyDefinition
instance. Factory method for creating a local adapter for a remote property definition.- Specified by:
getPropertyDef
in interfaceLocalAdapterFactory
- Parameters:
remote
- remote property definition- Returns:
- local property definition adapter
-
getLock
public Lock getLock(Session session, RemoteLock remote)
Deprecated, for removal: This API element is subject to removal in a future version.Creates and returns aClientLock
instance. Factory method for creating a local adapter for a remote lock.- Specified by:
getLock
in interfaceLocalAdapterFactory
- Parameters:
session
- current sessionremote
- remote lock- Returns:
- local lock adapter
-
getQueryManager
public QueryManager getQueryManager(Session session, RemoteQueryManager remote)
Deprecated, for removal: This API element is subject to removal in a future version.Creates and returns aClientQueryManager
instance. Factory method for creating a local adapter for a remote query manager.- Specified by:
getQueryManager
in interfaceLocalAdapterFactory
- Parameters:
session
- current sessionremote
- remote query manager- Returns:
- local query manager adapter
-
getQuery
public Query getQuery(Session session, RemoteQuery remote)
Deprecated, for removal: This API element is subject to removal in a future version.Creates and returns aClientQuery
instance. Factory method for creating a local adapter for a remote query.- Specified by:
getQuery
in interfaceLocalAdapterFactory
- Parameters:
session
- current sessionremote
- remote query- Returns:
- local query adapter
-
getQueryResult
public QueryResult getQueryResult(Session session, RemoteQueryResult remote)
Deprecated, for removal: This API element is subject to removal in a future version.Creates and returns aClientQueryResult
instance. Factory method for creating a local adapter for a remote query result.- Specified by:
getQueryResult
in interfaceLocalAdapterFactory
- Parameters:
session
- current sessionremote
- remote query result- Returns:
- local query result adapter
-
getRow
public Row getRow(Session session, RemoteRow remote)
Deprecated, for removal: This API element is subject to removal in a future version.Creates and returns aClientRow
instance. Factory method for creating a local adapter for a remote query row.- Specified by:
getRow
in interfaceLocalAdapterFactory
- Parameters:
session
- current sessionremote
- remote query row- Returns:
- local query row adapter
-
getNodeIterator
public NodeIterator getNodeIterator(Session session, RemoteIterator remote)
Deprecated, for removal: This API element is subject to removal in a future version.Creates and returns aClientNodeIterator
instance. Factory method for creating a local adapter for a remote node iterator.- Specified by:
getNodeIterator
in interfaceLocalAdapterFactory
- Parameters:
session
- current sessionremote
- remote node iterator- Returns:
- local node iterator adapter
-
getPropertyIterator
public PropertyIterator getPropertyIterator(Session session, RemoteIterator remote)
Deprecated, for removal: This API element is subject to removal in a future version.Creates and returns aClientPropertyIterator
instance. Factory method for creating a local adapter for a remote property iterator.- Specified by:
getPropertyIterator
in interfaceLocalAdapterFactory
- Parameters:
session
- current sessionremote
- remote property iterator- Returns:
- local property iterator adapter
-
getVersionIterator
public VersionIterator getVersionIterator(Session session, RemoteIterator remote)
Deprecated, for removal: This API element is subject to removal in a future version.Creates and returns aClientVersionIterator
instance. Factory method for creating a local adapter for a remote version iterator.- Specified by:
getVersionIterator
in interfaceLocalAdapterFactory
- Parameters:
session
- current sessionremote
- remote version iterator- Returns:
- local version iterator adapter
-
getNodeTypeIterator
public NodeTypeIterator getNodeTypeIterator(RemoteIterator remote)
Deprecated, for removal: This API element is subject to removal in a future version.Creates and returns aClientNodeTypeIterator
instance. Factory method for creating a local adapter for a remote node type iterator.- Specified by:
getNodeTypeIterator
in interfaceLocalAdapterFactory
- Parameters:
remote
- remote node type iterator- Returns:
- local node type iterator adapter
-
getRowIterator
public RowIterator getRowIterator(Session session, RemoteIterator remote)
Deprecated, for removal: This API element is subject to removal in a future version.Creates and returns aClientRowIterator
instance. Factory method for creating a local adapter for a remote row iterator.- Specified by:
getRowIterator
in interfaceLocalAdapterFactory
- Parameters:
session
- current sessionremote
- remote row iterator- Returns:
- local row iterator adapter
-
getLockManager
public LockManager getLockManager(Session session, RemoteLockManager remote)
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getLockManager
in interfaceLocalAdapterFactory
-
getVersionManager
public VersionManager getVersionManager(Session session, RemoteVersionManager remote)
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getVersionManager
in interfaceLocalAdapterFactory
-
getAccessControlManager
public AccessControlManager getAccessControlManager(RemoteAccessControlManager remote)
Deprecated, for removal: This API element is subject to removal in a future version.Factory method for creating a local adapter for a remote access control manager- Specified by:
getAccessControlManager
in interfaceLocalAdapterFactory
- Parameters:
remote
- remote access control manager- Returns:
- local access control manager
-
getAccessControlPolicy
public AccessControlPolicy getAccessControlPolicy(RemoteAccessControlPolicy remote)
Deprecated, for removal: This API element is subject to removal in a future version.Factory method for creating a local adapter for a remote access control policy- Specified by:
getAccessControlPolicy
in interfaceLocalAdapterFactory
- Parameters:
remote
- remote access control policy- Returns:
- local access control policy
-
getAccessControlPolicy
public AccessControlPolicy[] getAccessControlPolicy(RemoteAccessControlPolicy[] remote)
Deprecated, for removal: This API element is subject to removal in a future version.Factory method for creating an array of local adapter for an array of remote access control policies- Specified by:
getAccessControlPolicy
in interfaceLocalAdapterFactory
- Parameters:
remote
- array of remote access control policies- Returns:
- array of local access control policies
-
getAccessControlPolicyIterator
public AccessControlPolicyIterator getAccessControlPolicyIterator(RemoteIterator remote)
Deprecated, for removal: This API element is subject to removal in a future version.Factory method for creating a local adapter for a remote access control policy iterator- Specified by:
getAccessControlPolicyIterator
in interfaceLocalAdapterFactory
- Parameters:
remote
- access control policy iterator- Returns:
- local access control policy iterator
-
getAccessControlEntry
public AccessControlEntry getAccessControlEntry(RemoteAccessControlEntry remote)
Deprecated, for removal: This API element is subject to removal in a future version.Factory method for creating a local adapter for a remote access control entry- Specified by:
getAccessControlEntry
in interfaceLocalAdapterFactory
- Parameters:
remote
- remote access control entry- Returns:
- local access control entry
-
getAccessControlEntry
public AccessControlEntry[] getAccessControlEntry(RemoteAccessControlEntry[] remote)
Deprecated, for removal: This API element is subject to removal in a future version.Factory method for creating an array of local adapter for an array of remote access control entry- Specified by:
getAccessControlEntry
in interfaceLocalAdapterFactory
- Parameters:
remote
- array of remote access control entry- Returns:
- local array of access control entry
-
getPrincipal
public Principal getPrincipal(RemotePrincipal remote)
Deprecated, for removal: This API element is subject to removal in a future version.Factory method for creating a local adapter for a remote principal.If
remote
is aRemoteGroup
the principal returned implements theorg.apache.jackrabbit.api.security.principal.GroupPrincipal
interface.- Specified by:
getPrincipal
in interfaceLocalAdapterFactory
- Parameters:
remote
- principal- Returns:
- local principal
-
getPrincipalIterator
public Iterator<Principal> getPrincipalIterator(RemoteIterator remote)
Deprecated, for removal: This API element is subject to removal in a future version.Factory method for creating a local adapter for a remote principal iterator.Each entry in the
remote
iterator which is aRemoteGroup
will be provided as a principal implementing theorg.apache.jackrabbit.api.security.principal.GroupPrincipal
interface.- Specified by:
getPrincipalIterator
in interfaceLocalAdapterFactory
- Parameters:
remote
- remote principal iterator- Returns:
- local principal iterator
-
getPrivilege
public Privilege getPrivilege(RemotePrivilege remote)
Deprecated, for removal: This API element is subject to removal in a future version.Factory method for creating a local adapter for a remote privilege- Specified by:
getPrivilege
in interfaceLocalAdapterFactory
- Parameters:
remote
- remote privilege- Returns:
- local privilege
-
getPrivilege
public Privilege[] getPrivilege(RemotePrivilege[] remote)
Deprecated, for removal: This API element is subject to removal in a future version.Factory method for creating an array of local adapter for an array of remote privilege- Specified by:
getPrivilege
in interfaceLocalAdapterFactory
- Parameters:
remote
- array of remote privilege- Returns:
- array of local privilege
-
-