Package org.webengruven.webmail.auth

Examples of org.webengruven.webmail.auth.AuthDisplayMngr


    /** Get a displamanager object for this class.
     * @see org.webengruven.webamil.auth.AuthDisplayMngr
     * @return the AuthDisplayMngr apropriate for this class.
     */
    public AuthDisplayMngr getAuthDisplayMngr() {
        return new AuthDisplayMngr();
    }
View Full Code Here


        if(url.equals("/")) {
            //content=new HTMLLoginScreen(parent,parent.getStorage(),false);
            XMLGenericModel model=parent.getStorage().createXMLGenericModel();

            AuthDisplayMngr adm = parent.getStorage().getAuthenticator().getAuthDisplayMngr();

            if(header.isContentSet("login")) {
                model.setStateVar("invalid password","yes");
            }

            // Let the authenticator setup the loginscreen
            adm.setLoginScreenVars(model);

                /**
                 * Show login screen depending on WebMailServer's default locale.
                 */
                /*
            content = new XHTMLDocument(model.getRoot(),
                                        parent.getStorage().getStylesheet(adm.getLoginScreenFile(),
                                                                          Locale.getDefault(),"default"));
                */
            content = new XHTMLDocument(model.getRoot(),
                                        parent.getStorage().getStylesheet(adm.getLoginScreenFile(),
                                                                                parent.getDefaultLocale(),parent.getProperty("webmail.default.theme")));
        } else if(url.equals("/login")) {
            WebMailSession sess=(WebMailSession)session;
            UserData user=sess.getUser();
            content=new XHTMLDocument(session.getModel(),parent.getStorage().getStylesheet("login.xsl",user.getPreferredLocale(),user.getTheme()));
View Full Code Here

TOP

Related Classes of org.webengruven.webmail.auth.AuthDisplayMngr

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.