ILIAS  trunk Revision v12.0_alpha-1540-g00f839d5fa1
ILIAS\WebDAV\Setup\Agent Class Reference
+ Inheritance diagram for ILIAS\WebDAV\Setup\Agent:
+ Collaboration diagram for ILIAS\WebDAV\Setup\Agent:

Public Member Functions

 getInstallObjective (?Config $config=null)
 Get the goals the agent wants to achieve on setup. More...
 
 getUpdateObjective (?Config $config=null)
 Get the goal the agent wants to achieve on update. More...
 
 hasConfig ()
 Does this agent require a configuration? More...
 
 getArrayToConfigTransformation ()
 Agents must be able to tell how to create a configuration from a nested array. More...
 
 getBuildObjective ()
 Get the goal the agent wants to achieve to build artifacts. More...
 
 getNamedObjectives (?Config $config=null)
 Gets all named objectives The keys of the returned array are the commands. More...
 
 getStatusObjective (Storage $storage)
 
 getMigrations ()
 Get a named map of migrations available for this Agent. More...
 
- Public Member Functions inherited from ILIAS\Setup\Agent
 hasConfig ()
 Does this agent require a configuration? More...
 
 getArrayToConfigTransformation ()
 Agents must be able to tell how to create a configuration from a nested array. More...
 
 getInstallObjective (?Config $config=null)
 Get the goals the agent wants to achieve on setup. More...
 
 getUpdateObjective (?Config $config=null)
 Get the goal the agent wants to achieve on update. More...
 
 getBuildObjective ()
 Get the goal the agent wants to achieve to build artifacts. More...
 
 getStatusObjective (Metrics\Storage $storage)
 Get the objective to be achieved when status is requested. More...
 
 getMigrations ()
 Get a named map of migrations available for this Agent. More...
 
 getNamedObjectives (?Config $config=null)
 Gets all named objectives The keys of the returned array are the commands. More...
 

Detailed Description

Author
Fabian Schmid fabia.nosp@m.n@sr.nosp@m..solu.nosp@m.tion.nosp@m.s

Definition at line 34 of file Agent.php.

Member Function Documentation

◆ getArrayToConfigTransformation()

ILIAS\WebDAV\Setup\Agent::getArrayToConfigTransformation ( )

Agents must be able to tell how to create a configuration from a nested array.

Exceptions
LogicExceptionif Agent has no Config

Implements ILIAS\Setup\Agent.

Definition at line 59 of file Agent.php.

59 : Transformation
60 {
61 throw new \LogicException('This agent does not support configuration');
62 }

◆ getBuildObjective()

ILIAS\WebDAV\Setup\Agent::getBuildObjective ( )

Get the goal the agent wants to achieve to build artifacts.

Exceptions
InvalidArgumentExceptionif Config does not match the Agent.

Implements ILIAS\Setup\Agent.

Definition at line 64 of file Agent.php.

64 : Objective
65 {
66 return new NullObjective();
67 }

◆ getInstallObjective()

ILIAS\WebDAV\Setup\Agent::getInstallObjective ( ?Config  $config = null)

Get the goals the agent wants to achieve on setup.

The provided configuration is to be used to set according configuration values in the installation.

Exceptions
InvalidArgumentExceptionif Config does not match the Agent..

Implements ILIAS\Setup\Agent.

Definition at line 36 of file Agent.php.

36 : Objective
37 {
38 return new ObjectiveCollection(
39 'WebDAV',
40 true,
41 new KeyRotationObjective()
42 );
43 }

◆ getMigrations()

ILIAS\WebDAV\Setup\Agent::getMigrations ( )

Get a named map of migrations available for this Agent.

Should also return Migrations that have run completely.

Returns
array<string,Migration>|Migration[]

Implements ILIAS\Setup\Agent.

Definition at line 79 of file Agent.php.

79 : array
80 {
81 return [];
82 }

◆ getNamedObjectives()

ILIAS\WebDAV\Setup\Agent::getNamedObjectives ( ?Config  $config = null)

Gets all named objectives The keys of the returned array are the commands.

Only the AgentCollection should return an array where the cmd of the named objective is the array key.

Parameters
Config | null$config
Returns
array<string|int, ObjectiveConstructor>

Implements ILIAS\Setup\Agent.

Definition at line 69 of file Agent.php.

69 : array
70 {
71 return [];
72 }

◆ getStatusObjective()

ILIAS\WebDAV\Setup\Agent::getStatusObjective ( Storage  $storage)

Definition at line 74 of file Agent.php.

74 : Objective
75 {
76 return new NullObjective();
77 }

◆ getUpdateObjective()

ILIAS\WebDAV\Setup\Agent::getUpdateObjective ( ?Config  $config = null)

Get the goal the agent wants to achieve on update.

The provided configuration is to be used to change according configuration values in the installation. If this is not possible for some reason, an according UnachievableException needs to be thrown in the according objective.

The configuration is not to be used to initialize the required environment for the objectives. This must be done via ClientIdReadObjective and depending objectives like ilIniFilesLoadedObjective.

If no configuration is provided the configuration of the component should stay as is.

Exceptions
InvalidArgumentExceptionif Config does not match the Agent..

Implements ILIAS\Setup\Agent.

Definition at line 45 of file Agent.php.

45 : Objective
46 {
47 return new ObjectiveCollection(
48 'WebDAV',
49 true,
50 new KeyRotationObjective()
51 );
52 }

◆ hasConfig()

ILIAS\WebDAV\Setup\Agent::hasConfig ( )

Does this agent require a configuration?

Implements ILIAS\Setup\Agent.

Definition at line 54 of file Agent.php.

54 : bool
55 {
56 return false;
57 }

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