|
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.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 | |
---|---|
java.lang.Object |
getAsObject(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
java.lang.String value)
Returns given value (does not do any reverse conversion) |
java.lang.String |
getAsString(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
java.lang.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 java.lang.Object getAsObject(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, java.lang.String value)
getAsObject
in interface javax.faces.convert.Converter
public java.lang.String getAsString(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, java.lang.Object value)
Handled attributes are:
getAsString
in interface javax.faces.convert.Converter
|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |