View Javadoc

1   package org.kuali.student.enrollment.class2.courseoffering.service;
2   
3   import org.kuali.student.enrollment.courseoffering.dto.CourseOfferingInfo;
4   
5   import java.util.List;
6   import java.util.Map;
7   
8   /**
9    * Provides a way to customize how the ActivityOfferingCode is generated.
10   * 
11   * @author Kuali Student Team
12   */
13  public interface CourseOfferingCodeGenerator {
14  
15      public static String COURSE_OFFERING_CODE_KEY = "courseOfferingCode";
16      public static String ACTIVITY_OFFERING_CODE_LIST_KEY = "activityOfferingCodes";
17  
18      /**
19       *
20       * @param generatorPropertiesMap  A map containing the properties needed to generate the codes
21       * @return
22       */
23      String generateActivityOfferingCode(Map<String, Object> generatorPropertiesMap);
24      String generateCourseOfferingInternalCode(List<CourseOfferingInfo> existingCourseOfferings);
25  }