View Javadoc

1   package org.kuali.student.enrollment.class2.courseoffering.service;
2   
3   import org.kuali.rice.krad.uif.service.ViewHelperService;
4   import org.kuali.student.r2.core.acal.dto.TermInfo;
5   import org.kuali.student.enrollment.class2.courseoffering.form.CourseOfferingRolloverManagementForm;
6   import org.kuali.student.enrollment.class2.courseoffering.form.DeleteTargetTermForm;
7   import org.kuali.student.enrollment.courseofferingset.dto.SocInfo;
8   import org.kuali.student.enrollment.courseofferingset.dto.SocRolloverResultInfo;
9   
10  import java.util.Date;
11  import java.util.List;
12  
13  /**
14   * Copyright 2012 The Kuali Foundation Licensed under the
15   * Educational Community License, Version 2.0 (the "License"); you may
16   * not use this file except in compliance with the License. You may
17   * obtain a copy of the License at
18   *
19   * http://www.osedu.org/licenses/ECL-2.0
20   *
21   * Unless required by applicable law or agreed to in writing,
22   * software distributed under the License is distributed on an "AS IS"
23   * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
24   * or implied. See the License for the specific language governing
25   * permissions and limitations under the License.
26   *
27   * Created by Charles on 5/7/12
28   */
29  public interface CourseOfferingViewHelperService extends ViewHelperService {
30      /**
31       *
32       * @param termCode Each institution uses a code to represent a term.  At UW, the code appears to be three letters
33       *                 followed by a 4-digit year, e.g., FAL2011, WIN2011, etc.
34       * @return List of terms which match the term code (should be a list of one TermInfo)
35       * @throws Exception
36       */
37      public List<TermInfo> findTermByTermCode(String termCode) throws Exception;
38  
39      public boolean performRollover(String sourceTermId, String targetTermId, CourseOfferingRolloverManagementForm form);
40  
41      public SocRolloverResultInfo performReverseRollover(String sourceTermId, String targetTermId, CourseOfferingRolloverManagementForm form);
42  
43      public void deleteTargetTerm(String targetTermId, DeleteTargetTermForm form);
44  
45      public List<SocRolloverResultInfo> findRolloverByTerm(String termId) throws Exception;
46      
47      public boolean termHasSoc(String termId, CourseOfferingRolloverManagementForm form);
48      
49      public String formatDate(Date date);
50  
51      public SocInfo getMainSoc(String termId);
52  
53      // Used in rollover details screen
54      public String formatDateAndTime(Date date);
55  
56      // User friendly term string
57      public String getTermDesc(String termId);
58  }