com.independentsoft.exchange

## Class ProtectionRule

- java.lang.Object
- - com.independentsoft.exchange.ProtectionRule

-     public class ProtectionRule
      extends java.lang.Object

  Identifies what action must be executed if the condition part of the rule matches.

- - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `ProtectionRuleAction` | `getAction()` Gets what action must be executed if the condition part of the rule matches.
    `java.lang.String` | `getName()` Gets the name of the rule.
    `int` | `getPriority()` Gets the rule priority.
    `boolean` | `isUserOverridable()` Gets whether the rule is mandatory.

    - ### Methods inherited from class java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### getName

          public java.lang.String getName()

      Gets the name of the rule.
      Returns:
        the name

    - #### isUserOverridable

          public boolean isUserOverridable()

      Gets whether the rule is mandatory.
      Returns:
        true, if is user overridable

    - #### getPriority

          public int getPriority()

      Gets the rule priority.
      Returns:
        the priority

    - #### getAction

          public ProtectionRuleAction getAction()

      Gets what action must be executed if the condition part of the rule matches.
      Returns:
        the action