Examples of WebSession


Examples of com.google.gerrit.httpd.WebSession

              + "\". Continue as anonymous.", e);
        }
      }
       if (who != null && who.getAccount().isActive()) {
         log.debug("Not anonymous user");
         WebSession ws = session.get();
         ws.setUserAccountId(who.getAccount().getId());
         ws.setAccessPathOk(AccessPath.REST_API, true);
        } else {
          log.debug("Anonymous user");
        }
    }
  }
View Full Code Here

Examples of org.apache.openmeetings.web.app.WebSession

    ldapConfigFileName = domain.getConfigFileName() == null ? "" : domain.getConfigFileName();
    if (domain.getAddDomainToUserName()) {
      login = login + "@" + domain.getDomain();
    }
    OmAuthenticationStrategy strategy = getAuthenticationStrategy();
    WebSession ws = WebSession.get();
    if (ws.signIn(login, password, ldapConfigFileName)) {
       setResponsePage(Application.get().getHomePage());
      if (rememberMe) {
        strategy.save(login, password, ldapConfigFileName);
      } else {
        strategy.remove();
      }
    } else {
      strategy.remove();
      if (ws.getLoginError() != null) {
        ErrorValue eValue = getBean(ErrorDao.class).get(-1 * ws.getLoginError());
        if (eValue != null) {
          error(WebSession.getString(eValue.getFieldvalues_id()));
          target.add(feedback);
        }
      }
View Full Code Here

Examples of org.apache.tapestry.web.WebSession

    public void testGetLinkOnSamePageStateful()
    {
        IPage page = newPage("ThePage");
        IDirect c = newDirect();
        IRequestCycle cycle = newCycle();
        WebSession session = newWebSession();
        WebRequest request = newWebRequest(false, session);
        LinkFactory lf = newLinkFactory();
        ILink link = newLink();

        trainGetPage(cycle, page);
View Full Code Here

Examples of org.apache.tapestry.web.WebSession

    {
        Object[] parameters = new Object[0];
        IRequestCycle cycle = newCycle();
        IPage page = newPage();
        IDirect d = newDirect();
        WebSession session = newWebSession(false);
        WebRequest request = newWebRequest(session);
        LinkFactory lf = newLinkFactory();
        ResponseRenderer rr = newResponseRenderer();

        trainGetParameter(cycle, ServiceConstants.COMPONENT, "fred.barney");
View Full Code Here

Examples of org.apache.tapestry.web.WebSession

        session.getAttributeNames();
        setReturnValue(session, newEnumeration());

        replayControls();

        WebSession ws = new PortletWebSession(session);

        List l = ws.getAttributeNames();

        checkList(l);

        verifyControls();
    }
View Full Code Here

Examples of org.apache.tapestry.web.WebSession

        session.getAttribute("attr");
        setReturnValue(session, attribute);

        replayControls();

        WebSession ws = new PortletWebSession(session);

        assertSame(attribute, ws.getAttribute("attr"));

        verifyControls();
    }
View Full Code Here

Examples of org.apache.tapestry.web.WebSession

        session.setAttribute("name", attribute);

        replayControls();

        WebSession ws = new PortletWebSession(session);

        ws.setAttribute("name", attribute);

        verifyControls();
    }
View Full Code Here

Examples of org.apache.tapestry.web.WebSession

        session.getId();
        setReturnValue(session, "abc");

        replayControls();

        WebSession ws = new PortletWebSession(session);

        assertEquals("abc", ws.getId());

        verifyControls();
    }
View Full Code Here

Examples of org.apache.tapestry.web.WebSession

        session.invalidate();

        replayControls();

        WebSession ws = new PortletWebSession(session);

        ws.invalidate();

        verifyControls();
    }
View Full Code Here

Examples of org.apache.tapestry.web.WebSession

        // Check for a StaleSession only when the session was stateful when
        // the link was created.

        if (activeSession && direct.isStateful())
        {
            WebSession session = _request.getSession(false);

            if (session == null || session.isNew())
                throw new StaleSessionException(EngineMessages.requestStateSession(direct),
                        componentPage);
        }
       
        Object[] parameters = _linkFactory.extractListenerParameters(cycle);
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.