Package net.sf.esims.model.entity

Examples of net.sf.esims.model.entity.AcademicYear


   * @return
   */
 
  public static ReceivedApplicationFormEssence createRAEssence(){
   
    AcademicYear academicYear = UtilsForTestCases.createValidAcademicYearWithId();
   
    ReceivedApplicationFormEssence essence = new ReceivedApplicationFormEssence();
   
    essence.setAcademicYear(academicYear);
    essence.setBelowPovertyLine(Boolean.TRUE);
View Full Code Here


    Date d2 = EsimsUtils.createDate(13, Calendar.MARCH, 2007);
    SchoolEssence schoolEssence = UtilsForTestCases
        .createValidSchoolEssence();
    School school = schoolEssence.createSchool();
    this.schoolService.save(school);
    AcademicYear academicYear = new AcademicYear("2006-2007", school, d1,
        d2, "active");
    academicYearService.saveAcademicYear(academicYear);
    Standard standard = new Standard("5th standard", academicYear);
    this.standardService.save(standard);
   
View Full Code Here

    Date d2 = EsimsUtils.createDate(13, Calendar.MARCH, 2007);
    SchoolEssence schoolEssence = UtilsForTestCases
        .createValidSchoolEssence();
    School school = schoolEssence.createSchool();
    this.schoolService.save(school);
    AcademicYear academicYear = new AcademicYear("2006-2007", school, d1,
        d2, "active");
    academicYearService.saveAcademicYear(academicYear);
    Standard standard = new Standard("5th standard", academicYear);
    this.standardService.save(standard);
   
View Full Code Here

   *
   *
   */
  @SuppressWarnings("unchecked")
  public List<Standard> getStandardsForActiveAcademicYear() {
    AcademicYear academicYear = this.academicYearDAO
        .getActiveAcademicYear();
    /*
     * If the academic year is null it means that theres no academic year
     * that has been created so we must warn the user with a message.
     * However if we dont return a valid object, we will get a null pointer
View Full Code Here

    Date startDate = EsimsUtils.createDate(1, Calendar.JUNE, 2007);
    Date endDate = EsimsUtils.createDate(31, Calendar.MAY, 2008);
    SchoolEssence essence = UtilsForTestCases.createValidSchoolEssence();
    School school = essence.createSchool();
    this.schoolService.save(school);
    AcademicYear academicYear =new AcademicYear("2006-2007", school,
        startDate, endDate, "active");
    this.academicYearService.saveAcademicYear(academicYear);
    startDate = EsimsUtils.createDate(1, Calendar.JUNE, 2007);
    endDate = EsimsUtils.createDate(31, Calendar.MAY, 2008);
    Standard standard = new Standard("5th standard",academicYear);
View Full Code Here

  private String endTime;

  @HandlesEvent("showCreatePage")
  public Resolution showCreatePage() {
    this.getContext().removeAttributeFromSession("academicYear");
    AcademicYear academicYear = this.academicYearService
        .getActiveAcademicYear();
    if (academicYear == null)
      return new ForwardResolution(
          "/WEB-INF/pages/_basic_data_missing.jsp");
View Full Code Here

  @HandlesEvent("createEntranceExam")
  public Resolution createEntranceExam() {
    String message = EsimsConstants._BLANK_STRING;

    AcademicYear academicYear = this.academicYearService.getById(new Long(
        this.getContext().getRequest().getParameter("academicYearId")));
    EntranceExam entranceExam = new EntranceExam(academicYear,
        this.dateOfExam, this.description, this.startTime, this.endTime);
    // Check if entrance exam already exists
    if (this.entranceExamService.checkIfAlreadyExists(entranceExam)) {
View Full Code Here

  }

  @HandlesEvent("searchByAcademicYear")
  public Resolution searchByAcademicYear() {

    AcademicYear academicYear = this.academicYearService
        .getById(this.academicYearId);
    this.getContext().setAttributeToRequest(
        "searchResultsForEntranceExams",
        this.entranceExamService.getByAcademicYear(academicYear));
    // setting the search criteria to session so that it can be later
View Full Code Here

  @HandlesEvent("showCreatePage")
  @DefaultHandler
  public Resolution showCreatePage() {
      this.getContext().removeAttributeFromSession("exam");
      AcademicYear academicYear = this.examService
          .getActiveAcademicYear();
      // Redirect to warning page if basic data is missing
      if (academicYear == null)
        return new ForwardResolution(
            "/WEB-INF/pages/_basic_data_missing.jsp");
View Full Code Here

      }
    }
   
   
    String message = EsimsConstants._BLANK_STRING;
      AcademicYear academicYear = this.examService
          .getActiveAcademicYear();
      Standard standard = this.standardService.getById(this.standardId);
      Exam examToCreate = new Exam(academicYear, standard,
          this.description, this.startDate, this.endDate,
          this.individualExams);
View Full Code Here

TOP

Related Classes of net.sf.esims.model.entity.AcademicYear

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.