Package org.dmlite.model.component.applicant

Examples of org.dmlite.model.component.applicant.Applicant


    try {
      ModelContext applicantModelContext = new ModelContext(modelContext);
      Applicants applicants = (Applicants) modelContext.getEntities();
      if (applicants != null) {
        applicantModelContext.setEntities(applicants);
        Applicant applicant = new Applicant(applicants.getDomainModel());
        applicantModelContext.setEntity(applicant);

        ViewContext applicantViewContext = new ViewContext(viewContext);
        applicantViewContext.setWicketId("entityUpdateForm");
        add(new ApplicantAddForm(applicantModelContext,
View Full Code Here


  public ApplicantConfirmPage(final PageParameters parameters)
      throws StringValueConversionException {
    long applicantOid = parameters.getLong("oid");
    App app = (App) getApplication();
    Applicants applicants = (Applicants) app.getEntry("Applicants");
    Applicant applicant = (Applicant) applicants.getApplicant(applicantOid);
    try {
      add(new ApplicantConfirmPanel("applicantConfirmPanel",
          applicant));
    } catch (Exception e) {
      log.error("Error in ApplicantConfirmPage: " + e.getMessage());
View Full Code Here

   * Submits a user action.
   */
  protected void onSubmit() {
    try {
      Applicants applicants = (Applicants) modelContext.getEntities();
      Applicant applicant = (Applicant) modelContext.getEntity();
      applicants.getErrors().empty();
      if (applicants.add(applicant)) {
        App app = viewContext.getApp();
        EmailConfig emailConfig = app.getEmailConfig();

        String applicantMessageStart = "...please copy the following confirmation number: ";
        Long applicantConfirmationNumber = applicant.getOid()
            .getUniqueNumber();
        String applicantMessageFinish = ", and paste it in the Confirmation Number field of the Login page.";
        applicant.emailMessage(emailConfig,
            "To confirm your application...", applicantMessageStart
                + applicantConfirmationNumber
                + applicantMessageFinish);
        setResponsePage(LoginPage.class);
      } else {
View Full Code Here

    protected void onSubmit() {
      applicantOidString = applicantConfirmationField
          .getModelObjectAsString();
      Long applicantOidLong = Transformer.longInteger(applicantOidString);
      if (applicantOidLong != null) {
        Applicant applicant = applicants.getApplicant(applicantOidLong
            .longValue());
        PageParameters pageParameters = new PageParameters();
        if (applicant != null) {
          pageParameters.put("oid", applicant.getOid()
              .getUniqueNumber());
          WebPage confirmationPage;
          try {
            confirmationPage = new ApplicantConfirmPage(
                pageParameters);
View Full Code Here

TOP

Related Classes of org.dmlite.model.component.applicant.Applicant

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.