View Javadoc

1   /*
2    * To change this template, choose Tools | Templates
3    * and open the template in the editor.
4    */
5   package org.kuali.student.enrollment.class2.courseoffering.service.impl;
6   
7   import java.util.ArrayList;
8   import java.util.List;
9   import org.kuali.student.r2.common.util.constants.CourseOfferingSetServiceConstants;
10  
11  /**
12   *
13   * @author nwright
14   */
15  public class DefaultOptionKeysServiceImpl implements DefaultOptionKeysService {
16  
17      @Override
18      public List<String> getDefaultOptionKeysForRolloverSoc() {
19          List<String> options = new ArrayList<String>();
20          // Rollover now runs asynchronously. KSENROLL-1545
21          // options.add(CourseOfferingSetServiceConstants.RUN_SYNCHRONOUSLY_OPTION_KEY);
22          options.add(CourseOfferingSetServiceConstants.LOG_SUCCESSES_OPTION_KEY);
23          //Add this option to skip rollover if there is a new version
24          options.add(CourseOfferingSetServiceConstants.IF_NO_NEW_VERSION_OPTION_KEY);
25          return options;
26      }
27  
28      @Override
29      public List<String> getDefaultOptionKeysForCopySingleCourseOffering() {
30          List<String> options = new ArrayList<String>();
31          return options;
32      }
33  
34      @Override
35      public List<String> getDefaultOptionKeysForCreateCourseOfferingFromCanonical() {
36          List<String> options = new ArrayList<String>();
37          options.add(CourseOfferingSetServiceConstants.USE_CANONICAL_OPTION_KEY);
38          return options;
39      }
40  }