|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.nuxeo.ecm.platform.el.FieldAdapterManager
public final class FieldAdapterManager
The FieldAdapterManager fills the gap between the storage and the display structures.
The Display representation of a DataModel is a set of JSF Beans There are mainly 3 cases:
1 - Perfect match: the JSF components generate a bean that can be directly stored ie: String ...
2 - Type Mismatch: The JSF component generate a bean that is not of the right type ie: The JSF generate a Date whereas the Core expect a Calendar type.
3 - Structure Mismatch: The JSF bean must be split in several fields ie: The uploaded file is one object, but the core expect at least 2 separate fields (filename and content)
Method Summary | |
---|---|
static java.lang.Class<?> |
getComponentTypeForDisplay(java.lang.Class<?> componentType)
Returns component type that will be used to display objects of given component type. |
static java.lang.Class<?> |
getComponentTypeForStorage(java.lang.Class<?> componentType)
Returns component type that will be used to store objects of given component type. |
static java.lang.Object |
getValueForDisplay(java.lang.Object value)
Gets value adapting it for display. |
static java.lang.Object |
getValueForStorage(java.lang.Object value)
Sets value adapting it for storage. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static java.lang.Object getValueForStorage(java.lang.Object value)
public static java.lang.Class<?> getComponentTypeForStorage(java.lang.Class<?> componentType)
public static java.lang.Object getValueForDisplay(java.lang.Object value)
public static java.lang.Class<?> getComponentTypeForDisplay(java.lang.Class<?> componentType)
|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |