Class RepositoryAccessor


  • @Deprecated
    public class RepositoryAccessor
    extends java.lang.Object
    Deprecated.
    No longer supported
    Access a Repository via JNDI or RMI.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String JNDI_PREFIX
      Deprecated.
      static java.lang.String REPOSITORY_URL_OVERRIDE_PROPERTY
      Deprecated.
      Name of the property that the jcr client and server bundles to override their default configuration settings and connect to the specified repository instead (SLING-254 and SLING-260)
      static java.lang.String RMI_PREFIX
      Deprecated.
    • Constructor Summary

      Constructors 
      Constructor Description
      RepositoryAccessor()
      Deprecated.
       
    • Field Detail

      • RMI_PREFIX

        @Deprecated
        public static final java.lang.String RMI_PREFIX
        Deprecated.
        Prefix for RMI Repository URLs
        See Also:
        Constant Field Values
      • JNDI_PREFIX

        @Deprecated
        public static final java.lang.String JNDI_PREFIX
        Deprecated.
        Prefix for JNDI Repository URLs
        See Also:
        Constant Field Values
      • REPOSITORY_URL_OVERRIDE_PROPERTY

        public static final java.lang.String REPOSITORY_URL_OVERRIDE_PROPERTY
        Deprecated.
        Name of the property that the jcr client and server bundles to override their default configuration settings and connect to the specified repository instead (SLING-254 and SLING-260)
        See Also:
        Constant Field Values
    • Constructor Detail

      • RepositoryAccessor

        public RepositoryAccessor()
        Deprecated.
    • Method Detail

      • getRepository

        @Deprecated
        public Repository getRepository​(java.lang.String repositoryName,
                                        java.util.Hashtable<java.lang.String,​java.lang.Object> jndiContext)
        Deprecated.
        No longer supported
        First try to access the Repository via JNDI (unless jndiContext is null), and if not successful try RMI.
        Parameters:
        repositoryName - JNDI name or RMI URL (must start with "rmi://") of the Repository
        jndiContext - if null, JNDI is not tried
        Returns:
        a Repository, or null if not found
        Throws:
        java.lang.UnsupportedOperationException - Always throws UnsupportedOperationException
      • getRepositoryFromURL

        @Deprecated
        public Repository getRepositoryFromURL​(java.lang.String url)
        Deprecated.
        No longer supported
        Acquire a Repository from the given URL
        Parameters:
        url - for RMI, an RMI URL. For JNDI, "jndi://", followed by the JNDI repository name, followed by a colon and a comma-separated list of JNDI context values, for example:
              jndi://jackrabbit:java.naming.factory.initial=org.SomeClass,java.naming.provider.url=http://foo.com
         
        Returns:
        the repository for the given url
        Throws:
        java.lang.UnsupportedOperationException - Always throws UnsupportedOperationException