Class DeleteExperimentsCli
- All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware, org.springframework.context.EnvironmentAware, CLI
Delete one or more experiments from the system.
- Author:
- paul
-
Nested Class Summary
Nested classes/interfaces inherited from interface CLI
CLI.CommandGroup -
Field Summary
Fields inherited from class ExpressionExperimentManipulatingCLI
auditEventService, auditTrailService, eeService, entityLocator, entityUrlBuilderFields inherited from class AbstractAutoSeekingCLI
FORCE_OPTIONFields inherited from class AbstractCLI
ABORTED, FAILURE, FAILURE_FROM_ERROR_OBJECTS, log, SUCCESS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbuildExperimentOptions(org.apache.commons.cli.Options options) protected voidA short memorable name for the command that can be used to locate this class.Obtain a short description for this command explaining what it does.protected voidprocessExperimentOptions(org.apache.commons.cli.CommandLine commandLine) protected voidProcess anExpressionExperiment.protected booleanselectsOwnExperiments(org.apache.commons.cli.CommandLine commandLine) Whether the given options select what to process by some means other than-all,-e,-eeset,-for-q.Methods inherited from class ExpressionExperimentManipulatingCLI
addCellMetadataFileOptions, addDataFileOptions, addDataFileOptions, addDesignFileOptions, addExpressionDataFileOptions, addSingleCellExpressionDataFileOptions, addSingleExperimentAutoOption, addSingleExperimentEnumOption, addSingleExperimentOption, addSingleExperimentOption, buildOptions, formatExperiment, getCellMetadataFileOptionValue, getCommandGroup, getDataFileOptionValue, getDataFileOptionValue, getDesignFileOptionValue, getExpressionDataFileOptionValue, getSingleCellExpressionDataFileOptionValue, isAbortOnError, noNeedToRun, postprocessExpressionExperiments, preprocessExpressionExperiments, processAllExpressionExperiments, processExpressionExperiments, processOptions, readChangelogEntryFromConsole, refreshExpressionExperimentFromGemmaWeb, refreshExpressionExperimentFromGemmaWebSilently, setAbortOnError, setAllIsLazy, setDefaultToAll, setExplicitEEsOnly, setSingleExperimentMode, setUseReferencesIfPossible, toBatchObjectMethods inherited from class AbstractAutoSeekingCLI
addAutoOption, addAutoOption, addErrorObject, addErrorObject, addErrorObject, addForceOption, addForceOption, addLimitingDateOption, addSuccessObject, addSuccessObject, addWarningObject, addWarningObject, getAutoSeekEventType, getLimitingDate, isAutoSeek, isForce, setForceMethods inherited from class AbstractAuthenticatedCLI
afterPropertiesSet, doWork, setAuthenticateAnonymously, setEnvironment, setRequireLoginMethods inherited from class AbstractCLI
abort, addBatchOption, addErrorObject, addErrorObject, addErrorObject, addSuccessObject, addSuccessObject, addThreadsOption, addWarningObject, addWarningObject, allowPositionalArguments, awaitBatchExecutorService, checkStandardOutput, executeCommand, getApplicationContext, getBatchTaskExecutor, getBatchTaskProgressReporter, getCliContext, getCommandAliases, getHelpFooter, getNumThreads, getOptions, getPipelineJobReporter, getUsage, openStandardOutput, promptConfirmationOrAbort, setAllowPositionalArguments, setApplicationContext, setEstimatedMaxTasks, setReportFrequencyMillis
-
Constructor Details
-
DeleteExperimentsCli
public DeleteExperimentsCli()
-
-
Method Details
-
getCommandName
Description copied from interface:CLIA short memorable name for the command that can be used to locate this class.- Specified by:
getCommandNamein interfaceCLI- Overrides:
getCommandNamein classAbstractCLI- Returns:
- name; if null or blank, this will not be available as a shortcut command.
-
getShortDesc
Description copied from interface:CLIObtain a short description for this command explaining what it does.- Specified by:
getShortDescin interfaceCLI- Overrides:
getShortDescin classAbstractCLI
-
buildExperimentOptions
protected void buildExperimentOptions(org.apache.commons.cli.Options options) - Overrides:
buildExperimentOptionsin classExpressionExperimentManipulatingCLI
-
selectsOwnExperiments
protected boolean selectsOwnExperiments(org.apache.commons.cli.CommandLine commandLine) Description copied from class:ExpressionExperimentManipulatingCLIWhether the given options select what to process by some means other than-all,-e,-eeset,-for-q.If so, giving none of those is not an error. The subclass is then responsible for its own selection, e.g. by overriding
ExpressionExperimentManipulatingCLI.doAuthenticatedWork(). This is checked beforeExpressionExperimentManipulatingCLI.processExperimentOptions(CommandLine).- Overrides:
selectsOwnExperimentsin classExpressionExperimentManipulatingCLI
-
processExperimentOptions
protected void processExperimentOptions(org.apache.commons.cli.CommandLine commandLine) throws org.apache.commons.cli.ParseException - Overrides:
processExperimentOptionsin classExpressionExperimentManipulatingCLI- Throws:
org.apache.commons.cli.ParseException
-
doAuthenticatedWork
- Overrides:
doAuthenticatedWorkin classExpressionExperimentManipulatingCLI- Throws:
Exception
-
processExpressionExperiment
Description copied from class:ExpressionExperimentManipulatingCLIProcess anExpressionExperiment.- Overrides:
processExpressionExperimentin classExpressionExperimentManipulatingCLI
-