ILIAS  release_8 Revision v8.19-1-g4e8f2f9140c
All Data Structures Namespaces Files Functions Variables Modules Pages
ILIAS\LDAP\Setup\LDAPSetupAgent Class Reference
+ Inheritance diagram for ILIAS\LDAP\Setup\LDAPSetupAgent:
+ Collaboration diagram for ILIAS\LDAP\Setup\LDAPSetupAgent:

Public Member Functions

 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 (Setup\Config $config=null)
 
 getUpdateObjective (Setup\Config $config=null)
 
 getBuildArtifactObjective ()
 Get the goal the agent wants to achieve to build artifacts. More...
 
 getStatusObjective (Setup\Metrics\Storage $storage)
 
 getMigrations ()
 Get a named map of migrations available for this Agent. More...
 
- Public Member Functions inherited from ILIAS\Setup\Agent
 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...
 
 getStatusObjective (Metrics\Storage $storage)
 Get the objective to be achieved when status is requested. More...
 
 getNamedObjectives (?Config $config=null)
 Gets all named objectives The keys of the returned array are the commands. More...
 

Detailed Description

Definition at line 29 of file LDAPSetupAgent.php.

Member Function Documentation

◆ getArrayToConfigTransformation()

ILIAS\LDAP\Setup\LDAPSetupAgent::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 38 of file LDAPSetupAgent.php.

38  : Refinery\Transformation
39  {
40  throw new LogicException('Agent has no config.');
41  }

◆ getBuildArtifactObjective()

ILIAS\LDAP\Setup\LDAPSetupAgent::getBuildArtifactObjective ( )

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 55 of file LDAPSetupAgent.php.

55  : Setup\Objective
56  {
57  return new Setup\Objective\NullObjective();
58  }

◆ getInstallObjective()

ILIAS\LDAP\Setup\LDAPSetupAgent::getInstallObjective ( Setup\Config  $config = null)

Definition at line 43 of file LDAPSetupAgent.php.

43  : Setup\Objective
44  {
45  return new Setup\Objective\NullObjective();
46  }

◆ getMigrations()

ILIAS\LDAP\Setup\LDAPSetupAgent::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 65 of file LDAPSetupAgent.php.

65  : array
66  {
67  return [];
68  }

◆ getStatusObjective()

ILIAS\LDAP\Setup\LDAPSetupAgent::getStatusObjective ( Setup\Metrics\Storage  $storage)

Definition at line 60 of file LDAPSetupAgent.php.

60  : Setup\Objective
61  {
62  return new ilDatabaseUpdateStepsMetricsCollectedObjective($storage, new LDAPBindPasswordFieldMigration());
63  }

◆ getUpdateObjective()

ILIAS\LDAP\Setup\LDAPSetupAgent::getUpdateObjective ( Setup\Config  $config = null)

Definition at line 48 of file LDAPSetupAgent.php.

48  : Setup\Objective
49  {
51  new LDAPBindPasswordFieldMigration()
52  );
53  }

◆ hasConfig()

ILIAS\LDAP\Setup\LDAPSetupAgent::hasConfig ( )

Does this agent require a configuration?

Implements ILIAS\Setup\Agent.

Definition at line 33 of file LDAPSetupAgent.php.

33  : bool
34  {
35  return false;
36  }

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