Examples of DateTimeDisplayPreferences


Examples of org.rhq.enterprise.gui.legacy.WebUserPreferences.DateTimeDisplayPreferences

public class UserDateTimeConverter implements Converter {

    public SimpleDateFormat getFormatter() {
        WebUser user = EnterpriseFacesContextUtility.getWebUser();
        WebUserPreferences preferences = user.getWebPreferences();
        DateTimeDisplayPreferences displayPreferences = preferences.getDateTimeDisplayPreferences();

        String pattern = displayPreferences.dateTimeFormat;
        SimpleDateFormat df = new SimpleDateFormat(pattern);

        return df;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.