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 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 repository
        remote - 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 session
        remote - 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 workspace
        remote - 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 the getNode or getProperty method instead, as the adapter returned by this method will only cover the basic Item interface.
        Parameters:
        session - current session
        remote - 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 session
        remote - 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 session
        remote - 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 session
        remote - 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 session
        remote - 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 the getNodeDef or getPropertyDef method instead, as the adapter returned by this method will only cover the ItemDef 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 session
        remote - 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 session
        remote - 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 session
        remote - 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 session
        remote - 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 session
        remote - 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 session
        remote - 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 session
        remote - 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 session
        remote - 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 session
        remote - 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.
      • 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 a RemoteGroup the principal returned implements the org.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 a RemoteGroup will be provided as a principal implementing the org.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