public class PolicyEnforcementResult extends Object
| Constructor and Description |
|---|
PolicyEnforcementResult(List<JahiaPasswordPolicyRule> violatedRules)
Initializes an instance of this class.
|
| Modifier and Type | Method and Description |
|---|---|
EngineMessages |
getEngineMessages()
Returns the result of the evaluation as the
EngineMessages
object, that can be displayed in the front-end. |
List<JahiaPasswordPolicyRule> |
getInvalidationRules()
Returns the invalidationRules.
|
List<String> |
getTextMessages()
Returns the result of the evaluation as the list of plain English messages.
|
List<JahiaPasswordPolicyRule> |
getViolatedRules()
Returns the violatedRules.
|
List<JahiaPasswordPolicyRule> |
getWarningRules()
Returns the warningRules.
|
boolean |
isPasswordInvalidationRequired()
Returns
true if at least one of the violated rules
requires password invalidation as a target action. |
boolean |
isSuccess()
Returns
true if none of the applied rules is violated. |
boolean |
isWarningRequired()
Returns
true if at least one of the violated rules
requires displaying a notification as a target action. |
public PolicyEnforcementResult(List<JahiaPasswordPolicyRule> violatedRules)
violatedRules - public EngineMessages getEngineMessages()
EngineMessages
object, that can be displayed in the front-end. Each message is composed
using an I18N key and a list of arguments to be substituted.EngineMessages
object, that can be displayed in the front-end. Each message is
composed using an I18N key and a list of arguments to be
substitutedpublic List<String> getTextMessages()
public List<JahiaPasswordPolicyRule> getInvalidationRules()
public List<JahiaPasswordPolicyRule> getViolatedRules()
public List<JahiaPasswordPolicyRule> getWarningRules()
public boolean isPasswordInvalidationRequired()
true if at least one of the violated rules
requires password invalidation as a target action.true if at least one of the violated rules
requires password invalidation as a target actionpublic boolean isSuccess()
true if none of the applied rules is violated.true if none of the applied rules is violatedpublic boolean isWarningRequired()
true if at least one of the violated rules
requires displaying a notification as a target action.true if at least one of the violated rules
requires displaying a notification as a target actionCopyright © 2004–2020 Jahia Solutions Group SA. All rights reserved.