Package org.rhq.enterprise.gui.legacy.WebUserPreferences

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

Related Classes of org.rhq.enterprise.gui.legacy.WebUserPreferences.DateTimeDisplayPreferences

Copyright © 2018 www.massapicom. 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.