ILIAS  trunk Revision v11.0_alpha-1761-g6dbbfa7b760
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ILIAS\Setup\Objective Interface Reference

An objective is a desired state of the system that is supposed to be created by the setup. More...

+ Inheritance diagram for ILIAS\Setup\Objective:
+ Collaboration diagram for ILIAS\Setup\Objective:

Public Member Functions

 getHash ()
 Get a hash for this objective. More...
 
 getLabel ()
 Get a label that describes this objective. More...
 
 isNotable ()
 Get to know if this is an interesting objective for a human. More...
 
 getPreconditions (Environment $environment)
 Objectives might depend on other objectives. More...
 
 achieve (Environment $environment)
 Objectives can be achieved. More...
 
 isApplicable (Environment $environment)
 Get to know whether the objective is applicable. More...
 

Detailed Description

An objective is a desired state of the system that is supposed to be created by the setup.

This interface would benefit from generics, in fact it would be parametrized with a Config-type.

Definition at line 30 of file Objective.php.

Member Function Documentation

◆ achieve()

ILIAS\Setup\Objective::achieve ( Environment  $environment)

Objectives can be achieved.

They might add resources to the environment when they have been achieved.

This method needs to be idempotent for a given environment. That means: if this is executed a second time, nothing new should happen. Or the other way round: if the environment already looks like desired, the objective should not take any further actions when this is called.

Exceptions

Implemented in ilFileSystemDirectoriesCreatedObjective, ILIAS\Setup\ObjectiveCollection, ilFileSystemComponentDataDirectoryCreatedObjective, ilDatabaseUpdateStepsExecutedObjective, ilStorageContainersExistingObjective, ilDatabaseDumpedToDirectoryObjective, ilDatabaseResetStepsObjective, ilDatabaseInitializedObjective, ILIAS\Setup\CLI\ImportFileUnzippedFileObjective, ilDatabaseExistsObjective, ilLoggingConfigStoredObjective, ilDatabaseCreatedObjective, ilFileSystemClientDirectoryRenamedObjective, ilFileSystemConfigNotChangedObjective, ilBackgroundTasksConfigStoredObjective, ilDatabaseConfigStoredObjective, ilDatabaseServerIsConnectableObjective, ilDatabaseUpdatedObjective, ilDataCollectionObjective, ilDBStepExecutionDBExistsObjective, and ilDBStepReaderExistsObjective.

Referenced by ilFileObjectSettingsUpdatedObjective\getPreconditions(), ilGlobalCacheConfigStoredObjective\getPreconditions(), ilDatabaseEnvironmentValidObjective\getPreconditions(), ilDatabasePopulatedObjective\getPreconditions(), ilFileSystemDirectoryCopiedRecursivelyObjective\getPreconditions(), ILIAS\Setup\Objective\MigrationObjective\getPreconditions(), and ILIAS\File\Icon\ilObjFileDefaultIconsObjective\getPreconditions().

+ Here is the caller graph for this function:

◆ getHash()

ILIAS\Setup\Objective::getHash ( )

Get a hash for this objective.

The hash of two objectives must be the same, if they are the same objective, with the same config on the same environment, i.e. if the one is achieved the other is achieved as well because they are the same.

Implemented in ILIAS\Setup\Artifact\BuildArtifactObjective, ilDatabaseUpdateStepsMetricsCollectedObjective, ILIAS\Setup\Metrics\CollectedObjective, ILIAS\Setup\Condition\ExternalConditionObjective, ILIAS\Setup\Objective\CallableObjective, ILIAS\Setup\Objective\ObjectiveWithPreconditions, ILIAS\Setup\ObjectiveCollection, ILIAS\Setup\Objective\DirectoryCreatedObjective, ILIAS\File\Icon\ilObjFileDefaultIconsObjective, ILIAS\Setup\Objective\MigrationObjective, ilDatabaseResetStepsObjective, ilDatabaseUpdateStepsExecutedObjective, ilFileSystemComponentDataDirectoryCreatedObjective, ilFileSystemDirectoryCopiedRecursivelyObjective, ILIAS\Setup\CLI\ImportFileUnzippedFileObjective, ILIAS\Setup\Objective\AdminConfirmedObjective, ILIAS\Setup\Objective\ClientIdReadObjective, ILIAS\Setup\Objective\Tentatively, ilDatabaseEnvironmentValidObjective, ilFileSystemDirectoriesCreatedObjective, ilLoggingConfigStoredObjective, ILIAS\Component\Setup\PublicAssetsBuildObjective, ilDatabaseDumpedToDirectoryObjective, ilFileSystemClientDirectoryRenamedObjective, ILIAS\Setup\Objective\NullObjective, ilDatabasePopulatedObjective, ilBackgroundTasksConfigStoredObjective, ilDatabaseUpdatedObjective, ilFileSystemConfigNotChangedObjective, ilGlobalCacheConfigStoredObjective, ilDatabaseConfigStoredObjective, ilDatabaseInitializedObjective, ilDatabaseCreatedObjective, ilDatabaseExistsObjective, ilDatabaseServerIsConnectableObjective, ilDBStepExecutionDBExistsObjective, ilDBStepReaderExistsObjective, and ilFileObjectSettingsUpdatedObjective.

Referenced by ILIAS\Setup\ObjectiveIterator\markAsFailed().

+ Here is the caller graph for this function:

◆ getLabel()

ILIAS\Setup\Objective::getLabel ( )

Get a label that describes this objective.

Implemented in ILIAS\Setup\Artifact\BuildArtifactObjective, ilDatabaseUpdateStepsMetricsCollectedObjective, ILIAS\Setup\Objective\ObjectiveWithPreconditions, ILIAS\Setup\ObjectiveCollection, ILIAS\Setup\Condition\ExternalConditionObjective, ILIAS\Setup\Metrics\CollectedObjective, ILIAS\Setup\Objective\CallableObjective, ILIAS\Setup\Objective\DirectoryCreatedObjective, ILIAS\File\Icon\ilObjFileDefaultIconsObjective, ILIAS\Setup\Objective\AdminConfirmedObjective, ILIAS\Setup\Objective\MigrationObjective, ilDatabaseUpdateStepsExecutedObjective, ilFileSystemDirectoryCopiedRecursivelyObjective, ilDatabaseResetStepsObjective, ILIAS\Setup\Objective\ClientIdReadObjective, ILIAS\Setup\Objective\Tentatively, ILIAS\Setup\CLI\ImportFileUnzippedFileObjective, ilDatabaseDumpedToDirectoryObjective, ilDatabaseEnvironmentValidObjective, ilDatabasePopulatedObjective, ilFileSystemDirectoriesCreatedObjective, ilLoggingConfigStoredObjective, ILIAS\Component\Setup\PublicAssetsBuildObjective, ilDatabaseServerIsConnectableObjective, ilFileSystemClientDirectoryRenamedObjective, ILIAS\Setup\Objective\NullObjective, ilDatabaseCreatedObjective, ilDatabaseExistsObjective, ilBackgroundTasksConfigStoredObjective, ilDatabaseUpdatedObjective, ilFileSystemConfigNotChangedObjective, ilGlobalCacheConfigStoredObjective, ilDatabaseConfigStoredObjective, ilDatabaseInitializedObjective, ilFileObjectSettingsUpdatedObjective, ilDBStepExecutionDBExistsObjective, and ilDBStepReaderExistsObjective.

◆ getPreconditions()

◆ isApplicable()

ILIAS\Setup\Objective::isApplicable ( Environment  $environment)

◆ isNotable()

ILIAS\Setup\Objective::isNotable ( )

The documentation for this interface was generated from the following file: