# HG changeset patch # User Thomas Gazagnaire # Date 1260283364 0 # Node ID 3698135f9161a996255caf7d74cb3f5a829c5609 # Parent 2acddc1fa6a2fb77b1534a1089b28e4ba4412520 CA-34933: link sessions and tasks in the datamodel in order to know whether a session is used. Signed-off-by: Thomas Gazagnaire diff -r 2acddc1fa6a2 -r 3698135f9161 ocaml/idl/datamodel.ml --- a/ocaml/idl/datamodel.ml Tue Dec 08 14:42:42 2009 +0000 +++ b/ocaml/idl/datamodel.ml Tue Dec 08 14:42:44 2009 +0000 @@ -2787,6 +2787,7 @@ field ~in_product_since:rel_george ~qualifier:DynamicRO ~default_value:(Some(VDateTime(Date.of_float 0.))) ~ty:DateTime "validation_time" "time when session was last validated"; field ~in_product_since:rel_george ~qualifier:DynamicRO ~default_value:(Some(VString(""))) ~ty:String "auth_user_sid" "the subject identifier of the user that was externally authenticated. If a session instance has is_local_superuser set, then the value of this field is undefined."; field ~in_product_since:rel_midnight_ride ~qualifier:StaticRO ~default_value:(Some(VSet [])) ~ty:(Set(String)) "rbac_permissions" "list with all RBAC permissions for this session"; + field ~in_product_since:rel_midnight_ride ~qualifier:DynamicRO ~ty:(Set(Ref _task)) "tasks" "list of tasks created using the current session"; ] () @@ -5846,6 +5847,7 @@ (* subtasks hierarchy *) (_task, "subtask_of"), (_task, "subtasks"); + (_task, "session"), (_session, "tasks"); (_pif, "bond_slave_of"), (_bond, "slaves"); (_bond, "master"), (_pif, "bond_master_of");