com.ibm.ibmi.are.xml.rules.ptf
Class GroupPtfLevelRule

java.lang.Object
  extended by com.ibm.are.xml.rules.Rule
      extended by com.ibm.ibmi.are.xml.rules.ptf.PtfRule
          extended by com.ibm.ibmi.are.xml.rules.ptf.GroupPtfLevelRule

public class GroupPtfLevelRule
extends PtfRule

Rule class that verifies the PTF group level

Author:
IBM

Field Summary
static java.lang.String COPYRIGHT
          Copyright for class bytecode
static java.lang.String GROUP_PTF_LEVEL_RULE_TYPE_MINIMUM
          Verify that the PTF group level meets the minimum requirement
static java.lang.String GROUP_PTF_LEVEL_RULE_TYPE_RECOMMENDED
          Verify that the PTF group level meets the recommended requirement
 
Fields inherited from class com.ibm.are.xml.rules.Rule
MAP_ITEM_CHECK_CLASS, MAP_ITEM_CHECK_OBJECT, MAP_ITEM_CHECK_TYPE, MAP_ITEM_ERROR_LEVEL, MAP_ITEM_EXPECTED_VALUE, MAP_ITEM_MATCH_CASE
 
Constructor Summary
GroupPtfLevelRule(java.util.Map ruleInfo)
          The API constructor for this class.
GroupPtfLevelRule(com.ibm.are.xml.rules.XmlNodeInfo nodeInfo, java.lang.String group, java.lang.String level, java.lang.String type)
          This constructor is for internal class use only.
 
Method Summary
 boolean run(com.ibm.are.plugin.Plugin plugin)
          Runs the rule, which performs the check/verification implemented by that rule.
 
Methods inherited from class com.ibm.ibmi.are.xml.rules.ptf.PtfRule
findPtfGroup, getPtfName, setPtfName
 
Methods inherited from class com.ibm.are.xml.rules.Rule
getNodeInfo, report, report
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT
Copyright for class bytecode

See Also:
Constant Field Values

GROUP_PTF_LEVEL_RULE_TYPE_MINIMUM

public static final java.lang.String GROUP_PTF_LEVEL_RULE_TYPE_MINIMUM
Verify that the PTF group level meets the minimum requirement

See Also:
Constant Field Values

GROUP_PTF_LEVEL_RULE_TYPE_RECOMMENDED

public static final java.lang.String GROUP_PTF_LEVEL_RULE_TYPE_RECOMMENDED
Verify that the PTF group level meets the recommended requirement

See Also:
Constant Field Values
Constructor Detail

GroupPtfLevelRule

public GroupPtfLevelRule(java.util.Map ruleInfo)
The API constructor for this class. This API can be used to leverage the capabilities of this rule class from within any Application Runtime Expert plugin.

Parameters:
ruleInfo - Any object that implements the java.util.Map interface. This map contains a set of key/value pairs which specify all of the information needed by this rule class to perform its check.

Rule Info Map Contents

The table below describes all items, both required and optional, that are allowed to be in the ruleInfo map passed to the API constructor.

Key Description Required Valid Values Default Value
name The group PTF name/number Yes Must be a valid IBM i group PTF number.

Examples:

  • SF99368
  • SF99572
N/A
level The expected level for the specified group PTF Yes A number greater than zero N/A
type The type of level check to perform for the specified group PTF Yes
  • minimum - Verify the group PTF level is at least as high as the specified expected level value. Failure to meet the minimum required level is typically viewed as a high severity problem.
  • recommended - Verify the group PTF level is at least as high as the specified expected level value. Failure to meet this expected level is typically not viewed as severe as failure to meet the minimum level.
N/A
errorLevel Specifies the severity level a problem is reported at for this check. If the comparison between the expected and actual values is not successful, which means the comparison result was false, a problem is reported. The severity of the reported problem is determined by the error level. No
  • error
  • warning
  • info
error

GroupPtfLevelRule

public GroupPtfLevelRule(com.ibm.are.xml.rules.XmlNodeInfo nodeInfo,
                         java.lang.String group,
                         java.lang.String level,
                         java.lang.String type)
This constructor is for internal class use only. New instances of this class should only be created using the API constructor for this class.

Method Detail

run

public boolean run(com.ibm.are.plugin.Plugin plugin)
Runs the rule, which performs the check/verification implemented by that rule.

Specified by:
run in class Rule
Parameters:
plugin - The plugin for which the rule is being run for.
Returns:
true if the verification was successful and no problems were found. false if the verification resulted in a problem being found and reported.