public class JahiaPasswordPolicyRule extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
static char |
ACTION_INVALIDATE_PASSWORD
Indicates that the password will be invalidated and the user will be
forced to change it.
|
static char |
ACTION_WARN
Indicates that the warning (validation or notification) message will be
shown to the user.
|
static char |
EVALUATOR_GROOVY
The rule condition represents a Groovy-based implementation to be called.
|
static char |
EVALUATOR_JAVA
The rule condition represents a Java-based implementation to be called.
|
| Constructor and Description |
|---|
JahiaPasswordPolicyRule()
Initializes an instance of this class.
|
JahiaPasswordPolicyRule(JahiaPasswordPolicyRule rule)
Copy constructor
|
JahiaPasswordPolicyRule(String id,
String name,
boolean active,
boolean periodical,
boolean lastRule,
char evaluator,
String condition,
char action)
Initializes an instance of this class.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
char |
getAction()
Returns the action type.
|
List<JahiaPasswordPolicyRuleParam> |
getActionParameters()
Returns the actionParameters.
|
Map<String,String> |
getActionParametersValues()
Returns the map with all action parameters, keyed by their names.
|
String |
getCondition()
Returns the condition.
|
List<JahiaPasswordPolicyRuleParam> |
getConditionParameters()
Returns the conditionParameters.
|
Map<String,String> |
getConditionParametersValues()
Returns the map with all condition parameters, keyed by their names.
|
char |
getEvaluator()
Returns the evaluator type.
|
String |
getId()
Returns the rule id.
|
String |
getName()
Returns the rule name.
|
int |
hashCode() |
boolean |
isActive()
Returns
true if this rule is active. |
boolean |
isLastRule()
Returns the
true if the processing of further rules in the
policy is stopped if this one is violated, thus it is possible to define
exclusive rules. |
boolean |
isPeriodical()
Returns
true if this is a reoccurring rule (e.g. |
void |
setAction(char action)
Sets the value of action.
|
void |
setActionParameters(List<JahiaPasswordPolicyRuleParam> actionParameters)
Sets the value of actionParameters.
|
void |
setActive(boolean active)
Sets the value of active flag.
|
void |
setCondition(String condition)
Sets the value of condition.
|
void |
setConditionParameters(List<JahiaPasswordPolicyRuleParam> conditionParameters)
Sets the value of conditionParameters.
|
void |
setEvaluator(char evaluator)
Sets the value of evaluator.
|
void |
setId(String id)
Sets the value of rule id.
|
void |
setLastRule(boolean lastRule)
Set to
true if the processing of further rules in the
policy is stopped if this one is violated, thus it is possible to define
exclusive rules. |
void |
setName(String name)
Sets the value of rule name.
|
void |
setParameters(List<JahiaPasswordPolicyRuleParam> parameters)
Sets the value of parameters.
|
void |
setPeriodical(boolean periodical)
Sets the value of periodical flag.
|
String |
toString() |
public static final char ACTION_INVALIDATE_PASSWORD
public static final char ACTION_WARN
public static final char EVALUATOR_GROOVY
public static final char EVALUATOR_JAVA
public JahiaPasswordPolicyRule()
public JahiaPasswordPolicyRule(String id, String name, boolean active, boolean periodical, boolean lastRule, char evaluator, String condition, char action)
id - name - active - periodical - lastRule - evaluator - condition - action - public JahiaPasswordPolicyRule(JahiaPasswordPolicyRule rule)
rule - the rule to create a copy frompublic char getAction()
public List<JahiaPasswordPolicyRuleParam> getActionParameters()
public Map<String,String> getActionParametersValues()
public String getCondition()
public List<JahiaPasswordPolicyRuleParam> getConditionParameters()
public Map<String,String> getConditionParametersValues()
public char getEvaluator()
public String getId()
public String getName()
public boolean isActive()
true if this rule is active.true if this rule is activepublic boolean isLastRule()
true if the processing of further rules in the
policy is stopped if this one is violated, thus it is possible to define
exclusive rules.true if the processing of further rules in the
policy is stopped if this one is violated, thus it is possible to
define exclusive rulespublic boolean isPeriodical()
true if this is a reoccurring rule (e.g. on each
user login).true if this is a reoccurring rule (e.g. on each
user login)public void setAction(char action)
action - the action to setpublic void setActionParameters(List<JahiaPasswordPolicyRuleParam> actionParameters)
actionParameters - the actionParameters to setpublic void setActive(boolean active)
active - the active flag value to setpublic void setCondition(String condition)
condition - the condition to setpublic void setConditionParameters(List<JahiaPasswordPolicyRuleParam> conditionParameters)
conditionParameters - the conditionParameters to setpublic void setEvaluator(char evaluator)
evaluator - the evaluator to setpublic void setId(String id)
id - the rule id to setpublic void setLastRule(boolean lastRule)
true if the processing of further rules in the
policy is stopped if this one is violated, thus it is possible to define
exclusive rules.lastRule - true if the processing of further rules in the
policy is stopped if this one is violated, thus it is possible
to define exclusive rulespublic void setName(String name)
name - the rule name to setpublic void setParameters(List<JahiaPasswordPolicyRuleParam> parameters)
parameters - the parameters to setpublic void setPeriodical(boolean periodical)
periodical - the periodical flag to setCopyright © 2004–2020 Jahia Solutions Group SA. All rights reserved.