Skip to content

Commit 652377c

Browse files
committed
Manage Instructor List: GWT
- Manage Instructor List page rewritten to GWT (set unitime.legacy.instructorListUpdate to true for the old Struts-based page)
1 parent acfd590 commit 652377c

12 files changed

Lines changed: 930 additions & 2 deletions

File tree

JavaSource/org/unitime/timetable/action/InstructorListUpdateAction.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,11 @@ public class InstructorListUpdateAction extends UniTimeAction<InstructorListUpda
7272
protected final static CourseMessages MSG = Localization.create(CourseMessages.class);
7373

7474
public String execute() throws Exception {
75+
if (ApplicationProperty.LegacyManageInstructorList.isFalse()) {
76+
String url = "instructorListUpdate?deptId=" + request.getSession().getAttribute(Constants.DEPT_ID_ATTR_NAME);
77+
response.sendRedirect(url);
78+
return null;
79+
}
7580
//Check permissions
7681
sessionContext.checkPermission(Right.ManageInstructors);
7782

JavaSource/org/unitime/timetable/defaults/ApplicationProperty.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3838,6 +3838,11 @@ public enum ApplicationProperty {
38383838
@Description("Select User Role / Select Academic Session: switch the user interface back to the old (Struts-based) select user role page")
38393839
LegacySelectPrimaryRole("unitime.legacy.selectPrimaryRole"),
38403840

3841+
@Type(Boolean.class)
3842+
@DefaultValue("false")
3843+
@Description("Manage Instructor List: switch the user interface back to the old (Struts-based) manage instructor list page")
3844+
LegacyManageInstructorList("unitime.legacy.instructorListUpdate"),
3845+
38413846
@Type(Boolean.class)
38423847
@DefaultValue("false")
38433848
@Description("Student Scheduling: provide associated (parent) course -- a student requesting both courses cannot get the course without also getting the associated course")

JavaSource/org/unitime/timetable/gwt/client/Pages.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
import org.unitime.timetable.gwt.client.instructor.InstructorEditPage;
4949
import org.unitime.timetable.gwt.client.instructor.InstructorPreferencesPage;
5050
import org.unitime.timetable.gwt.client.instructor.InstructorsPage;
51+
import org.unitime.timetable.gwt.client.instructor.ManageInstructorListPage;
5152
import org.unitime.timetable.gwt.client.instructor.SetupTeachingRequestsPage;
5253
import org.unitime.timetable.gwt.client.instructor.TeachingAssignmentsChangesPage;
5354
import org.unitime.timetable.gwt.client.instructor.TeachingAssignmentsPage;
@@ -483,6 +484,10 @@ public enum Pages {
483484
public Widget create() { return new SelectUserRolePage(); }
484485
public String name(GwtMessages messages) { return messages.pageSelectUserRole(); }
485486
}),
487+
instructorListUpdate(new PageFactory() {
488+
public Widget create() { return new ManageInstructorListPage(); }
489+
public String name(GwtMessages messages) { return messages.pageManageInstructorList(); }
490+
}),
486491
;
487492

488493
private PageFactory iFactory;

0 commit comments

Comments
 (0)