⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cim_policytimeperiodcondition.mof

📁 Pegasus is an open-source implementationof the DMTF CIM and WBEM standards. It is designed to be por
💻 MOF
📖 第 1 页 / 共 2 页
字号:
// Copyright (c) 2005 DMTF.  All rights reserved.// <change cr="ArchCR00066.004" type="add">Add UmlPackagePath// qualifier values to CIM Schema.</change>// ==================================================================//  CIM_PolicyTimePeriodCondition// ==================================================================   [UMLPackagePath ( "CIM::Policy" ), Version ( "2.7.0" ),     Description (       "This class provides a means of representing the time periods "       "during which a PolicySet is valid, i.e., active. At all times "       "that fall outside these time periods, the PolicySet has no "       "effect. A PolicySet is treated as valid at ALL times, if it "       "does not specify a PolicyTimePeriodCondition. \n"       "\n"       "In some cases a Policy Consumer may need to perform certain "       "setup / cleanup actions when a PolicySet becomes active / "       "inactive. For example, sessions that were established while a "       "PolicySet was active might need to be taken down when the "       "PolicySet becomes inactive. In other cases, however, such "       "sessions might be left up. In this case, the effect of "       "deactivating the PolicySet would just be to prevent the "       "establishment of new sessions. \n"       "\n"       "Setup / cleanup behaviors on validity period transitions are "       "not currently addressed by the Policy Model, and must be "       "specified in 'guideline' documents or via subclasses of "       "CIM_PolicySet, CIM_PolicyTimePeriod Condition or other "       "concrete subclasses of CIM_Policy. If such behaviors need to "       "be under the control of the policy administrator, then a "       "mechanism to allow this control must also be specified in the "       "subclasses. \n"       "\n"       "PolicyTimePeriodCondition is defined as a subclass of "       "PolicyCondition. This is to allow the inclusion of time-based "       "criteria in the AND/OR condition definitions for a PolicyRule. "       "\n\n"       "Instances of this class may have up to five properties "       "identifying time periods at different levels. The values of "       "all the properties present in an instance are ANDed together "       "to determine the validity period(s) for the instance. For "       "example, an instance with an overall validity range of January "       "1, 2000 through December 31, 2000; a month mask that selects "       "March and April; a day-of-the-week mask that selects Fridays; "       "and a time of day range of 0800 through 1600 would be "       "represented using the following time periods: \n"       "Friday, March 5, 2000, from 0800 through 1600; \n"       "Friday, March 12, 2000, from 0800 through 1600; \n"       "Friday, March 19, 2000, from 0800 through 1600; \n"       "Friday, March 26, 2000, from 0800 through 1600; \n"       "Friday, April 2, 2000, from 0800 through 1600; \n"       "Friday, April 9, 2000, from 0800 through 1600; \n"       "Friday, April 16, 2000, from 0800 through 1600; \n"       "Friday, April 23, 2000, from 0800 through 1600; \n"       "Friday, April 30, 2000, from 0800 through 1600. \n"       "\n"       "Properties not present in an instance of "       "PolicyTimePeriodCondition are implicitly treated as having "       "their value 'always enabled'. Thus, in the example above, the "       "day-of-the-month mask is not present, and so the validity "       "period for the instance implicitly includes a day-of-the-month "       "mask that selects all days of the month. If this 'missing "       "property' rule is applied to its fullest, we see that there is "       "a second way to indicate that a PolicySet is always enabled: "       "associate with it an instance of PolicyTimePeriodCondition "       "whose only properties with specific values are its key "       "properties.")]class CIM_PolicyTimePeriodCondition : CIM_PolicyCondition {      [Description (          "This property identifies an overall range of calendar dates "          "and times over which a PolicySet is valid. It is formatted "          "as a string representing a start date and time, in which "          "the character 'T' indicates the beginning of the time "          "portion, followed by the solidus character '/', followed by "          "a similar string representing an end date and time. The "          "first date indicates the beginning of the range, while the "          "second date indicates the end. Thus, the second date and "          "time must be later than the first. Date/times are expressed "          "as substrings of the form yyyymmddThhmmss. For example: \n"          "20000101T080000/20000131T120000 defines \n"          "January 1, 2000, 0800 through January 31, 2000, noon \n"          "\n"          "There are also two special cases in which one of the "          "date/time strings is replaced with a special string defined "          "in RFC 2445. \n"          "o If the first date/time is replaced with the string "          "'THISANDPRIOR', then the property indicates that a "          "PolicySet is valid [from now] until the date/time that "          "appears after the '/'. \n"          "o If the second date/time is replaced with the string "          "'THISANDFUTURE', then the property indicates that a "          "PolicySet becomes valid on the date/time that appears "          "before the '/', and remains valid from that point on."),        ModelCorrespondence {           "CIM_PolicyTimePeriodCondition.MonthOfYearMask",          "CIM_PolicyTimePeriodCondition.DayOfMonthMask",          "CIM_PolicyTimePeriodCondition.DayOfWeekMask",          "CIM_PolicyTimePeriodCondition.TimeOfDayMask",          "CIM_PolicyTimePeriodCondition.LocalOrUtcTime" }]   string TimePeriod;      [Description (          "The purpose of this property is to refine the valid time "          "period that is defined by the TimePeriod property, by "          "explicitly specifying in which months the PolicySet is "          "valid. These properties work together, with the TimePeriod "          "used to specify the overall time period in which the "          "PolicySet is valid, and the MonthOfYearMask used to pick "          "out the months during which the PolicySet is valid. \n"          "\n"          "This property is formatted as an octet string, structured "          "as follows: \n"          "o a 4-octet length field, indicating the length of the "          "entire octet string; this field is always set to 0x00000006 "          "for this property; \n"          "o a 2-octet field consisting of 12 bits identifying the 12 "          "months of the year, beginning with January and ending with "          "December, followed by 4 bits that are always set to '0'. "          "For each month, the value '1' indicates that the policy is "          "valid for that month, and the value '0' indicates that it "          "is not valid. \n"          "\n"          "The value 0x000000060830, for example, indicates that a "          "PolicySet is valid only in the months May, November, and "          "December. \n"          "\n"          "If a value for this property is not provided, then the "          "PolicySet is treated as valid for all twelve months, and "          "only restricted by its TimePeriod property value and the "          "other Mask properties."),        OctetString,        ModelCorrespondence {           "CIM_PolicyTimePeriodCondition.TimePeriod",          "CIM_PolicyTimePeriodCondition.LocalOrUtcTime" }]   uint8 MonthOfYearMask[];      [Description (          "The purpose of this property is to refine the valid time "          "period that is defined by the TimePeriod property, by "          "explicitly specifying in which days of the month the "          "PolicySet is valid. These properties work together, with "          "the TimePeriod used to specify the overall time period in "          "which the PolicySet is valid, and the DayOfMonthMask used "

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -