Interface RemoteAdapterFactory

  • All Known Implementing Classes:
    ServerAdapterFactory

    @Deprecated(forRemoval=true)
    public interface RemoteAdapterFactory
    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 remote adapters for local resources. This interface defines how the local JCR interfaces are adapted to remote JCR-RMI references. The adaption mechanism can be modified (for example to add extra features) by changing the remote adapter factory used by the repository server.

    Note that the ServerObject base class provides a number of utility methods designed to work with a remote adapter factory. Adapter implementations may want to inherit that functionality by subclassing from ServerObject.

    See Also:
    LocalAdapterFactory, ServerAdapterFactory, ServerObject
    • Method Detail

      • getPortNumber

        int getPortNumber()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Returns the port number to which the server objects created by this factory are bound. This method is mostly used internally by the ServerObject constructor to determine which port number to use.
        Returns:
        port number, or 0 for a random port
      • getRemoteRepository

        RemoteRepository getRemoteRepository​(Repository repository)
                                      throws RemoteException
        Deprecated, for removal: This API element is subject to removal in a future version.
        Returns a remote adapter for the given local repository.
        Parameters:
        repository - local repository
        Returns:
        remote repository adapter
        Throws:
        RemoteException - on RMI errors
      • getRemoteSession

        RemoteSession getRemoteSession​(Session session)
                                throws RemoteException
        Deprecated, for removal: This API element is subject to removal in a future version.
        Returns a remote adapter for the given local session.
        Parameters:
        session - local session
        Returns:
        remote session adapter
        Throws:
        RemoteException - on RMI errors
      • getRemoteWorkspace

        RemoteWorkspace getRemoteWorkspace​(Workspace workspace)
                                    throws RemoteException
        Deprecated, for removal: This API element is subject to removal in a future version.
        Returns a remote adapter for the given local workspace.
        Parameters:
        workspace - local workspace
        Returns:
        remote workspace adapter
        Throws:
        RemoteException - on RMI errors
      • getRemoteObservationManager

        RemoteObservationManager getRemoteObservationManager​(ObservationManager observationManager)
                                                      throws RemoteException
        Deprecated, for removal: This API element is subject to removal in a future version.
        Returns a remote adapter for the given local observation manager.
        Parameters:
        observationManager - local observation manager
        Returns:
        remote observation manager adapter
        Throws:
        RemoteException - on RMI errors
      • getRemoteNamespaceRegistry

        RemoteNamespaceRegistry getRemoteNamespaceRegistry​(NamespaceRegistry registry)
                                                    throws RemoteException
        Deprecated, for removal: This API element is subject to removal in a future version.
        Returns a remote adapter for the given local namespace registry.
        Parameters:
        registry - local namespace registry
        Returns:
        remote namespace registry adapter
        Throws:
        RemoteException - on RMI errors
      • getRemoteNodeTypeManager

        RemoteNodeTypeManager getRemoteNodeTypeManager​(NodeTypeManager manager)
                                                throws RemoteException
        Deprecated, for removal: This API element is subject to removal in a future version.
        Returns a remote adapter for the given local node type manager.
        Parameters:
        manager - local node type manager
        Returns:
        remote node type manager adapter
        Throws:
        RemoteException - on RMI errors
      • getRemoteItem

        RemoteItem getRemoteItem​(Item item)
                          throws RemoteException
        Deprecated, for removal: This API element is subject to removal in a future version.
        Returns a remote adapter for the given local item. This method will return an adapter that implements only the Item interface. The caller may want to introspect the local item to determine whether to use either the getRemoteNode or the getRemoteProperty method instead.
        Parameters:
        item - local item
        Returns:
        remote item adapter
        Throws:
        RemoteException - on RMI errors
      • getRemoteProperty

        RemoteProperty getRemoteProperty​(Property property)
                                  throws RemoteException
        Deprecated, for removal: This API element is subject to removal in a future version.
        Returns a remote adapter for the given local property.
        Parameters:
        property - local property
        Returns:
        remote property adapter
        Throws:
        RemoteException - on RMI errors
      • getRemoteNode

        RemoteNode getRemoteNode​(Node node)
                          throws RemoteException
        Deprecated, for removal: This API element is subject to removal in a future version.
        Returns a remote adapter for the given local node.
        Parameters:
        node - local node
        Returns:
        remote node adapter
        Throws:
        RemoteException - on RMI errors
      • getRemoteVersion

        RemoteVersion getRemoteVersion​(Version version)
                                throws RemoteException
        Deprecated, for removal: This API element is subject to removal in a future version.
        Returns a remote adapter for the given local version.
        Parameters:
        version - local version
        Returns:
        remote version adapter
        Throws:
        RemoteException - on RMI errors
      • getRemoteVersionHistory

        RemoteVersionHistory getRemoteVersionHistory​(VersionHistory versionHistory)
                                              throws RemoteException
        Deprecated, for removal: This API element is subject to removal in a future version.
        Returns a remote adapter for the given local version history.
        Parameters:
        versionHistory - local version history
        Returns:
        remote version history adapter
        Throws:
        RemoteException - on RMI errors
      • getRemoteNodeType

        RemoteNodeType getRemoteNodeType​(NodeType type)
                                  throws RemoteException
        Deprecated, for removal: This API element is subject to removal in a future version.
        Returns a remote adapter for the given local node type.
        Parameters:
        type - local node type
        Returns:
        remote node type adapter
        Throws:
        RemoteException - on RMI errors
      • getRemoteItemDefinition

        RemoteItemDefinition getRemoteItemDefinition​(ItemDefinition def)
                                              throws RemoteException
        Deprecated, for removal: This API element is subject to removal in a future version.
        Returns a remote adapter for the given local item definition. This method will return an adapter that implements only the ItemDefinition interface. The caller may want to introspect the local item definition to determine whether to use either the getRemoteNodeDef or the getRemotePropertyDef method instead.
        Parameters:
        def - local item definition
        Returns:
        remote item definition adapter
        Throws:
        RemoteException - on RMI errors
      • getRemoteNodeDefinition

        RemoteNodeDefinition getRemoteNodeDefinition​(NodeDefinition def)
                                              throws RemoteException
        Deprecated, for removal: This API element is subject to removal in a future version.
        Returns a remote adapter for the given local node definition.
        Parameters:
        def - local node definition
        Returns:
        remote node definition adapter
        Throws:
        RemoteException - on RMI errors
      • getRemotePropertyDefinition

        RemotePropertyDefinition getRemotePropertyDefinition​(PropertyDefinition def)
                                                      throws RemoteException
        Deprecated, for removal: This API element is subject to removal in a future version.
        Returns a remote adapter for the given local property definition.
        Parameters:
        def - local property definition
        Returns:
        remote property definition adapter
        Throws:
        RemoteException - on RMI errors
      • getRemoteLock

        RemoteLock getRemoteLock​(Lock lock)
                          throws RemoteException
        Deprecated, for removal: This API element is subject to removal in a future version.
        Returns a remote adapter for the given local lock.
        Parameters:
        lock - local lock
        Returns:
        remote lock adapter
        Throws:
        RemoteException - on RMI errors
      • getRemoteQueryManager

        RemoteQueryManager getRemoteQueryManager​(Session session,
                                                 QueryManager manager)
                                          throws RemoteException
        Deprecated, for removal: This API element is subject to removal in a future version.
        Returns a remote adapter for the given local query manager.
        Parameters:
        session - current session
        manager - local query manager
        Returns:
        remote query manager adapter
        Throws:
        RemoteException - on RMI errors
      • getRemoteQuery

        RemoteQuery getRemoteQuery​(Query query)
                            throws RemoteException
        Deprecated, for removal: This API element is subject to removal in a future version.
        Returns a remote adapter for the given local query.
        Parameters:
        query - local query
        Returns:
        remote query adapter
        Throws:
        RemoteException - on RMI errors
      • getRemoteQueryResult

        RemoteQueryResult getRemoteQueryResult​(QueryResult result)
                                        throws RemoteException
        Deprecated, for removal: This API element is subject to removal in a future version.
        Returns a remote adapter for the given local query result.
        Parameters:
        result - local query result
        Returns:
        remote query result adapter
        Throws:
        RemoteException - on RMI errors
      • getRemoteRow

        RemoteRow getRemoteRow​(Row row)
                        throws RemoteException
        Deprecated, for removal: This API element is subject to removal in a future version.
        Returns a remote adapter for the given local query row.
        Parameters:
        row - local query row
        Returns:
        remote query row adapter
        Throws:
        RemoteException - on RMI errors
      • getRemoteEvent

        RemoteEventCollection getRemoteEvent​(long listenerId,
                                             EventIterator events)
                                      throws RemoteException
        Deprecated, for removal: This API element is subject to removal in a future version.
        Returns a remote adapter for the given local events.
        Parameters:
        listenerId - The listener identifier to which the events are to be dispatched.
        events - the local events
        Returns:
        remote event iterator adapter
        Throws:
        RemoteException - on RMI errors
      • getRemoteNodeIterator

        RemoteIterator getRemoteNodeIterator​(NodeIterator iterator)
                                      throws RemoteException
        Deprecated, for removal: This API element is subject to removal in a future version.
        Returns a remote adapter for the given local node iterator.
        Parameters:
        iterator - local node iterator
        Returns:
        remote iterator adapter
        Throws:
        RemoteException - on RMI errors
      • getRemotePropertyIterator

        RemoteIterator getRemotePropertyIterator​(PropertyIterator iterator)
                                          throws RemoteException
        Deprecated, for removal: This API element is subject to removal in a future version.
        Returns a remote adapter for the given local property iterator.
        Parameters:
        iterator - local property iterator
        Returns:
        remote iterator adapter
        Throws:
        RemoteException - on RMI errors
      • getRemoteVersionIterator

        RemoteIterator getRemoteVersionIterator​(VersionIterator iterator)
                                         throws RemoteException
        Deprecated, for removal: This API element is subject to removal in a future version.
        Returns a remote adapter for the given local version iterator.
        Parameters:
        iterator - local version iterator
        Returns:
        remote iterator adapter
        Throws:
        RemoteException - on RMI errors
      • getRemoteNodeTypeIterator

        RemoteIterator getRemoteNodeTypeIterator​(NodeTypeIterator iterator)
                                          throws RemoteException
        Deprecated, for removal: This API element is subject to removal in a future version.
        Returns a remote adapter for the given local node type iterator.
        Parameters:
        iterator - local node type iterator
        Returns:
        remote iterator adapter
        Throws:
        RemoteException - on RMI errors
      • getRemoteRowIterator

        RemoteIterator getRemoteRowIterator​(RowIterator iterator)
                                     throws RemoteException
        Deprecated, for removal: This API element is subject to removal in a future version.
        Returns a remote adapter for the given local row iterator.
        Parameters:
        iterator - local row iterator
        Returns:
        remote iterator adapter
        Throws:
        RemoteException - on RMI errors
      • getRemoteAccessControlManager

        RemoteAccessControlManager getRemoteAccessControlManager​(AccessControlManager acm)
                                                          throws RemoteException
        Deprecated, for removal: This API element is subject to removal in a future version.
        Returns a remote adapter for the given local access control manager.
        Parameters:
        acm - local access control manager
        Returns:
        remote access control manager
        Throws:
        RemoteException - on RMI errors
      • getRemotePrivilege

        RemotePrivilege getRemotePrivilege​(Privilege local)
                                    throws RemoteException
        Deprecated, for removal: This API element is subject to removal in a future version.
        Returns a remote adapter for the given local access control manager.
        Returns:
        remote access control manager
        Throws:
        RemoteException - on RMI errors
      • getRemotePrivilege

        RemotePrivilege[] getRemotePrivilege​(Privilege[] local)
                                      throws RemoteException
        Deprecated, for removal: This API element is subject to removal in a future version.
        Returns a remote adapter for the given local access control manager.
        Returns:
        remote access control manager
        Throws:
        RemoteException - on RMI errors
      • getRemoteAccessControlPolicy

        RemoteAccessControlPolicy getRemoteAccessControlPolicy​(AccessControlPolicy local)
                                                        throws RemoteException
        Deprecated, for removal: This API element is subject to removal in a future version.
        Returns a remote adapter for the given local access control manager.
        Returns:
        remote access control manager
        Throws:
        RemoteException - on RMI errors
      • getRemoteAccessControlPolicy

        RemoteAccessControlPolicy[] getRemoteAccessControlPolicy​(AccessControlPolicy[] local)
                                                          throws RemoteException
        Deprecated, for removal: This API element is subject to removal in a future version.
        Returns a remote adapter for the given local access control manager.
        Returns:
        remote access control manager
        Throws:
        RemoteException - on RMI errors
      • getRemoteAccessControlPolicyIterator

        RemoteIterator getRemoteAccessControlPolicyIterator​(AccessControlPolicyIterator iterator)
                                                     throws RemoteException
        Deprecated, for removal: This API element is subject to removal in a future version.
        Returns a remote adapter for the given local access control manager.
        Returns:
        remote access control manager
        Throws:
        RemoteException - on RMI errors
      • getRemoteAccessControlEntry

        RemoteAccessControlEntry getRemoteAccessControlEntry​(AccessControlEntry local)
                                                      throws RemoteException
        Deprecated, for removal: This API element is subject to removal in a future version.
        Returns a remote adapter for the given local access control manager.
        Returns:
        remote access control manager
        Throws:
        RemoteException - on RMI errors
      • getRemoteAccessControlEntry

        RemoteAccessControlEntry[] getRemoteAccessControlEntry​(AccessControlEntry[] local)
                                                        throws RemoteException
        Deprecated, for removal: This API element is subject to removal in a future version.
        Returns a remote adapter for the given local access control manager.
        Returns:
        remote access control manager
        Throws:
        RemoteException - on RMI errors
      • getRemotePrincipal

        RemotePrincipal getRemotePrincipal​(Principal principal)
                                    throws RemoteException
        Deprecated, for removal: This API element is subject to removal in a future version.
        Returns a remote adapter for the given local access control manager.
        Returns:
        remote access control manager
        Throws:
        RemoteException - on RMI errors
      • getRemotePrincipalIterator

        RemoteIterator getRemotePrincipalIterator​(Iterator<Principal> principals)
                                           throws RemoteException
        Deprecated, for removal: This API element is subject to removal in a future version.
        Returns a remote adapter for the given local access control manager.
        Returns:
        remote access control manager
        Throws:
        RemoteException - on RMI errors