Class ProxyRepository

    • Constructor Detail

      • ProxyRepository

        public ProxyRepository​(org.apache.jackrabbit.rmi.repository.RepositoryFactory factory)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Creates a proxy for the repository (or repositories) accessible through the given factory.
        Parameters:
        factory - repository factory
    • Method Detail

      • getDescriptorKeys

        public String[] getDescriptorKeys()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Returns the descriptor keys of the proxied repository, or an empty array if the proxied repository can not be accessed.
        Specified by:
        getDescriptorKeys in interface Repository
        Returns:
        descriptor keys (possibly empty)
      • isSingleValueDescriptor

        public boolean isSingleValueDescriptor​(String key)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Checks whether the given key identifies a valid single-valued descriptor key in the proxied repository. Returns false if the proxied repository can not be accessed.
        Specified by:
        isSingleValueDescriptor in interface Repository
        Returns:
        true if the key identifies a valid single-valued descriptor in the proxied repository, false otherwise
      • getDescriptor

        public String getDescriptor​(String key)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Returns the descriptor with the given key from the proxied repository. Returns null if the descriptor does not exist or if the proxied repository can not be accessed.
        Specified by:
        getDescriptor in interface Repository
        Parameters:
        key - descriptor key
        Returns:
        descriptor value, or null
      • getDescriptorValue

        public Value getDescriptorValue​(String key)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Returns the value of the descriptor with the given key from the proxied repository. Returns null if the descriptor does not exist or if the proxied repository can not be accessed.
        Specified by:
        getDescriptorValue in interface Repository
        Parameters:
        key - descriptor key
        Returns:
        descriptor value, or null
      • getDescriptorValues

        public Value[] getDescriptorValues​(String key)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Returns the values of the descriptor with the given key from the proxied repository. Returns null if the descriptor does not exist or if the proxied repository can not be accessed.
        Specified by:
        getDescriptorValues in interface Repository
        Parameters:
        key - descriptor key
        Returns:
        descriptor values, or null
      • login

        public Session login​(Credentials credentials,
                             String workspace)
                      throws RepositoryException
        Deprecated, for removal: This API element is subject to removal in a future version.
        Logs in to the proxied repository and returns the resulting session.

        Note that the Session.getRepository() method of the resulting session will return the proxied repository, not this repository proxy!

        Specified by:
        login in interface Repository
        Throws:
        RepositoryException - if the proxied repository can not be accessed, or if the login in the proxied repository fails
      • isStandardDescriptor

        public boolean isStandardDescriptor​(String key)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Returns true if the given key identifies a standard descriptor.
        Specified by:
        isStandardDescriptor in interface Repository
        Parameters:
        key - descriptor key
        Returns:
        true if the key identifies a standard descriptor, false otherwise