Class CAProfileImportCLI


  • public class CAProfileImportCLI
    extends org.dogtagpki.cli.CommandCLI
    Author:
    Endi S. Dewata
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static org.slf4j.Logger logger  
      • Fields inherited from class org.dogtagpki.cli.CLI

        client, description, formatter, modules, name, options, parent, parser, verbose
    • Constructor Summary

      Constructors 
      Constructor Description
      CAProfileImportCLI​(org.dogtagpki.cli.CLI parent)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void createOptions()  
      void execute​(org.apache.commons.cli.CommandLine cmd)  
      void importProfile​(netscape.ldap.LDAPConnection conn, java.lang.String baseDN, java.lang.String classID, java.lang.String profileID, java.lang.String profilePath)
      Import one profile from the filesystem into the database.
      void importProfiles​(EngineConfig cs, PluginRegistry pluginRegistry, netscape.ldap.LDAPConnection conn, java.lang.String baseDN, java.lang.String inputFolder)
      Import profiles from the filesystem into the database.
      • Methods inherited from class org.dogtagpki.cli.CommandCLI

        execute
      • Methods inherited from class org.dogtagpki.cli.CLI

        addModule, findModule, findModules, getClient, getClient, getConfig, getDescription, getFullModuleName, getFullName, getManPage, getModule, getModules, getName, getParent, getRoot, isDeprecated, printCommands, printHelp, removeModule, runExternal, runExternal, setDescription, setName
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • logger

        public static org.slf4j.Logger logger
    • Constructor Detail

      • CAProfileImportCLI

        public CAProfileImportCLI​(org.dogtagpki.cli.CLI parent)
    • Method Detail

      • createOptions

        public void createOptions()
        Overrides:
        createOptions in class org.dogtagpki.cli.CommandCLI
      • execute

        public void execute​(org.apache.commons.cli.CommandLine cmd)
                     throws java.lang.Exception
        Overrides:
        execute in class org.dogtagpki.cli.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