public class DialogFormUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
SANITIZATION_FLAG |
static String |
TYPE_DOUBLE |
static String |
TYPE_FLOAT
Type of parameters which were passed for the validator TODO: Please add all
the possible type here and parser it in side the function
parserValidatorParam.
|
static String |
TYPE_INTEGER |
static String |
TYPE_STRING |
static String |
VALIDATOR_PARAM_BEGIN |
static String |
VALIDATOR_PARAM_END |
static String |
VALIDATOR_PARAM_SEPERATOR |
| Constructor and Description |
|---|
DialogFormUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addValidators(org.exoplatform.webui.form.UIFormInputBase uiInput,
String validators) |
static <T extends org.exoplatform.webui.form.UIFormInputBase> |
createFormInput(Class<T> type,
String name,
String label,
String validateType,
Class valueType)
Creates the form input.
|
static String |
getPropertyValueAsString(javax.jcr.Node node,
String propertyName)
Gets the property value as string.
|
static Class |
getValidator(String validatorType) |
static Object[] |
parserValidatorParam(Object[] params,
int length,
String type) |
static Map<String,JcrInputProperty> |
prepareMap(List inputs,
Map properties)
Prepare map.
|
static Map<String,JcrInputProperty> |
prepareMap(List inputs,
Map properties,
Map options) |
public static String VALIDATOR_PARAM_BEGIN
public static String VALIDATOR_PARAM_END
public static String VALIDATOR_PARAM_SEPERATOR
public static String SANITIZATION_FLAG
public static String TYPE_FLOAT
public static String TYPE_DOUBLE
public static String TYPE_INTEGER
public static String TYPE_STRING
public static Map<String,JcrInputProperty> prepareMap(List inputs, Map properties) throws Exception
inputs - the inputsproperties - the propertiesException - the exceptionpublic static Map<String,JcrInputProperty> prepareMap(List inputs, Map properties, Map options) throws Exception
Exceptionpublic static <T extends org.exoplatform.webui.form.UIFormInputBase> T createFormInput(Class<T> type, String name, String label, String validateType, Class valueType) throws Exception
type - the typename - the namelabel - the labelvalidateType - the validate typevalueType - the value typeException - the exceptionpublic static String getPropertyValueAsString(javax.jcr.Node node, String propertyName) throws Exception
node - the nodepropertyName - the property nameException - the exceptionpublic static Class getValidator(String validatorType) throws ClassNotFoundException
ClassNotFoundExceptionpublic static void addValidators(org.exoplatform.webui.form.UIFormInputBase uiInput,
String validators)
throws Exception
ExceptionCopyright © 2003–2019 eXo Platform SAS. All rights reserved.