Class AMSetupDSConfig


  • public class AMSetupDSConfig
    extends Object
    This class does Directory Server related tasks for OpenAM deployed as single web application.
    • Method Detail

      • getInstance

        public static AMSetupDSConfig getInstance()
        Returns a single instance if not already created.
        Returns:
        AMSetupDSConfig instance.
      • setLocale

        public void setLocale​(Locale locale)
      • setDSValues

        public void setDSValues()
        Set the values required for Service Schema files.
      • connectDSwithDN

        public boolean connectDSwithDN​(boolean ssl)
        Check if Directory Server has the suffix.
        Parameters:
        ssl - true if directory server is running on LDAPS.
        Returns:
        true if specified suffix exists.
      • loadSchemaFiles

        public void loadSchemaFiles​(List schemaFiles)
                             throws ConfiguratorException
        Loads the schema files into the directory Server.
        Parameters:
        schemaFiles - Array of schema files to load.
        Throws:
        ConfiguratorException - if unable to load schema.