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.
@Deprecated public class ClientAdapterFactory extends Object implements LocalAdapterFactory
Constructor and Description |
---|
ClientAdapterFactory()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
AccessControlEntry |
getAccessControlEntry(RemoteAccessControlEntry remote)
Deprecated.
Factory method for creating a local adapter for a remote access control
entry
|
AccessControlEntry[] |
getAccessControlEntry(RemoteAccessControlEntry[] remote)
Deprecated.
Factory method for creating an array of local adapter for an array of
remote access control entry
|
AccessControlManager |
getAccessControlManager(RemoteAccessControlManager remote)
Deprecated.
Factory method for creating a local adapter for a remote access control
manager
|
AccessControlPolicy |
getAccessControlPolicy(RemoteAccessControlPolicy remote)
Deprecated.
Factory method for creating a local adapter for a remote access control
policy
|
AccessControlPolicy[] |
getAccessControlPolicy(RemoteAccessControlPolicy[] remote)
Deprecated.
Factory method for creating an array of local adapter for an array of
remote access control policies
|
AccessControlPolicyIterator |
getAccessControlPolicyIterator(RemoteIterator remote)
Deprecated.
Factory method for creating a local adapter for a remote access control
policy iterator
|
Item |
getItem(Session session,
RemoteItem remote)
Deprecated.
Creates and returns a
ClientItem instance. |
ItemDefinition |
getItemDef(RemoteItemDefinition remote)
Deprecated.
Creates and returns a
ClientItemDefinition instance. |
Lock |
getLock(Session session,
RemoteLock remote)
Deprecated.
Creates and returns a
ClientLock instance. |
LockManager |
getLockManager(Session session,
RemoteLockManager remote)
Deprecated.
|
NamespaceRegistry |
getNamespaceRegistry(RemoteNamespaceRegistry remote)
Deprecated.
Creates and returns a
ClientClientNamespaceRegistry instance. |
Node |
getNode(Session session,
RemoteNode remote)
Deprecated.
Creates and returns a
ClientNode instance. |
NodeDefinition |
getNodeDef(RemoteNodeDefinition remote)
Deprecated.
Creates and returns a
ClientNodeDefinition instance. |
NodeIterator |
getNodeIterator(Session session,
RemoteIterator remote)
Deprecated.
Creates and returns a
ClientNodeIterator instance. |
NodeType |
getNodeType(RemoteNodeType remote)
Deprecated.
Creates and returns a
ClientNodeType instance. |
NodeTypeIterator |
getNodeTypeIterator(RemoteIterator remote)
Deprecated.
Creates and returns a
ClientNodeTypeIterator instance. |
NodeTypeManager |
getNodeTypeManager(RemoteNodeTypeManager remote)
Deprecated.
Creates and returns a
ClienNodeTypeManager instance. |
ObservationManager |
getObservationManager(Workspace workspace,
RemoteObservationManager remote)
Deprecated.
Creates and returns a
ClientObservationManager instance. |
Principal |
getPrincipal(RemotePrincipal remote)
Deprecated.
Factory method for creating a local adapter for a remote principal.
|
Iterator<Principal> |
getPrincipalIterator(RemoteIterator remote)
Deprecated.
Factory method for creating a local adapter for a remote principal
iterator.
|
Privilege |
getPrivilege(RemotePrivilege remote)
Deprecated.
Factory method for creating a local adapter for a remote privilege
|
Privilege[] |
getPrivilege(RemotePrivilege[] remote)
Deprecated.
Factory method for creating an array of local adapter for an array of
remote privilege
|
Property |
getProperty(Session session,
RemoteProperty remote)
Deprecated.
Creates and returns a
ClientProperty instance. |
PropertyDefinition |
getPropertyDef(RemotePropertyDefinition remote)
Deprecated.
Creates and returns a
ClientPropertyDefinition
instance. |
PropertyIterator |
getPropertyIterator(Session session,
RemoteIterator remote)
Deprecated.
Creates and returns a
ClientPropertyIterator instance. |
Query |
getQuery(Session session,
RemoteQuery remote)
Deprecated.
Creates and returns a
ClientQuery instance. |
QueryManager |
getQueryManager(Session session,
RemoteQueryManager remote)
Deprecated.
Creates and returns a
ClientQueryManager instance. |
QueryResult |
getQueryResult(Session session,
RemoteQueryResult remote)
Deprecated.
Creates and returns a
ClientQueryResult instance. |
Repository |
getRepository(RemoteRepository remote)
Deprecated.
Creates and returns a
ClientRepository
instance. |
Row |
getRow(Session session,
RemoteRow remote)
Deprecated.
Creates and returns a
ClientRow instance. |
RowIterator |
getRowIterator(Session session,
RemoteIterator remote)
Deprecated.
Creates and returns a
ClientRowIterator instance. |
Session |
getSession(Repository repository,
RemoteSession remote)
Deprecated.
Creates and returns a
ClientSession instance. |
Version |
getVersion(Session session,
RemoteVersion remote)
Deprecated.
Creates and returns a
ClientVersion instance. |
VersionHistory |
getVersionHistory(Session session,
RemoteVersionHistory remote)
Deprecated.
Creates and returns a
ClientVersionHistory
instance. |
VersionIterator |
getVersionIterator(Session session,
RemoteIterator remote)
Deprecated.
Creates and returns a
ClientVersionIterator instance. |
VersionManager |
getVersionManager(Session session,
RemoteVersionManager remote)
Deprecated.
|
Workspace |
getWorkspace(Session session,
RemoteWorkspace remote)
Deprecated.
Creates and returns a
ClientWorkspace instance. |
public Repository getRepository(RemoteRepository remote)
ClientRepository
instance.
Factory method for creating a local adapter for a remote repository.getRepository
in interface LocalAdapterFactory
remote
- remote repositorypublic Session getSession(Repository repository, RemoteSession remote)
ClientSession
instance.
In case the remote session is transaction enabled, the returned session
will be transaction enabled too through the ClientXASession
.
Factory method for creating a local adapter for a remote session.getSession
in interface LocalAdapterFactory
repository
- current repositoryremote
- remote sessionpublic Workspace getWorkspace(Session session, RemoteWorkspace remote)
ClientWorkspace
instance.
Factory method for creating a local adapter for a remote workspace.getWorkspace
in interface LocalAdapterFactory
session
- current sessionremote
- remote workspacepublic ObservationManager getObservationManager(Workspace workspace, RemoteObservationManager remote)
ClientObservationManager
instance.
Factory method for creating a local adapter for a remote observation
manager.getObservationManager
in interface LocalAdapterFactory
workspace
- current workspaceremote
- remote observation managerpublic NamespaceRegistry getNamespaceRegistry(RemoteNamespaceRegistry remote)
ClientClientNamespaceRegistry
instance.
Factory method for creating a local adapter for a remote namespace
registry.getNamespaceRegistry
in interface LocalAdapterFactory
remote
- remote namespace registrypublic NodeTypeManager getNodeTypeManager(RemoteNodeTypeManager remote)
ClienNodeTypeManager
instance.
Factory method for creating a local adapter for a remote node type
manager.getNodeTypeManager
in interface LocalAdapterFactory
remote
- remote node type managerpublic Item getItem(Session session, RemoteItem remote)
ClientItem
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 the
getNode
or
getProperty
method
instead, as the adapter returned by this method will only cover
the basic Item
interface.getItem
in interface LocalAdapterFactory
session
- current sessionremote
- remote itempublic Property getProperty(Session session, RemoteProperty remote)
ClientProperty
instance.
Factory method for creating a local adapter for a remote property.getProperty
in interface LocalAdapterFactory
session
- current sessionremote
- remote propertypublic Node getNode(Session session, RemoteNode remote)
ClientNode
instance.
Factory method for creating a local adapter for a remote node.getNode
in interface LocalAdapterFactory
session
- current sessionremote
- remote nodepublic Version getVersion(Session session, RemoteVersion remote)
ClientVersion
instance.
Factory method for creating a local adapter for a remote version.getVersion
in interface LocalAdapterFactory
session
- current sessionremote
- remote versionpublic VersionHistory getVersionHistory(Session session, RemoteVersionHistory remote)
ClientVersionHistory
instance.
Factory method for creating a local adapter for a remote version history.getVersionHistory
in interface LocalAdapterFactory
session
- current sessionremote
- remote version historypublic NodeType getNodeType(RemoteNodeType remote)
ClientNodeType
instance.
Factory method for creating a local adapter for a remote node type.getNodeType
in interface LocalAdapterFactory
remote
- remote node typepublic ItemDefinition getItemDef(RemoteItemDefinition remote)
ClientItemDefinition
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 the
getNodeDef
or
getPropertyDef
method
instead, as the adapter returned by this method will only cover
the ItemDef
base interface.getItemDef
in interface LocalAdapterFactory
remote
- remote item definitionpublic NodeDefinition getNodeDef(RemoteNodeDefinition remote)
ClientNodeDefinition
instance.
Factory method for creating a local adapter for a remote node
definition.getNodeDef
in interface LocalAdapterFactory
remote
- remote node definitionpublic PropertyDefinition getPropertyDef(RemotePropertyDefinition remote)
ClientPropertyDefinition
instance.
Factory method for creating a local adapter for a remote property
definition.getPropertyDef
in interface LocalAdapterFactory
remote
- remote property definitionpublic Lock getLock(Session session, RemoteLock remote)
ClientLock
instance.
Factory method for creating a local adapter for a remote lock.getLock
in interface LocalAdapterFactory
session
- current sessionremote
- remote lockpublic QueryManager getQueryManager(Session session, RemoteQueryManager remote)
ClientQueryManager
instance.
Factory method for creating a local adapter for a remote query manager.getQueryManager
in interface LocalAdapterFactory
session
- current sessionremote
- remote query managerpublic Query getQuery(Session session, RemoteQuery remote)
ClientQuery
instance.
Factory method for creating a local adapter for a remote query.getQuery
in interface LocalAdapterFactory
session
- current sessionremote
- remote querypublic QueryResult getQueryResult(Session session, RemoteQueryResult remote)
ClientQueryResult
instance.
Factory method for creating a local adapter for a remote query result.getQueryResult
in interface LocalAdapterFactory
session
- current sessionremote
- remote query resultpublic Row getRow(Session session, RemoteRow remote)
ClientRow
instance.
Factory method for creating a local adapter for a remote query row.getRow
in interface LocalAdapterFactory
session
- current sessionremote
- remote query rowpublic NodeIterator getNodeIterator(Session session, RemoteIterator remote)
ClientNodeIterator
instance.
Factory method for creating a local adapter for a remote node iterator.getNodeIterator
in interface LocalAdapterFactory
session
- current sessionremote
- remote node iteratorpublic PropertyIterator getPropertyIterator(Session session, RemoteIterator remote)
ClientPropertyIterator
instance.
Factory method for creating a local adapter for a remote property iterator.getPropertyIterator
in interface LocalAdapterFactory
session
- current sessionremote
- remote property iteratorpublic VersionIterator getVersionIterator(Session session, RemoteIterator remote)
ClientVersionIterator
instance.
Factory method for creating a local adapter for a remote version iterator.getVersionIterator
in interface LocalAdapterFactory
session
- current sessionremote
- remote version iteratorpublic NodeTypeIterator getNodeTypeIterator(RemoteIterator remote)
ClientNodeTypeIterator
instance.
Factory method for creating a local adapter for a remote
node type iterator.getNodeTypeIterator
in interface LocalAdapterFactory
remote
- remote node type iteratorpublic RowIterator getRowIterator(Session session, RemoteIterator remote)
ClientRowIterator
instance.
Factory method for creating a local adapter for a remote row iterator.getRowIterator
in interface LocalAdapterFactory
session
- current sessionremote
- remote row iteratorpublic LockManager getLockManager(Session session, RemoteLockManager remote)
getLockManager
in interface LocalAdapterFactory
public VersionManager getVersionManager(Session session, RemoteVersionManager remote)
getVersionManager
in interface LocalAdapterFactory
public AccessControlManager getAccessControlManager(RemoteAccessControlManager remote)
getAccessControlManager
in interface LocalAdapterFactory
remote
- remote access control managerpublic AccessControlPolicy getAccessControlPolicy(RemoteAccessControlPolicy remote)
getAccessControlPolicy
in interface LocalAdapterFactory
remote
- remote access control policypublic AccessControlPolicy[] getAccessControlPolicy(RemoteAccessControlPolicy[] remote)
getAccessControlPolicy
in interface LocalAdapterFactory
remote
- array of remote access control policiespublic AccessControlPolicyIterator getAccessControlPolicyIterator(RemoteIterator remote)
getAccessControlPolicyIterator
in interface LocalAdapterFactory
remote
- access control policy iteratorpublic AccessControlEntry getAccessControlEntry(RemoteAccessControlEntry remote)
getAccessControlEntry
in interface LocalAdapterFactory
remote
- remote access control entrypublic AccessControlEntry[] getAccessControlEntry(RemoteAccessControlEntry[] remote)
getAccessControlEntry
in interface LocalAdapterFactory
remote
- array of remote access control entrypublic Principal getPrincipal(RemotePrincipal remote)
If remote
is a RemoteGroup
the
principal returned implements the org.apache.jackrabbit.api.security.principal.GroupPrincipal
interface.
getPrincipal
in interface LocalAdapterFactory
remote
- principalpublic Iterator<Principal> getPrincipalIterator(RemoteIterator remote)
Each entry in the remote
iterator which is a
RemoteGroup
will be
provided as a principal implementing the
org.apache.jackrabbit.api.security.principal.GroupPrincipal
interface.
getPrincipalIterator
in interface LocalAdapterFactory
remote
- remote principal iteratorpublic Privilege getPrivilege(RemotePrivilege remote)
getPrivilege
in interface LocalAdapterFactory
remote
- remote privilegepublic Privilege[] getPrivilege(RemotePrivilege[] remote)
getPrivilege
in interface LocalAdapterFactory
remote
- array of remote privilegeCopyright © 2004–2024 The Apache Software Foundation. All rights reserved.