ILIAS  trunk Revision v12.0_alpha-377-g3641b37b9db
ILIAS\Administration\Setup\ilAdministrationSetupAgent Class Reference

Class ilAdministrationSetupAgent. More...

+ Inheritance diagram for ILIAS\Administration\Setup\ilAdministrationSetupAgent:
+ Collaboration diagram for ILIAS\Administration\Setup\ilAdministrationSetupAgent:

Public Member Functions

 getUpdateObjective (?Config $config=null)
 @inheritdocs More...
 
 getStatusObjective (Metrics\Storage $storage)
 @inheritdocs More...
 
- Public Member Functions inherited from ILIAS\Setup\Agent\NullAgent
 __construct (Refinery $refinery)
 
 hasConfig ()
 @inheritdocs More...
 
 getArrayToConfigTransformation ()
 @inheritdocs More...
 
 getInstallObjective (?Config $config=null)
 @inheritdocs More...
 
 getUpdateObjective (?Config $config=null)
 @inheritdocs More...
 
 getBuildObjective ()
 @inheritdocs More...
 
 getStatusObjective (Metrics\Storage $storage)
 @inheritdocs More...
 
 getMigrations ()
 @inheritDoc More...
 
 getNamedObjectives (?Config $config=null)
 Gets all named objectives The keys of the returned array are the commands. 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...
 

Private Attributes

const DROP_PERMISSIONS
 

Additional Inherited Members

- Protected Attributes inherited from ILIAS\Setup\Agent\NullAgent
Refinery $refinery
 

Detailed Description

Member Function Documentation

◆ getStatusObjective()

ILIAS\Administration\Setup\ilAdministrationSetupAgent::getStatusObjective ( Metrics\Storage  $storage)

@inheritdocs

Reimplemented from ILIAS\Setup\Agent\NullAgent.

Definition at line 71 of file class.ilAdministrationSetupAgent.php.

71 : Objective
72 {
73 return new ilDatabaseUpdateStepsMetricsCollectedObjective($storage, new ilAdministrationDBUpdateSteps());
74 }

◆ getUpdateObjective()

ILIAS\Administration\Setup\ilAdministrationSetupAgent::getUpdateObjective ( ?Config  $config = null)

@inheritdocs

Reimplemented from ILIAS\Setup\Agent\NullAgent.

Definition at line 50 of file class.ilAdministrationSetupAgent.php.

50 : Objective
51 {
52 $drop_visible = new DropPermissions('adm', [2]); // ilTreeAdminNodeAddedObjective::RBAC_OP_VISIBLE
53 return new ObjectiveCollection(
54 'Administration',
55 true,
56 new ilDatabaseUpdateStepsExecutedObjective(new ilAdministrationDBUpdateSteps()),
59 new AdminNodesVisibilityRemovedObjective(),
60 new ExternalToolsRemovedObjective(),
61 // First drop visible then copy permissions then drop all except READ.
62 new DropPermissions('adm', self::DROP_PERMISSIONS, [
63 new CopyPermissions('adm', ilObjGeneralSettings::TYPE, [$drop_visible]),
64 new CopyPermissions('adm', ilObjServerInfo::TYPE, [$drop_visible]),
65 new CopyPermissions('adm', 'cron', [$drop_visible]),
66 new CopyPermissions('adm', ilObjBenchmark::TYPE, [$drop_visible]),
67 ]),
68 );
69 }
This class attempt to achieve a set of database update steps.

References ilObjGeneralSettings\TYPE, ilObjServerInfo\TYPE, and ilObjBenchmark\TYPE.

Field Documentation

◆ DROP_PERMISSIONS

const ILIAS\Administration\Setup\ilAdministrationSetupAgent::DROP_PERMISSIONS
private
Initial value:
= [
1,
2,
4,
]

Definition at line 44 of file class.ilAdministrationSetupAgent.php.


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