|
Nuxeo ECM Projects 5.4.3-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.nuxeo.ecm.webapp.security.UserDisplayConverter
public class UserDisplayConverter
JSF Converter used for rendering, transforming a user id into the user display name.
Sample usage:
lt;h:outputText
converter="#{userSuggestionActions.userConverter}">
<f:attribute name="prefixed" value="false" />
<f:attribute name="userDirectory" value="#{userManager.userDirectoryName}" />
<f:attribute name="userSchema" value="#{userManager.userSchemaName}" />
<f:attribute name="firstNameField" value="firstName" />
<f:attribute name="lastNameField" value="lastName" />
lt;/h:outputText>
Constructor Summary | |
---|---|
UserDisplayConverter()
|
Method Summary | |
---|---|
Object |
getAsObject(FacesContext context,
UIComponent component,
String value)
Returns given value (does not do any reverse conversion) |
String |
getAsString(FacesContext context,
UIComponent component,
Object value)
Tries to build the user display name according to information passed as attribute to the component holding the converter. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UserDisplayConverter()
Method Detail |
---|
public Object getAsObject(FacesContext context, UIComponent component, String value)
getAsObject
in interface Converter
public String getAsString(FacesContext context, UIComponent component, Object value)
Handled attributes are:
getAsString
in interface Converter
|
Nuxeo ECM Projects 5.4.3-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |