From 7f9b60d66f5725da167b877cb4c5707d05c9112e Mon Sep 17 00:00:00 2001 From: Eric Espie Date: Wed, 27 Mar 2024 11:11:55 +0100 Subject: [PATCH] =?UTF-8?q?N=C2=B05913=20-=20Add=20Event=20Listener=20meth?= =?UTF-8?q?ods=20&=20enhance=20methods=20management?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/datamodel.application.xml | 61 +++++++++++++------ .../datamodel.itop-attachments.xml | 6 +- .../datamodel.itop-portal-base.xml | 3 +- 3 files changed, 49 insertions(+), 21 deletions(-) diff --git a/application/datamodel.application.xml b/application/datamodel.application.xml index c1028d42f..c95ceae79 100644 --- a/application/datamodel.application.xml +++ b/application/datamodel.application.xml @@ -187,7 +187,9 @@ - An object is about to be written into the database. The object can be modified. + Before create or update + cmdbAbstractObject @@ -208,7 +210,9 @@ - Check an object before it is written into the database (no change possible). Call DBObject::AddCheckIssue() to signal an issue + Check to write + AddCheckIssue() to signal an issue.]]> cmdbAbstractObject @@ -229,7 +233,9 @@ - An object has been written into the database. The modifications can be propagated to other objects. + After create or update + cmdbAbstractObject @@ -244,7 +250,7 @@ boolean - For updates, the list of changes done during this operation + array @@ -254,7 +260,9 @@ - Check an object before it is deleted from the database. Call DBObject::AddDeleteIssue() to signal an issue + Check to delete + AddDeleteIssue() to signal an issue.]]> cmdbAbstractObject @@ -271,7 +279,8 @@ - An object is about to be deleted from the database + Before delete + cmdbAbstractObject @@ -288,7 +297,8 @@ - An object has been deleted into the database + After delete + cmdbAbstractObject @@ -305,7 +315,9 @@ - Manage the allowed transitions in current object state. The only action allowed is to deny transitions with DBObject::DenyTransition() + Enum transitions + DenyTransition()]]> cmdbAbstractObject @@ -325,7 +337,8 @@ - At least one link class was changed + Links on object have changed + cmdbAbstractObject @@ -341,7 +354,9 @@ - An object has been re-loaded from the database + Object reload + true + cmdbAbstractObject @@ -357,7 +372,8 @@ - An object needs to be recomputed after changes + Recompute object values + cmdbAbstractObject @@ -374,7 +390,8 @@ - An object has been archived + Object archived + cmdbAbstractObject @@ -390,7 +407,8 @@ - An object has been unarchived + Object unarchived + cmdbAbstractObject @@ -406,7 +424,9 @@ - Set object attributes flags. Call cmdbAbstractObject::AddAttributeFlags() for all the attributes to be set for this target state. + Set attributes flags + AddAttributeFlags() for all the attributes to be set for this target state.]]> cmdbAbstractObject @@ -417,7 +437,7 @@ The target state in which to evaluate the flags - array + string Debug string @@ -426,7 +446,9 @@ - Set object initial attributes flags. Call cmdbAbstractObject::AddInitialAttributeFlags() for all the initial attributes to be set initially. + Set initial attributes flags + AddInitialAttributeFlags() for all the initial attributes to be set initially.]]> cmdbAbstractObject @@ -442,7 +464,8 @@ - A document has been downloaded from the GUI + Document downloaded + Document @@ -462,7 +485,9 @@ - Inform the listeners about the connection states + Login + true + The login step result code (LoginWebPage::EXIT_CODE_...) diff --git a/datamodels/2.x/itop-attachments/datamodel.itop-attachments.xml b/datamodels/2.x/itop-attachments/datamodel.itop-attachments.xml index 2f21cea7a..521a37e9d 100755 --- a/datamodels/2.x/itop-attachments/datamodel.itop-attachments.xml +++ b/datamodels/2.x/itop-attachments/datamodel.itop-attachments.xml @@ -260,7 +260,8 @@ - An attachment has been added to an object + Attachment added + Attachment::AfterUpdate cmdbAbstractObject @@ -281,7 +282,8 @@ - An attachment has been removed from an object + Attachment removed + Attachment::AfterUpdate cmdbAbstractObject diff --git a/datamodels/2.x/itop-portal-base/datamodel.itop-portal-base.xml b/datamodels/2.x/itop-portal-base/datamodel.itop-portal-base.xml index 68f2874f7..a96dc9ace 100644 --- a/datamodels/2.x/itop-portal-base/datamodel.itop-portal-base.xml +++ b/datamodels/2.x/itop-portal-base/datamodel.itop-portal-base.xml @@ -2,7 +2,8 @@ - An object details is about to be displayed to a user + Portal object displayed + cmdbAbstractObject