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

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
All Implemented Interfaces:
com.google.gwt.event.logical.shared.HasAttachHandlers, com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.ui.IsWidget, ContentNavLayoutController, DocumentLayoutController, ViewLayoutController, BreadcrumbSupport, HistorySupport, View, ReportExport, RequiresAuthorization, WorkflowEnhancedNavController, HasRequirements
Direct Known Subclasses:
CourseAdminRetireController

public class CourseAdminWithoutVersionController
extends CourseAdminController

Controller for create/modify admin screens

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, 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
CourseAdminWithoutVersionController()
           
 
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  Callback<Boolean> previousEndTermConfigurationCallback(Callback<Boolean> onReadyCallback)
          This callback is used to configure the previous end term field after the screens have been configured.
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, addPermissionAttributes, configureScreens, getApproveAndActivateButton, scrollToSection, setViewContext
 
Methods inherited from class org.kuali.student.lum.lu.ui.course.client.controllers.CourseProposalController
beforeShow, beforeViewChange, checkAuthorization, createNewCluProposalModel, doSaveAction, getCancelButton, getCluProposalFromProposalId, getCourseComparisonModelAndReqs, getCourseId, getCourseProposalConfigurer, getCourseState, getCurrentModel, getExportDataModel, getExportElementsFromView, getExportTemplateName, getMessage, getMetadataForFinalState, getReqDataModel, getReqDataModelComp, getStateforSaveAction, getWfUtilities, isExportButtonActive, isNew, onHistoryEvent, registerModelsAndHandlers, requestModel, saveProposalClu, setAuthorizationRequired, setLastUpdated, setParentController, 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
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidgetOrNull, createHandlerManager, 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, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, 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

CourseAdminWithoutVersionController

public CourseAdminWithoutVersionController()
Method Detail

initializeController

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

Overrides:
initializeController in class CourseAdminController

progressiveEnableFields

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

Overrides:
progressiveEnableFields in class CourseAdminController

getSaveButton

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

Overrides:
getSaveButton in class CourseAdminController

getCancelButton

public KSButton getCancelButton()
Overrides:
getCancelButton in class CourseAdminController

handleButtonClick

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

Overrides:
handleButtonClick in class CourseAdminController
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 CourseAdminController

previousEndTermConfigurationCallback

protected Callback<Boolean> previousEndTermConfigurationCallback(Callback<Boolean> onReadyCallback)
Description copied from class: CourseAdminController
This callback is used to configure the previous end term field after the screens have been configured.

Overrides:
previousEndTermConfigurationCallback in class CourseAdminController
Returns:

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 CourseProposalController
Returns:
the course rpc service to use

startSectionRequired

public boolean startSectionRequired()
Overrides:
startSectionRequired in class CourseProposalController

isAuthorizationRequired

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


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