public class ConfluenceActionValidatorManager
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
VALIDATION_CONFIG_SUFFIX
The file suffix for any validation file.
|
Constructor and Description |
---|
ConfluenceActionValidatorManager() |
Modifier and Type | Method and Description |
---|---|
protected static java.lang.String |
buildValidatorKey(java.lang.Class clazz,
java.lang.String context)
Builds a key for validators - used when caching validators.
|
static java.util.List |
getValidators(java.lang.Class clazz,
java.lang.String context)
Returns a list of validators for the given class and context.
|
static void |
validate(java.lang.Object object,
java.lang.String context)
Validates the given object using action and its context.
|
static void |
validate(java.lang.Object object,
java.lang.String context,
com.opensymphony.xwork.validator.ValidatorContext validatorContext)
Validates an action give its context and a validation context.
|
protected static final java.lang.String VALIDATION_CONFIG_SUFFIX
public static java.util.List getValidators(java.lang.Class clazz, java.lang.String context)
clazz
- the class to lookup.context
- the context of the action class - can be null.public static void validate(java.lang.Object object, java.lang.String context) throws com.opensymphony.xwork.validator.ValidationException
object
- the action to validate.context
- the action's context.com.opensymphony.xwork.validator.ValidationException
- if an error happens when validating the action.public static void validate(java.lang.Object object, java.lang.String context, com.opensymphony.xwork.validator.ValidatorContext validatorContext) throws com.opensymphony.xwork.validator.ValidationException
object
- the action to validate.context
- the action's context.validatorContext
- com.opensymphony.xwork.validator.ValidationException
- if an error happens when validating the action.protected static java.lang.String buildValidatorKey(java.lang.Class clazz, java.lang.String context)
clazz
- the action.context
- the action's context.Copyright © 2003-2014 Atlassian. All Rights Reserved.