Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Requirement: 'Make download more configurable' - using configuration files

Status

complete

...

Configuration

The keys used to defind column titles in the 'Messages' bundle properties file are used to define the order and consituency of the columns as well.

Propery key

key value

download data

export_course_grade_gradebookid_column_name

column name, eg "Site ID"

Gradebook Id = Site Id

export_course_grade_siteprovider_column_name

column name, eg "Provider ID"

Site Provider Id

export_course_grade_sitetitle_column_name

column name, eg "Site Title"

Site Title

export_student_name

column name, eg "Student Name"

user displayName

export_student_id

column name, eg "Student Id"

user Eid

roster_course_grade_column_name

public static final String KEY_COURSE_GRADE = "course_grade_details_course_grade_column_name";
public static final String KEY_GRADE = "course_or_roster";
public static final String KEY_ASSIGNMENTS = "assignments";

public static final String KEY_PROPERTIES_BUNDLE = "org.sakaiproject.tool.gradebook.bundle.Messages";
public static final String KEY_COLUMN_ORDER_KEYS = "export_course_grade_column_order_keys";
public static final String KEY_COLUMN_ORDER_DELIM = ",";|| By 'properties' file ||

property key: course_grade_export_enabled - default value: true
property key: roster_export_enabled - default value: true
compile-time path: tool/src/bundle/org/sakaiproject/tool/gradebook/bundle/Messages.properties
run-time path: WEB-INF/classes/org/sakaiproject/tool/gradebook/bundle/Messages.properties

By JSF configuration file

Bean id: exportBean
property: courseGradeDownloadEnabled - default value: true
property: rosterDownloadEnabled - default value: true
compile-time path: tool/src/webapp/common/WEB-INF/faces-beans.xml
run-time path: WEB-INF/faces-beans.xml

 Screen-shot of Course Grade Download buttons

...