Class CAProfileImportCLI


  • public class CAProfileImportCLI
    extends CommandCLI
    Author:
    Endi S. Dewata
    • Field Detail

      • logger

        public static org.slf4j.Logger logger
    • Constructor Detail

      • CAProfileImportCLI

        public CAProfileImportCLI​(CLI parent)
    • Method Detail

      • execute

        public void execute​(org.apache.commons.cli.CommandLine cmd)
                     throws java.lang.Exception
        Overrides:
        execute in class CommandCLI
        Throws:
        java.lang.Exception
      • importProfiles

        public void importProfiles​(EngineConfig cs,
                                   PluginRegistry pluginRegistry,
                                   netscape.ldap.LDAPConnection conn,
                                   java.lang.String baseDN,
                                   java.lang.String inputFolder)
                            throws java.lang.Exception
        Import profiles from the filesystem into the database.
        Throws:
        java.lang.Exception
      • importProfile

        public void importProfile​(netscape.ldap.LDAPConnection conn,
                                  java.lang.String baseDN,
                                  java.lang.String classID,
                                  java.lang.String profileID,
                                  java.lang.String profilePath)
                           throws java.lang.Exception
        Import one profile from the filesystem into the database.
        Parameters:
        conn - LDAP connection.
        classID - The profile class of the profile to import.
        profileID - The ID of the profile to import.
        profilePath - Path to the on-disk profile configuration.
        Throws:
        java.lang.Exception