Commit 2687f916 authored by garciay's avatar garciay
Browse files

Add new template mw_validity_restriction_any_valid_region

parent f14d25e0
Loading
Loading
Loading
Loading
+19 −2
Original line number Diff line number Diff line
@@ -1984,6 +1984,23 @@ module LibItsSecurity_Templates {
                    } // End of field validity
                } // End of template mw_validity_restriction_time_start_and_duration
                
                /**
                 * @desc Receive template for any region excepted 'none'
                 */
                template (present) ValidityRestriction mw_validity_restriction_any_valid_region := {
                    type_       := e_region,
                    validity    :=  {
                        region := {
                            region_type  := complement(e_none),
                            region       := *
                        }
                    } // End of field validity
                } // End of template mw_validity_restriction_any_valid_region
                
                /**
                 * @desc Receive template for specified region
                 * @param p_region The expected region
                 */
                template (present) ValidityRestriction mw_validity_restriction_region(
                                                                                      in template (present) GeographicRegion p_region := ?
                ) := {