Package org.projectforge.user

Examples of org.projectforge.user.LoginHandler


        UserFilter.setUpdateRequiredFirst(true);
      }
    } finally {
      PFUserContext.setUser(null);
    }
    LoginHandler loginHandler;
    if (StringUtils.isNotBlank(projectForgeApp.getConfigXml().getLoginHandlerClass()) == true) {
      loginHandler = (LoginHandler) BeanHelper.newInstance(projectForgeApp.getConfigXml().getLoginHandlerClass());
    } else {
      loginHandler = new LoginDefaultHandler();
    }

    // initialize styles compiler
    try {
      final LessWicketApplicationInstantiator lessInstantiator = new LessWicketApplicationInstantiator(this, "styles", "projectforge.less",
          "projectforge.css");
      lessInstantiator.instantiate();
    } catch (final Exception e) {
      log.error("Unable to instantiate wicket less compiler", e);
    }

    if (loginHandler == null) {
      log.error("Can't load login handler '" + projectForgeApp.getConfigXml().getLoginHandlerClass() + "'. No login will be possible!");
    } else {
      loginHandler.initialize();
      Login.getInstance().setLoginHandler(loginHandler);
      if (UserFilter.isUpdateRequiredFirst() == false) {
        projectForgeApp.finalizeInitialization();
      }
    }
View Full Code Here

TOP

Related Classes of org.projectforge.user.LoginHandler

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.