public class WebAttributeUtil
extends java.lang.Object
Attributes| Constructor and Description |
|---|
WebAttributeUtil() |
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
getValue(javax.servlet.http.HttpServletRequest request,
CustomDatatype<T> dt,
CustomDatatypeHandler<CustomDatatype<T>,T> handler,
java.lang.String paramName)
Gets the value of an attribute out of an HTTP request, treating it according to the appropriate handler type.
|
static java.lang.Object |
getValue(javax.servlet.http.HttpServletRequest request,
CustomValueDescriptor descriptor,
java.lang.String paramName) |
static <AttributeClass extends BaseAttribute,CustomizableClass extends Customizable<AttributeClass>,AttributeTypeClass extends AttributeType<CustomizableClass>> |
handleSubmittedAttributesForType(CustomizableClass owner,
org.springframework.validation.BindingResult errors,
java.lang.Class<AttributeClass> attributeClass,
javax.servlet.http.HttpServletRequest request,
java.util.List<AttributeTypeClass> attributeTypes)
Handles attributes submitted on a form that uses the "attributesForType" tag
|
public static java.lang.Object getValue(javax.servlet.http.HttpServletRequest request,
CustomValueDescriptor descriptor,
java.lang.String paramName)
public static <T> T getValue(javax.servlet.http.HttpServletRequest request,
CustomDatatype<T> dt,
CustomDatatypeHandler<CustomDatatype<T>,T> handler,
java.lang.String paramName)
request - handler - paramName - public static <AttributeClass extends BaseAttribute,CustomizableClass extends Customizable<AttributeClass>,AttributeTypeClass extends AttributeType<CustomizableClass>> void handleSubmittedAttributesForType(CustomizableClass owner, org.springframework.validation.BindingResult errors, java.lang.Class<AttributeClass> attributeClass, javax.servlet.http.HttpServletRequest request, java.util.List<AttributeTypeClass> attributeTypes)
owner - the object that the attributes will be applied toerrors - Spring binding object for ownerattributeClass - the actual class of the attribute we need to instantiate, e.g. LocationAttributerequest - the user's submissionattributeTypes - all available attribute types for owner's classCopyright © 2018 OpenMRS Inc.. All Rights Reserved.