|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnl.openedge.baritus.validation.AbstractValidator
nl.openedge.baritus.validation.AbstractFormValidator
nl.openedge.baritus.validation.impl.RequiredSessionAttributeValidator
Checks whether a session attribute exists with the key that was set for property sessionAttributeKey.
| Constructor Summary | |
RequiredSessionAttributeValidator()
Construct. |
|
RequiredSessionAttributeValidator(java.lang.String errorMessageKey)
Construct with errorMessageKey. |
|
RequiredSessionAttributeValidator(java.lang.String errorMessageKey,
java.lang.String sessionAttributeKey)
Construct with message prefix and session attribute key to check for. |
|
RequiredSessionAttributeValidator(java.lang.String errorMessageKey,
ValidationActivationRule rule)
Construct with errorMessageKey and rule. |
|
RequiredSessionAttributeValidator(ValidationActivationRule rule)
Construct with rule. |
|
| Method Summary | |
java.lang.String |
getErrorMessageKey()
Get key of error message. |
java.lang.String |
getSessionAttributeKey()
get the session attribute key that will be checked for |
boolean |
isValid(org.infohazard.maverick.flow.ControllerContext cctx,
FormBeanContext formBeanContext)
Checks if form is valid. |
void |
setErrorMessageKey(java.lang.String string)
Set key of error message. |
void |
setSessionAttributeKey(java.lang.String string)
set the session attribute key that will be checked for |
| Methods inherited from class nl.openedge.baritus.validation.AbstractValidator |
getFieldName, getLocalizedMessage, getLocalizedMessage, getLocalizedMessage, getLocalizedMessage, getValidationActivationRule, removeValidationActivationRule, setErrorMessage, setValidationRule |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface nl.openedge.baritus.validation.ValidationRuleDependend |
getValidationActivationRule, removeValidationActivationRule, setValidationRule |
| Constructor Detail |
public RequiredSessionAttributeValidator()
public RequiredSessionAttributeValidator(java.lang.String errorMessageKey)
errorMessageKey - public RequiredSessionAttributeValidator(ValidationActivationRule rule)
rule -
public RequiredSessionAttributeValidator(java.lang.String errorMessageKey,
ValidationActivationRule rule)
errorMessageKey - rule -
public RequiredSessionAttributeValidator(java.lang.String errorMessageKey,
java.lang.String sessionAttributeKey)
errorMessageKey - | Method Detail |
public boolean isValid(org.infohazard.maverick.flow.ControllerContext cctx,
FormBeanContext formBeanContext)
FormValidator
cctx - maverick contextformBeanContext - context with form for this currentRequest
public java.lang.String getSessionAttributeKey()
public void setSessionAttributeKey(java.lang.String string)
string - the session attribute key that will be checked forpublic java.lang.String getErrorMessageKey()
public void setErrorMessageKey(java.lang.String string)
string - key of error message
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||