public class ClientAdapterFactory extends Object implements LocalAdapterFactory
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 and Description |
---|
ClientAdapterFactory() |
Modifier and Type | Method and Description |
---|---|
javax.jcr.security.AccessControlEntry |
getAccessControlEntry(RemoteAccessControlEntry remote)
Factory method for creating a local adapter for a remote access control
entry
|
javax.jcr.security.AccessControlEntry[] |
getAccessControlEntry(RemoteAccessControlEntry[] remote)
Factory method for creating an array of local adapter for an array of
remote access control entry
|
javax.jcr.security.AccessControlManager |
getAccessControlManager(RemoteAccessControlManager remote)
Factory method for creating a local adapter for a remote access control
manager
|
javax.jcr.security.AccessControlPolicy |
getAccessControlPolicy(RemoteAccessControlPolicy remote)
Factory method for creating a local adapter for a remote access control
policy
|
javax.jcr.security.AccessControlPolicy[] |
getAccessControlPolicy(RemoteAccessControlPolicy[] remote)
Factory method for creating an array of local adapter for an array of
remote access control policies
|
javax.jcr.security.AccessControlPolicyIterator |
getAccessControlPolicyIterator(RemoteIterator remote)
Factory method for creating a local adapter for a remote access control
policy iterator
|
javax.jcr.Item |
getItem(javax.jcr.Session session,
RemoteItem remote)
Creates and returns a
ClientItem instance. |
javax.jcr.nodetype.ItemDefinition |
getItemDef(RemoteItemDefinition remote)
Creates and returns a
ClientItemDefinition instance. |
javax.jcr.lock.Lock |
getLock(javax.jcr.Session session,
RemoteLock remote)
Creates and returns a
ClientLock instance. |
javax.jcr.lock.LockManager |
getLockManager(javax.jcr.Session session,
RemoteLockManager remote) |
javax.jcr.NamespaceRegistry |
getNamespaceRegistry(RemoteNamespaceRegistry remote)
Creates and returns a
ClientClientNamespaceRegistry instance. |
javax.jcr.Node |
getNode(javax.jcr.Session session,
RemoteNode remote)
Creates and returns a
ClientNode instance. |
javax.jcr.nodetype.NodeDefinition |
getNodeDef(RemoteNodeDefinition remote)
Creates and returns a
ClientNodeDefinition instance. |
javax.jcr.NodeIterator |
getNodeIterator(javax.jcr.Session session,
RemoteIterator remote)
Creates and returns a
ClientNodeIterator instance. |
javax.jcr.nodetype.NodeType |
getNodeType(RemoteNodeType remote)
Creates and returns a
ClientNodeType instance. |
javax.jcr.nodetype.NodeTypeIterator |
getNodeTypeIterator(RemoteIterator remote)
Creates and returns a
ClientNodeTypeIterator instance. |
javax.jcr.nodetype.NodeTypeManager |
getNodeTypeManager(RemoteNodeTypeManager remote)
Creates and returns a
ClienNodeTypeManager instance. |
javax.jcr.observation.ObservationManager |
getObservationManager(javax.jcr.Workspace workspace,
RemoteObservationManager remote)
Creates and returns a
ClientObservationManager instance. |
Principal |
getPrincipal(RemotePrincipal remote)
Factory method for creating a local adapter for a remote principal.
|
Iterator<Principal> |
getPrincipalIterator(RemoteIterator remote)
Factory method for creating a local adapter for a remote principal
iterator.
|
javax.jcr.security.Privilege |
getPrivilege(RemotePrivilege remote)
Factory method for creating a local adapter for a remote privilege
|
javax.jcr.security.Privilege[] |
getPrivilege(RemotePrivilege[] remote)
Factory method for creating an array of local adapter for an array of
remote privilege
|
javax.jcr.Property |
getProperty(javax.jcr.Session session,
RemoteProperty remote)
Creates and returns a
ClientProperty instance. |
javax.jcr.nodetype.PropertyDefinition |
getPropertyDef(RemotePropertyDefinition remote)
Creates and returns a
ClientPropertyDefinition
instance. |
javax.jcr.PropertyIterator |
getPropertyIterator(javax.jcr.Session session,
RemoteIterator remote)
Creates and returns a
ClientPropertyIterator instance. |
javax.jcr.query.Query |
getQuery(javax.jcr.Session session,
RemoteQuery remote)
Creates and returns a
ClientQuery instance. |
javax.jcr.query.QueryManager |
getQueryManager(javax.jcr.Session session,
RemoteQueryManager remote)
Creates and returns a
ClientQueryManager instance. |
javax.jcr.query.QueryResult |
getQueryResult(javax.jcr.Session session,
RemoteQueryResult remote)
Creates and returns a
ClientQueryResult instance. |
javax.jcr.Repository |
getRepository(RemoteRepository remote)
Creates and returns a
ClientRepository
instance. |
javax.jcr.query.Row |
getRow(javax.jcr.Session session,
RemoteRow remote)
Creates and returns a
ClientRow instance. |
javax.jcr.query.RowIterator |
getRowIterator(javax.jcr.Session session,
RemoteIterator remote)
Creates and returns a
ClientRowIterator instance. |
javax.jcr.Session |
getSession(javax.jcr.Repository repository,
RemoteSession remote)
Creates and returns a
ClientSession instance. |
javax.jcr.version.Version |
getVersion(javax.jcr.Session session,
RemoteVersion remote)
Creates and returns a
ClientVersion instance. |
javax.jcr.version.VersionHistory |
getVersionHistory(javax.jcr.Session session,
RemoteVersionHistory remote)
Creates and returns a
ClientVersionHistory
instance. |
javax.jcr.version.VersionIterator |
getVersionIterator(javax.jcr.Session session,
RemoteIterator remote)
Creates and returns a
ClientVersionIterator instance. |
javax.jcr.version.VersionManager |
getVersionManager(javax.jcr.Session session,
RemoteVersionManager remote) |
javax.jcr.Workspace |
getWorkspace(javax.jcr.Session session,
RemoteWorkspace remote)
Creates and returns a
ClientWorkspace instance. |
public javax.jcr.Repository getRepository(RemoteRepository remote)
ClientRepository
instance.
Factory method for creating a local adapter for a remote repository.getRepository
in interface LocalAdapterFactory
remote
- remote repositorypublic javax.jcr.Session getSession(javax.jcr.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 javax.jcr.Workspace getWorkspace(javax.jcr.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 javax.jcr.observation.ObservationManager getObservationManager(javax.jcr.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 javax.jcr.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 javax.jcr.nodetype.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 javax.jcr.Item getItem(javax.jcr.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 javax.jcr.Property getProperty(javax.jcr.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 javax.jcr.Node getNode(javax.jcr.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 javax.jcr.version.Version getVersion(javax.jcr.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 javax.jcr.version.VersionHistory getVersionHistory(javax.jcr.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 javax.jcr.nodetype.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 javax.jcr.nodetype.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 javax.jcr.nodetype.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 javax.jcr.nodetype.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 javax.jcr.lock.Lock getLock(javax.jcr.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 javax.jcr.query.QueryManager getQueryManager(javax.jcr.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 javax.jcr.query.Query getQuery(javax.jcr.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 javax.jcr.query.QueryResult getQueryResult(javax.jcr.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 javax.jcr.query.Row getRow(javax.jcr.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 javax.jcr.NodeIterator getNodeIterator(javax.jcr.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 javax.jcr.PropertyIterator getPropertyIterator(javax.jcr.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 javax.jcr.version.VersionIterator getVersionIterator(javax.jcr.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 javax.jcr.nodetype.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 javax.jcr.query.RowIterator getRowIterator(javax.jcr.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 javax.jcr.lock.LockManager getLockManager(javax.jcr.Session session, RemoteLockManager remote)
getLockManager
in interface LocalAdapterFactory
public javax.jcr.version.VersionManager getVersionManager(javax.jcr.Session session, RemoteVersionManager remote)
getVersionManager
in interface LocalAdapterFactory
public javax.jcr.security.AccessControlManager getAccessControlManager(RemoteAccessControlManager remote)
getAccessControlManager
in interface LocalAdapterFactory
remote
- remote access control managerpublic javax.jcr.security.AccessControlPolicy getAccessControlPolicy(RemoteAccessControlPolicy remote)
getAccessControlPolicy
in interface LocalAdapterFactory
remote
- remote access control policypublic javax.jcr.security.AccessControlPolicy[] getAccessControlPolicy(RemoteAccessControlPolicy[] remote)
getAccessControlPolicy
in interface LocalAdapterFactory
remote
- array of remote access control policiespublic javax.jcr.security.AccessControlPolicyIterator getAccessControlPolicyIterator(RemoteIterator remote)
getAccessControlPolicyIterator
in interface LocalAdapterFactory
remote
- access control policy iteratorpublic javax.jcr.security.AccessControlEntry getAccessControlEntry(RemoteAccessControlEntry remote)
getAccessControlEntry
in interface LocalAdapterFactory
remote
- remote access control entrypublic javax.jcr.security.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 java.security.acl.Group
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
java.security.acl.Group
interface.
getPrincipalIterator
in interface LocalAdapterFactory
remote
- remote principal iteratorpublic javax.jcr.security.Privilege getPrivilege(RemotePrivilege remote)
getPrivilege
in interface LocalAdapterFactory
remote
- remote privilegepublic javax.jcr.security.Privilege[] getPrivilege(RemotePrivilege[] remote)
getPrivilege
in interface LocalAdapterFactory
remote
- array of remote privilegeCopyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.