Package org.dmlite.model.component.applicant

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


            .getPersistentModel().getPersistentEntry(loginConcept)
            .getEntities();
        IDomainModel domainModel = app.getDomainModel();
        Member newMember = (Member) domainModel.getModelMeta()
            .createEntity(members);
        Applicants applicants = (Applicants) app.getDbContext()
            .getPersistentModel().getPersistentEntry("Applicants")
            .getEntities();
        newMember.copyFromApplicant(applicant);

        members.add(newMember);
        applicants.remove(applicant);
      } catch (DmException e) {
        log.error("New member problem in ApplicantConfirmPanel: "
            + applicant.getCode());
      }
    } else {
View Full Code Here


  public ApplicantAddFormPanel(final ModelContext modelContext,
      final ViewContext viewContext) {
    super(modelContext, viewContext);
    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()
View Full Code Here

      OutTester.output(errors, "Comments Add Errors");
    }
  }

  private void createTestApplicants() {
    Applicants applicants = getApplicants();
    applicants.createApplicant("Timur", "Ridjanovic",
        "timur.ridjanovic@videotron.ca", "dr", "tim");
    List errors = applicants.getErrors().getErrorList();
    if (errors.size() > 0) {
      OutTester.output(errors, "Applicants Add Errors");
    }
  }
View Full Code Here

    Users users = getUsers();
    users.output("Users");
  }

  private void outputApplicants() {
    Applicants applicants = getApplicants();
    applicants.output("Applicants");
  }
View Full Code Here

TOP

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

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.