Package net.fqsc.inscriptions.controller.identification

Examples of net.fqsc.inscriptions.controller.identification.SignInSession


    return new ISessionFactory()
    {

      public Session newSession()
      {
        return new SignInSession(InscriptionsApp.this);
      }
    };
  }
View Full Code Here


  public ConfirmationListViewPanel(final String id, final Map parameters)
  {
    super(id);

    final SignInSession session = (SignInSession) this.getSession();
    this.cart = session.getCart();

    this.createComponents();

  }
View Full Code Here

  }

  @Override
  public final void onSubmit()
  {
    final SignInSession session = (SignInSession) this.getSession();

    if (session.authenticate(this.getUsername(), this.getPassword()))
    {
      // If login has been called because the user was not yet
      // logged in, than continue to the original destination,
      // otherwise to the Home page

      if (!this.continueToOriginalDestination())
      {
        // setResponsePage(getApplication().getSessionSettings().getPageFactory().newPage(
        // getApplication().getHomePage(), (PageParameters)null));

        final Map<String, Object> map = new HashMap<String, Object>();
        map.put("Oid", session.getUser().getPersonneOid());

        this.setResponsePage(new HomePage(BienvenuePanel.class, map));

      }
    }
View Full Code Here

  public CategoriesSelectionListViewForm(final String id, final Map parameters)
  {
    super(id);

    final SignInSession session = (SignInSession) this.getSession();
    final Course course = (Course) parameters.get("Course");

    this.createComponents(course, session.getPersonne().getSexe().equals(
        "M"));
  }
View Full Code Here

      @Override
      public void onSubmit()
      {

        final SignInSession session = (SignInSession) this.getSession();

        final Tarification tarification = (Tarification) singleChoice
            .getModelObject();

        if (!tarification.equals(null))
        {
          InscriptionsApp app = (InscriptionsApp) this
              .getApplication();
          session.getCart().addToCart(
              new CartItem(tarification.getOid(),
              app.getDbContext().getPersistentModel()
                  .getDomainModel()));
        }
View Full Code Here

      @Override
      public void onSubmit()
      {

        final SignInSession session = (SignInSession) this.getSession();

        for (final Iterator i = session.getCart().getCart().iterator(); i
            .hasNext();)
        {

          final CartItem cartItem = (CartItem) i.next();
View Full Code Here

  public CoursesSelectionListViewForm(final String id, final Map parameters)
  {
    super(id);

    this.app = (InscriptionsApp) this.getApplication();
    final SignInSession session = (SignInSession) this.getSession();

    this.saisons = (Saisons) this.app.getEntry("Saisons");

    this.createComponents(this.saisons, session.getPersonne());
  }
View Full Code Here

      @Override
      public void onSubmit()
      {

        final SignInSession session = (SignInSession) this.getSession();
        final Cart cart = session.getCart();

        ConfirmationListViewForm.this.facturationCtrl.inscrire(cart, session.getPersonne());
       
        session.getCart().clearCart();
       
        this.setResponsePage(new HomePage(ConfirmationPanel.class, null));

      }
View Full Code Here

  public CartListViewPanel(final String id, final Map parameters)
  {
    super(id);

    final SignInSession session = (SignInSession) this.getSession();
    this.cart = session.getCart();

    this.createComponents();

  }
View Full Code Here

      throws ActionException, SelectionException
  {
    super(id);

    this.app = (InscriptionsApp) this.getApplication();
    final SignInSession session = (SignInSession) this.getSession();

    this.saisons = (Saisons) this.app.getEntry("Saisons");
    this.personnes = (Personnes) this.app.getEntry("Personnes");

    this.inscriptions = this.saisons
        .getInscriptionsPersonne((Personne) this.personnes
            .retrieveByOid(session.getUser().getPersonneOid()));

    this.createComponents();

  }
View Full Code Here

TOP

Related Classes of net.fqsc.inscriptions.controller.identification.SignInSession

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.