Interface LocalAdapterFactory
-
- All Known Implementing Classes:
ClientAdapterFactory
,JackrabbitClientAdapterFactory
@Deprecated(forRemoval=true) public interface 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.Factory interface for creating local adapters for remote references. This interface defines how remote JCR-RMI references are adapted back to the normal JCR interfaces. The adaption mechanism can be modified (for example to add extra features) by changing the local adapter factory used by the repository client.
Note that the
ClientObject
base class provides a number of utility methods designed to work with a local adapter factory. Adapter implementations may want to inherit that functionality by subclassing from ClientObject.- See Also:
RemoteAdapterFactory
,ClientAdapterFactory
,ClientObject
-
-
Method Summary
All Methods Instance Methods Abstract 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.Factory method for creating a local adapter for a remote item.ItemDefinition
getItemDef(RemoteItemDefinition 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 item definition.Lock
getLock(Session session, RemoteLock 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 lock.LockManager
getLockManager(Session session, RemoteLockManager lockManager)
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.Factory method for creating a local adapter for a remote namespace registry.Node
getNode(Session session, RemoteNode 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 node.NodeDefinition
getNodeDef(RemoteNodeDefinition 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 node definition.NodeIterator
getNodeIterator(Session session, 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 node iterator.NodeType
getNodeType(RemoteNodeType 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 node type.NodeTypeIterator
getNodeTypeIterator(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 node type iterator.NodeTypeManager
getNodeTypeManager(RemoteNodeTypeManager 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 node type manager.ObservationManager
getObservationManager(Workspace workspace, RemoteObservationManager 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 observation manager.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.Factory method for creating a local adapter for a remote property.PropertyDefinition
getPropertyDef(RemotePropertyDefinition 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 property definition.PropertyIterator
getPropertyIterator(Session session, 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 property iterator.Query
getQuery(Session session, RemoteQuery 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 query.QueryManager
getQueryManager(Session session, RemoteQueryManager 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 query manager.QueryResult
getQueryResult(Session session, RemoteQueryResult 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 query result.Repository
getRepository(RemoteRepository 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 repository.Row
getRow(Session session, RemoteRow 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 query row.RowIterator
getRowIterator(Session session, 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 row iterator.Session
getSession(Repository repository, RemoteSession 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 session.Version
getVersion(Session session, RemoteVersion 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 version.VersionHistory
getVersionHistory(Session session, RemoteVersionHistory 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 version history.VersionIterator
getVersionIterator(Session session, 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 version iterator.VersionManager
getVersionManager(Session session, RemoteVersionManager versionManager)
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.Factory method for creating a local adapter for a remote workspace.
-
-
-
Method Detail
-
getRepository
Repository getRepository(RemoteRepository 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 repository.- Parameters:
remote
- remote repository- Returns:
- local repository adapter
-
getSession
Session getSession(Repository repository, RemoteSession 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 session.- Parameters:
repository
- current repositoryremote
- remote session- Returns:
- local session adapter
-
getWorkspace
Workspace getWorkspace(Session session, RemoteWorkspace 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 workspace.- Parameters:
session
- current sessionremote
- remote workspace- Returns:
- local workspace adapter
-
getObservationManager
ObservationManager getObservationManager(Workspace workspace, RemoteObservationManager 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 observation manager.- Parameters:
workspace
- current workspaceremote
- remote observation manager- Returns:
- local observation manager adapter
-
getNamespaceRegistry
NamespaceRegistry getNamespaceRegistry(RemoteNamespaceRegistry 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 namespace registry.- Parameters:
remote
- remote namespace registry- Returns:
- local namespace registry adapter
-
getNodeTypeManager
NodeTypeManager getNodeTypeManager(RemoteNodeTypeManager 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 node type manager.- Parameters:
remote
- remote node type manager- Returns:
- local node type manager adapter
-
getItem
Item getItem(Session session, RemoteItem 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 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.- Parameters:
session
- current sessionremote
- remote item- Returns:
- local item adapter
-
getProperty
Property getProperty(Session session, RemoteProperty 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 property.- Parameters:
session
- current sessionremote
- remote property- Returns:
- local property adapter
-
getNode
Node getNode(Session session, RemoteNode 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 node.- Parameters:
session
- current sessionremote
- remote node- Returns:
- local node adapter
-
getVersion
Version getVersion(Session session, RemoteVersion 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 version.- Parameters:
session
- current sessionremote
- remote version- Returns:
- local version adapter
-
getVersionHistory
VersionHistory getVersionHistory(Session session, RemoteVersionHistory 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 version history.- Parameters:
session
- current sessionremote
- remote version history- Returns:
- local version history adapter
-
getNodeType
NodeType getNodeType(RemoteNodeType 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 node type.- Parameters:
remote
- remote node type- Returns:
- local node type adapter
-
getItemDef
ItemDefinition getItemDef(RemoteItemDefinition 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 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.- Parameters:
remote
- remote item definition- Returns:
- local item definition adapter
-
getNodeDef
NodeDefinition getNodeDef(RemoteNodeDefinition 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 node definition.- Parameters:
remote
- remote node definition- Returns:
- local node definition adapter
-
getPropertyDef
PropertyDefinition getPropertyDef(RemotePropertyDefinition 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 property definition.- Parameters:
remote
- remote property definition- Returns:
- local property definition adapter
-
getLock
Lock getLock(Session session, RemoteLock 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 lock.- Parameters:
session
- current sessionremote
- remote lock- Returns:
- local lock adapter
-
getQueryManager
QueryManager getQueryManager(Session session, RemoteQueryManager 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 query manager.- Parameters:
session
- current sessionremote
- remote query manager- Returns:
- local query manager adapter
-
getQuery
Query getQuery(Session session, RemoteQuery 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 query.- Parameters:
session
- current sessionremote
- remote query- Returns:
- local query adapter
-
getQueryResult
QueryResult getQueryResult(Session session, RemoteQueryResult 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 query result.- Parameters:
session
- current sessionremote
- remote query result- Returns:
- local query result adapter
-
getRow
Row getRow(Session session, RemoteRow 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 query row.- Parameters:
session
- current sessionremote
- remote query row- Returns:
- local query row adapter
-
getNodeIterator
NodeIterator getNodeIterator(Session session, 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 node iterator.- Parameters:
session
- current sessionremote
- remote node iterator- Returns:
- local node iterator adapter
-
getPropertyIterator
PropertyIterator getPropertyIterator(Session session, 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 property iterator.- Parameters:
session
- current sessionremote
- remote property iterator- Returns:
- local property iterator adapter
-
getVersionIterator
VersionIterator getVersionIterator(Session session, 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 version iterator.- Parameters:
session
- current sessionremote
- remote version iterator- Returns:
- local version iterator adapter
-
getNodeTypeIterator
NodeTypeIterator getNodeTypeIterator(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 node type iterator.- Parameters:
remote
- remote node type iterator- Returns:
- local node type iterator adapter
-
getRowIterator
RowIterator getRowIterator(Session session, 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 row iterator.- Parameters:
session
- current sessionremote
- remote row iterator- Returns:
- local row iterator adapter
-
getLockManager
LockManager getLockManager(Session session, RemoteLockManager lockManager)
Deprecated, for removal: This API element is subject to removal in a future version.
-
getVersionManager
VersionManager getVersionManager(Session session, RemoteVersionManager versionManager)
Deprecated, for removal: This API element is subject to removal in a future version.
-
getAccessControlManager
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- Parameters:
remote
- remote access control manager- Returns:
- local access control manager
-
getAccessControlPolicy
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- Parameters:
remote
- remote access control policy- Returns:
- local access control policy
-
getAccessControlPolicy
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- Parameters:
remote
- array of remote access control policies- Returns:
- array of local access control policies
-
getAccessControlPolicyIterator
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- Parameters:
remote
- access control policy iterator- Returns:
- local access control policy iterator
-
getAccessControlEntry
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- Parameters:
remote
- remote access control entry- Returns:
- local access control entry
-
getAccessControlEntry
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- Parameters:
remote
- array of remote access control entry- Returns:
- local array of access control entry
-
getPrincipal
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.- Parameters:
remote
- principal- Returns:
- local principal
-
getPrincipalIterator
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.- Parameters:
remote
- remote principal iterator- Returns:
- local principal iterator
-
getPrivilege
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- Parameters:
remote
- remote privilege- Returns:
- local privilege
-
getPrivilege
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- Parameters:
remote
- array of remote privilege- Returns:
- array of local privilege
-
-