Package org.molgenis.framework.security

Examples of org.molgenis.framework.security.Login


    // Get application from session
    ApplicationController appController = (ApplicationController) session.getAttribute("application");

    // Login credentials from FrontController
    Login userLogin = request.getDatabase().getLogin();

    // Create GUI if null
    if (appController == null)
    {
      // FIXME: never reached? isLoginRequired is FALSE in both
      // implementations?
      // also, what is request.getRequest().getParameter("logout") ?
      // and when session.isNew() ?
      if ((!userLogin.isAuthenticated() && userLogin.isLoginRequired())
          || (request.getRequest().getParameter("logout") != null && !session.isNew()))
      {
        response.getResponse().setHeader("WWW-Authenticate", "BASIC realm=\"MOLGENIS\"");
        response.getResponse().sendError(HttpServletResponse.SC_UNAUTHORIZED);
        session.invalidate();
View Full Code Here


  }

  @Override
  public boolean isVisible()
  {
    Login login = this.getController().getApplicationController().getLogin();
    try
    {
      return (login.canRead(this.getController()));
    }
    catch (DatabaseException e)
    {
      e.printStackTrace();
      return false;
View Full Code Here

TOP

Related Classes of org.molgenis.framework.security.Login

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.