org.kuali.student.lum.lu.ui.course.client.controllers
Class CourseAdminRetireController

java.lang.Object
  extended by com.google.gwt.user.client.ui.UIObject
      extended by com.google.gwt.user.client.ui.Widget
          extended by com.google.gwt.user.client.ui.Composite
              extended by org.kuali.student.common.ui.client.mvc.Controller
                  extended by org.kuali.student.common.ui.client.configurable.mvc.LayoutController
                      extended by org.kuali.student.common.ui.client.configurable.mvc.layouts.MenuSectionController
                          extended by org.kuali.student.common.ui.client.configurable.mvc.layouts.MenuEditableSectionController
                              extended by org.kuali.student.lum.lu.ui.course.client.controllers.CourseProposalController
                                  extended by org.kuali.student.lum.lu.ui.course.client.controllers.CourseAdminController
                                      extended by org.kuali.student.lum.lu.ui.course.client.controllers.CourseAdminWithoutVersionController
                                          extended by org.kuali.student.lum.lu.ui.course.client.controllers.CourseAdminRetireController
All Implemented Interfaces:
com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, ContentNavLayoutController, DocumentLayoutController, ViewLayoutController, BreadcrumbSupport, HistorySupport, View, ReportExport, RequiresAuthorization, WorkflowEnhancedNavController, HasRequirements

public class CourseAdminRetireController
extends CourseAdminWithoutVersionController

Controller for retire screen

Author:
Will

Nested Class Summary
 
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled
 
Field Summary
 
Fields inherited from class org.kuali.student.lum.lu.ui.course.client.controllers.CourseAdminController
cancelButtons
 
Fields inherited from class org.kuali.student.lum.lu.ui.course.client.controllers.CourseProposalController
cfg, cluProposalModel, cluProposalRpcServiceAsync, comparisonModel, courseServiceAsync, currentDocType, currentTitle, INITIAL_SAVE_VERSION, isNew, loadDataTask, proposalPath, reqDataModel, reqDataModelComp, workflowUtil
 
Fields inherited from class org.kuali.student.common.ui.client.configurable.mvc.layouts.MenuSectionController
leftPanel, menu, menuViewMap, rightPanel, topLevelMenuItems, viewMenuItemMap
 
Fields inherited from class org.kuali.student.common.ui.client.configurable.mvc.LayoutController
defaultView, name, startPopupView, startViewWindow, viewEnumMap, viewMap, viewType
 
Fields inherited from class org.kuali.student.common.ui.client.mvc.Controller
context, NO_OP_CALLBACK, parentController
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Fields inherited from interface org.kuali.student.common.ui.client.reporting.ReportExport
exportTemplateName
 
Constructor Summary
CourseAdminRetireController()
           
 
Method Summary
 KSButton getCancelButton()
           
protected  BaseDataOrchestrationRpcServiceAsync getCourseProposalRpcService()
          This method exists to allow the save/get implementations defined in this CourseProposalController in this controller to be reused in the CourseAdminWithoutVersion controller.
 KSButton getSaveButton()
          Override the getSaveButton to provide a new set of buttons for the admin screens
protected  void handleButtonClick(String state)
          This processes the save or activate button clicks
protected  void initializeController()
          Override the intitailzeController method to use CourseAdminConfigurer
 boolean isAuthorizationRequired()
           
protected  void progressiveEnableFields()
          Override the progressive enable fields to only allow edit of end term and retire fields when pilot box checked and course is not active
protected  void setHeaderTitle()
          Override the setHeaderTitle to display proper header title for admin screens
 boolean startSectionRequired()
           
 
Methods inherited from class org.kuali.student.lum.lu.ui.course.client.controllers.CourseAdminController
addMenuItemSection, configureScreens, getApproveAndActivateButton
 
Methods inherited from class org.kuali.student.lum.lu.ui.course.client.controllers.CourseProposalController
beforeShow, beforeViewChange, checkAuthorization, createNewCluProposalModel, doSaveAction, getCancelButton, getCluProposalFromProposalId, getCourseComparisonModelAndReqs, getCourseId, getCourseState, getCurrentModel, getExportDataModel, getExportElementsFromView, getExportTemplateName, getMessage, getMetadataForFinalState, getReqDataModel, getReqDataModelComp, getWfUtilities, isExportButtonActive, isNew, onHistoryEvent, registerModelsAndHandlers, requestModel, saveProposalClu, setAuthorizationRequired, setLastUpdated, setParentController, setViewContext, showDefaultView, showView
 
Methods inherited from class org.kuali.student.common.ui.client.configurable.mvc.layouts.MenuEditableSectionController
addCommonEditButton, addMenuItem, attachEditLink, generateEditLink, setEditable, setEditMode
 
Methods inherited from class org.kuali.student.common.ui.client.configurable.mvc.layouts.MenuSectionController
addButtonForView, addCommonButton, addCommonButton, addContentWidget, addInfoWidget, addMenu, addMenuItem, addSpecialMenuItem, addStartMenuItem, addStyleName, addTopButtonForView, hideView, removeMenuNavigation, renderView, revealMenuItems, setContentInfo, setContentTitle, setContentWarning, setSideBarWidget, showExport, showNextViewOnMenu, showPrint, updateModel
 
Methods inherited from class org.kuali.student.common.ui.client.configurable.mvc.LayoutController
addStartViewPopup, addView, asWidget, beforeHide, checkForErrors, clear, clearAllWarnings, collectBreadcrumbNames, findParentLayout, getController, getDefaultView, getName, getStartPopup, getStartPopupView, getView, getViewEnum, getViewEnumValue, isStartViewShowing, isValid, isValid, setController, setDefaultView, setName, setViewEnum, showFirstView, showStartPopup, showWarnings, updateModelFromCurrentView, updateModelFromView
 
Methods inherited from class org.kuali.student.common.ui.client.mvc.Controller
addApplicationEventHandler, collectHistory, doReportExport, findController, fireApplicationEvent, fireNavigationEvent, getCurrentView, getCurrentViewEnum, getDefaultModelId, getHistoryToken, getParentController, getView, getViewContext, registerModel, requestModel, requestModel, resetCurrentView, setCurrentViewEnum, setDefaultModelId, showView
 
Methods inherited from class com.google.gwt.user.client.ui.Composite
getWidget, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, setWidget
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
addDomHandler, addHandler, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents
 
Methods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleDependentName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, toString, unsinkEvents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.kuali.student.common.ui.client.configurable.mvc.layouts.ContentNavLayoutController
addButtonForView, addCommonButton, addCommonButton, addMenu, addMenuItem, addSpecialMenuItem, removeMenuNavigation
 
Methods inherited from interface org.kuali.student.common.ui.client.configurable.mvc.layouts.DocumentLayoutController
addContentWidget, setContentInfo, setContentTitle
 
Methods inherited from interface org.kuali.student.common.ui.client.configurable.mvc.layouts.ViewLayoutController
addStartViewPopup, addView, setDefaultView, showView
 
Methods inherited from interface org.kuali.student.common.ui.client.mvc.history.HistorySupport
collectHistory
 

Constructor Detail

CourseAdminRetireController

public CourseAdminRetireController()
Method Detail

initializeController

protected void initializeController()
Override the intitailzeController method to use CourseAdminConfigurer

Overrides:
initializeController in class CourseAdminWithoutVersionController

getSaveButton

public KSButton getSaveButton()
Override the getSaveButton to provide a new set of buttons for the admin screens

Overrides:
getSaveButton in class CourseAdminWithoutVersionController

getCancelButton

public KSButton getCancelButton()
Overrides:
getCancelButton in class CourseAdminWithoutVersionController

handleButtonClick

protected void handleButtonClick(String state)
This processes the save or activate button clicks

Overrides:
handleButtonClick in class CourseAdminWithoutVersionController
Parameters:
state - The state to set on the course when saving course data.

setHeaderTitle

protected void setHeaderTitle()
Override the setHeaderTitle to display proper header title for admin screens

Overrides:
setHeaderTitle in class CourseAdminWithoutVersionController

getCourseProposalRpcService

protected BaseDataOrchestrationRpcServiceAsync getCourseProposalRpcService()
Description copied from class: CourseProposalController
This method exists to allow the save/get implementations defined in this CourseProposalController in this controller to be reused in the CourseAdminWithoutVersion controller. This is in an attempt prevent duplication of a large chunk of code in the CourseAdminWithoutVersion controller. Rather than have a save wrapped with proposal information, the CourseAdminWithoutVersion will override this method and return the standard course rpc service which does not use filters for proposal data.

Overrides:
getCourseProposalRpcService in class CourseAdminWithoutVersionController
Returns:
the course rpc service to use

startSectionRequired

public boolean startSectionRequired()
Overrides:
startSectionRequired in class CourseAdminWithoutVersionController

isAuthorizationRequired

public boolean isAuthorizationRequired()
Specified by:
isAuthorizationRequired in interface RequiresAuthorization
Overrides:
isAuthorizationRequired in class CourseAdminWithoutVersionController

progressiveEnableFields

protected void progressiveEnableFields()
Description copied from class: CourseAdminWithoutVersionController
Override the progressive enable fields to only allow edit of end term and retire fields when pilot box checked and course is not active

Overrides:
progressiveEnableFields in class CourseAdminWithoutVersionController


Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.