ILIAS  trunk Revision v11.0_alpha-1866-gfa368f7776e
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilWebServicesSetupAgent Class Reference
+ Inheritance diagram for ilWebServicesSetupAgent:
+ Collaboration diagram for ilWebServicesSetupAgent:

Public Member Functions

 __construct (Refinery\Factory $refinery)
 
 hasConfig ()
 Does this agent require a configuration? More...
 
 getConfigInput (?Setup\Config $config=null)
 
 getArrayToConfigTransformation ()
 Agents must be able to tell how to create a configuration from a nested array.
Exceptions
LogicExceptionif Agent has no Config
More...
 
 getInstallObjective (?Setup\Config $config=null)
 
 getUpdateObjective (?Setup\Config $config=null)
 
 getBuildObjective ()
 Get the goal the agent wants to achieve to build artifacts.
Exceptions
InvalidArgumentExceptionif Config does not match the Agent.
More...
 
 getStatusObjective (Setup\Metrics\Storage $storage)
 
 getMigrations ()
 
- 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...
 

Protected Attributes

Refinery Factory $refinery
 

Detailed Description

Definition at line 25 of file class.ilWebServicesSetupAgent.php.

Constructor & Destructor Documentation

◆ __construct()

ilWebServicesSetupAgent::__construct ( Refinery\Factory  $refinery)

Definition at line 31 of file class.ilWebServicesSetupAgent.php.

References $refinery, and ILIAS\Repository\refinery().

+ Here is the call graph for this function:

Member Function Documentation

◆ getArrayToConfigTransformation()

ilWebServicesSetupAgent::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 55 of file class.ilWebServicesSetupAgent.php.

References $data, ilSoapClient\DEFAULT_CONNECT_TIMEOUT, ilSoapClient\DEFAULT_RESPONSE_TIMEOUT, and ILIAS\Repository\refinery().

55  : Refinery\Transformation
56  {
57  return $this->refinery->custom()->transformation(function ($data) {
58  return new \ilWebServicesSetupConfig(
59  (bool) ($data["soap_user_administration"] ?? false),
60  $data["soap_wsdl_path"] ?? "",
61  (int) ($data["soap_connect_timeout"] ?? ilSoapClient::DEFAULT_CONNECT_TIMEOUT),
62  (int) ($data["soap_response_timeout"] ?? ilSoapClient::DEFAULT_RESPONSE_TIMEOUT),
63  $data["rpc_server_host"] ?? "",
64  (int) ($data["rpc_server_port"] ?? 0),
65  (string) ($data['soap_internal_wsdl_path'] ?? ''),
66  (bool) ($data['soap_internal_wsdl_verify_peer'] ?? true),
67  (bool) ($data['soap_internal_wsdl_verify_peer_name'] ?? true),
68  (bool) ($data['soap_internal_wsdl_allow_self_signed'] ?? false),
69  );
70  });
71  }
const DEFAULT_RESPONSE_TIMEOUT
const DEFAULT_CONNECT_TIMEOUT
+ Here is the call graph for this function:

◆ getBuildObjective()

ilWebServicesSetupAgent::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 106 of file class.ilWebServicesSetupAgent.php.

106  : Setup\Objective
107  {
108  return new Setup\Objective\NullObjective();
109  }

◆ getConfigInput()

ilWebServicesSetupAgent::getConfigInput ( ?Setup\Config  $config = null)

Definition at line 47 of file class.ilWebServicesSetupAgent.php.

47  : UI\Component\Input\Container\Form\FormInput
48  {
49  throw new \LogicException("Not yet implemented.");
50  }

◆ getInstallObjective()

ilWebServicesSetupAgent::getInstallObjective ( ?Setup\Config  $config = null)

Definition at line 76 of file class.ilWebServicesSetupAgent.php.

76  : Setup\Objective
77  {
78  return new ilWebServicesConfigStoredObjective($config);
79  }
Store information about https is enabled.

◆ getMigrations()

ilWebServicesSetupAgent::getMigrations ( )

Implements ILIAS\Setup\Agent.

Definition at line 122 of file class.ilWebServicesSetupAgent.php.

122  : array
123  {
124  return [];
125  }

◆ getStatusObjective()

ilWebServicesSetupAgent::getStatusObjective ( Setup\Metrics\Storage  $storage)

Definition at line 114 of file class.ilWebServicesSetupAgent.php.

114  : Setup\Objective
115  {
116  return new Setup\Objective\NullObjective();
117  }

◆ getUpdateObjective()

ilWebServicesSetupAgent::getUpdateObjective ( ?Setup\Config  $config = null)

Definition at line 84 of file class.ilWebServicesSetupAgent.php.

84  : Setup\Objective
85  {
86  $wsrv_objective = new Setup\Objective\NullObjective();
87  if (!is_null($config)) {
88  $wsrv_objective = new ilWebServicesConfigStoredObjective($config);
89  }
91  'Updates of Services/WebServices',
92  false,
93  $wsrv_objective,
95  new ilECSUpdateSteps8()
96  ),
99  )
100  );
101  }
Store information about https is enabled.
Class ilECSUpdateSteps8 contains update steps for release 8.

◆ hasConfig()

ilWebServicesSetupAgent::hasConfig ( )

Does this agent require a configuration?

Implements ILIAS\Setup\Agent.

Definition at line 39 of file class.ilWebServicesSetupAgent.php.

39  : bool
40  {
41  return true;
42  }

Field Documentation

◆ $refinery

Refinery Factory ilWebServicesSetupAgent::$refinery
protected

Definition at line 29 of file class.ilWebServicesSetupAgent.php.

Referenced by __construct().


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