Class AbstractAuthenticatedCLI

java.lang.Object
ubic.gemma.cli.util.AbstractCLI
ubic.gemma.cli.util.AbstractAuthenticatedCLI
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware, org.springframework.context.EnvironmentAware, CLI
Direct Known Subclasses:
AbstractAutoSeekingCLI, ArrayDesignAlternativePopulateCli, BibRefUpdaterCli, BlacklistCli, CompleteCli, DatabaseViewGeneratorCLI, ExperimentalDesignViewCli, ExternalDatabaseAdderCli, ExternalDatabaseOverviewCli, ExternalDatabaseUpdaterCli, ExternalFileGeneLoaderCLI, FactorValueMigratorCLI, FindObsoleteTermsCli, FixOntologyTermLabelsCli, GenericGenelistDesignGenerator, GeoGrabberCli, LoadExpressionDataCli, LoadSimpleExpressionDataCli, MultifunctionalityCli, NCBIGene2GOAssociationLoaderCLI, NcbiGeneLoaderCLI, ProtocolAdderCli, ProtocolDeleterCli, ProtocolListCli, PubMedLoaderCli, PubMedSearcher, TaxonLoaderCli, UpdateEe2AdCli, UpdateEE2CCli, UpdateGene2CsCli, UpdatePubMedCli

public abstract class AbstractAuthenticatedCLI extends AbstractCLI implements org.springframework.beans.factory.InitializingBean, org.springframework.context.EnvironmentAware
Subclass this to create command line interface (CLI) tools that need authentication.

Credentials may be supplied via the environment using the $GEMMA_USERNAME and $GEMMA_PASSWORD variables. A more secure $GEMMA_PASSWORD_CMD variable can be used to specify a command that produces the password. If no environment variables are supplied, they will be prompted if the standard input is attached to a console (i.e tty).

If the test or testdb profile is active, environment variables with the $GEMMA_TESTDB_ prefix will be looked up instead.

Author:
pavlidis
  • Constructor Details

    • AbstractAuthenticatedCLI

      public AbstractAuthenticatedCLI()
  • Method Details