public class CourseProposalController extends MenuEditableSectionController implements RequiresAuthorization, WorkflowEnhancedNavController, HasRequirements
| Modifier and Type | Field and Description |
|---|---|
protected CourseProposalConfigurer |
cfg |
protected DataModel |
cluProposalModel |
protected CreditCourseProposalRpcServiceAsync |
cluProposalRpcServiceAsync |
protected DataModel |
comparisonModel |
protected CourseRpcServiceAsync |
courseServiceAsync |
protected String |
currentDocType |
protected String |
currentTitle |
protected boolean |
initialized |
protected boolean |
isNew |
protected BlockingTask |
loadDataTask |
protected WorkQueue |
modelRequestQueue |
protected String |
proposalPath |
protected CourseRequirementsDataModel |
reqDataModel |
protected CourseRequirementsDataModel |
reqDataModelComp |
protected WorkflowUtilities |
workflowUtil |
leftPanel, menu, menuViewMap, rightPanel, topLevelMenuItems, viewMenuItemMapdefaultView, name, startPopupView, startViewWindow, viewEnumMap, viewMap, viewTypecontext, NO_OP_CALLBACK, parentControllerexportTemplateName| Constructor and Description |
|---|
CourseProposalController() |
| Modifier and Type | Method and Description |
|---|---|
void |
addPermissionAttributes(Map<String,String> attributes)
This method adds any permission attributes required for checking permissions
|
void |
beforeShow(Callback<Boolean> onReadyCallback)
Default implementation does nothing on before show.
|
void |
beforeViewChange(Enum<?> viewChangingTo,
Callback<Boolean> okToChange)
This particular implementation of beforeViewChange checks to see if all its view contains a Controller
and if it does checks with that controller to see if it is ok to change the view.
|
void |
checkAuthorization(AuthorizationCallback authCallback) |
protected void |
configureScreens(DataModelDefinition modelDefinition,
Callback<Boolean> onReadyCallback) |
protected void |
createCopyCourseModel(String originalCluId,
ModelRequestCallback callback,
Callback<Boolean> workCompleteCallback) |
protected void |
createCopyCourseProposalModel(String originalProposalId,
ModelRequestCallback callback,
Callback<Boolean> workCompleteCallback) |
protected void |
createModifyCluProposalModel(String versionComment,
ModelRequestCallback callback,
Callback<Boolean> workCompleteCallback) |
protected void |
createNewCluProposalModel(ModelRequestCallback callback,
Callback<Boolean> workCompleteCallback) |
void |
doSaveAction(SaveActionEvent saveActionEvent) |
KSButton |
getCancelButton(Enum<?> summaryView) |
protected void |
getCluProposalFromProposalId(String id,
ModelRequestCallback callback,
Callback<Boolean> workCompleteCallback) |
protected void |
getCluProposalFromWorkflowId(ModelRequestCallback callback,
Callback<Boolean> workCompleteCallback) |
protected void |
getCourseComparisonModelAndReqs(ModelRequestCallback proposalModelRequestCallback,
Callback<Boolean> workCompleteCallback) |
String |
getCourseId() |
CourseProposalConfigurer |
getCourseProposalConfigurer() |
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.
|
String |
getCourseState() |
protected void |
getCurrentModel(ModelRequestCallback<DataModel> callback,
Callback<Boolean> workCompleteCallback) |
DataModel |
getExportDataModel()
This method needs to be implemented on every controller that want's to export the data
|
List<ExportElement> |
getExportElementsFromView()
This method returns array of ExportElements which represent the elements on the view that must be exported
|
String |
getExportTemplateName()
This overridden method only needs to be implemented if the Generic Export reports has to be
overwritten for a particular COntroller.
|
String |
getMessage(String courseMessageKey) |
void |
getMetadataForFinalState(KSAsyncCallback<Metadata> callback) |
CourseRequirementsDataModel |
getReqDataModel() |
CourseRequirementsDataModel |
getReqDataModelComp() |
KSButton |
getSaveButton() |
protected String |
getStateforSaveAction(DataModel model)
This method is used to determine which state the dto will be when making the save call.
|
WorkflowUtilities |
getWfUtilities() |
protected void |
initializeController() |
boolean |
isAuthorizationRequired() |
boolean |
isExportButtonActive()
This method needs to be implemented only on views that want the export button to display.
|
boolean |
isNew() |
void |
onHistoryEvent(String historyStack)
The onHistoryEvent implementation in controller reads the history stack it receives and determines
if the next token/view to be processed is a controller, if it is, it hands off the rest of the history stack
to that controller after showing it.
|
protected void |
populateModel(ModelRequestCallback<DataModel> callback,
Callback<Boolean> workCompleteCallback)
Used to populate the proposal model based on the view context.
|
protected void |
progressiveEnableFields()
This progressively enables/disables screen fields based on other fields present in the screens.
|
protected void |
registerModelsAndHandlers() |
void |
requestModel(Class modelType,
ModelRequestCallback callback)
Called by child views and controllers to request a model reference.
|
void |
saveProposalClu(SaveActionEvent saveActionEvent) |
void |
setAuthorizationRequired(boolean required) |
protected void |
setHeaderTitle() |
void |
setLastUpdated() |
void |
setParentController(Controller controller)
Sets the controller's parent controller.
|
void |
setViewContext(ViewContext viewContext)
Sets the view context.
|
void |
showDefaultView(Callback<Boolean> onReadyCallback)
Shows the default view.
|
<V extends Enum<?>> |
showView(V viewType,
Callback<Boolean> onReadyCallback)
Directs the controller to display the specified view.
|
boolean |
startSectionRequired() |
addCommonEditButton, addMenuItem, attachEditLink, generateEditLink, setEditable, setEditModeaddButtonForView, addCommonButton, addCommonButton, addContentWidget, addInfoWidget, addMenu, addMenuItem, addSpecialMenuItem, addStartMenuItem, addStyleName, addTopButtonForView, hideView, removeMenuNavigation, renderView, revealMenuItems, setContentInfo, setContentTitle, setContentWarning, setSideBarWidget, showExport, showNextViewOnMenu, showPrint, updateModeladdStartViewPopup, 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, updateModelFromViewaddApplicationEventHandler, collectHistory, doReportExport, findController, fireApplicationEvent, fireNavigationEvent, getCurrentView, getCurrentViewEnum, getDefaultModelId, getHistoryToken, getParentController, getView, getViewContext, registerModel, requestModel, requestModel, resetCurrentView, setCurrentViewEnum, setDefaultModelId, showViewgetWidget, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, setWidgetaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEventsaddStyleDependentName, 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, unsinkEventsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddButtonForView, addCommonButton, addCommonButton, addMenu, addMenuItem, addSpecialMenuItem, removeMenuNavigationaddContentWidget, setContentInfo, setContentTitleaddStartViewPopup, addView, setDefaultView, showViewcollectHistoryprotected CreditCourseProposalRpcServiceAsync cluProposalRpcServiceAsync
protected CourseRpcServiceAsync courseServiceAsync
protected final DataModel cluProposalModel
protected final DataModel comparisonModel
protected CourseProposalConfigurer cfg
protected WorkQueue modelRequestQueue
protected WorkflowUtilities workflowUtil
protected boolean initialized
protected boolean isNew
protected String currentDocType
protected String proposalPath
protected String currentTitle
protected final BlockingTask loadDataTask
protected CourseRequirementsDataModel reqDataModel
protected CourseRequirementsDataModel reqDataModelComp
public CourseProposalController()
protected void initializeController()
protected void registerModelsAndHandlers()
protected void populateModel(ModelRequestCallback<DataModel> callback, Callback<Boolean> workCompleteCallback)
callback - workCompleteCallback - protected void getCurrentModel(ModelRequestCallback<DataModel> callback, Callback<Boolean> workCompleteCallback)
public void getMetadataForFinalState(KSAsyncCallback<Metadata> callback)
getMetadataForFinalState in interface WorkflowEnhancedNavControllerprotected void configureScreens(DataModelDefinition modelDefinition, Callback<Boolean> onReadyCallback)
protected void progressiveEnableFields()
public void requestModel(Class modelType, ModelRequestCallback callback)
ControllerrequestModel in class Controllerprotected void getCluProposalFromWorkflowId(ModelRequestCallback callback, Callback<Boolean> workCompleteCallback)
protected void getCluProposalFromProposalId(String id, ModelRequestCallback callback, Callback<Boolean> workCompleteCallback)
protected void getCourseComparisonModelAndReqs(ModelRequestCallback proposalModelRequestCallback, Callback<Boolean> workCompleteCallback)
protected void createNewCluProposalModel(ModelRequestCallback callback, Callback<Boolean> workCompleteCallback)
protected void createModifyCluProposalModel(String versionComment, ModelRequestCallback callback, Callback<Boolean> workCompleteCallback)
protected void createCopyCourseModel(String originalCluId, ModelRequestCallback callback, Callback<Boolean> workCompleteCallback)
protected void createCopyCourseProposalModel(String originalProposalId, ModelRequestCallback callback, Callback<Boolean> workCompleteCallback)
public void doSaveAction(SaveActionEvent saveActionEvent)
public boolean startSectionRequired()
public void saveProposalClu(SaveActionEvent saveActionEvent)
public void setLastUpdated()
public void beforeShow(Callback<Boolean> onReadyCallback)
LayoutControllerbeforeShow in interface ViewbeforeShow in class LayoutControllerView.beforeShow(org.kuali.student.common.ui.client.mvc.Callback)public <V extends Enum<?>> void showView(V viewType, Callback<Boolean> onReadyCallback)
Controller
public enum SearchViews {
SIMPLE_SEARCH,
ADVANCED_SEARCH,
SEARCH_RESULTS
}
The implementing class must define a getView(V viewType) method that will cast the generic enum to the view
specific enum.showView in class MenuEditableSectionControllerV - view enum typeviewType - enum value representing the view to showonReadyCallback - the callback to invoke when the method has completed executionpublic void showDefaultView(Callback<Boolean> onReadyCallback)
ControllershowDefaultView in class LayoutControllerpublic void setParentController(Controller controller)
ControllersetParentController in class Controllercontroller - the parent controllerpublic void checkAuthorization(AuthorizationCallback authCallback)
checkAuthorization in interface RequiresAuthorizationpublic void setViewContext(ViewContext viewContext)
ControllersetViewContext in class Controllerpublic void addPermissionAttributes(Map<String,String> attributes)
public boolean isAuthorizationRequired()
isAuthorizationRequired in interface RequiresAuthorizationpublic void setAuthorizationRequired(boolean required)
setAuthorizationRequired in interface RequiresAuthorizationprotected void setHeaderTitle()
public WorkflowUtilities getWfUtilities()
getWfUtilities in interface WorkflowEnhancedNavControllerpublic void beforeViewChange(Enum<?> viewChangingTo, Callback<Boolean> okToChange)
LayoutControllerbeforeViewChange in class LayoutControllerController.beforeViewChange(java.lang.Enum, org.kuali.student.common.ui.client.mvc.Callback)public KSButton getSaveButton()
public KSButton getCancelButton(Enum<?> summaryView)
public void onHistoryEvent(String historyStack)
ControlleronHistoryEvent in interface HistorySupportonHistoryEvent in class ControllerHistorySupport.onHistoryEvent(java.lang.String)public String getCourseId()
public String getCourseState()
public boolean isNew()
public CourseRequirementsDataModel getReqDataModel()
getReqDataModel in interface HasRequirementspublic CourseRequirementsDataModel getReqDataModelComp()
public DataModel getExportDataModel()
ReportExportgetExportDataModel in interface ReportExportgetExportDataModel in class Controllerpublic String getExportTemplateName()
ReportExportgetExportTemplateName in interface ReportExportgetExportTemplateName in class ControllerReportExport.getExportTemplateName()public List<ExportElement> getExportElementsFromView()
ReportExportgetExportElementsFromView in interface ReportExportgetExportElementsFromView in class MenuSectionControllerpublic boolean isExportButtonActive()
ViewisExportButtonActive in interface ViewisExportButtonActive in class LayoutControllerprotected String getStateforSaveAction(DataModel model)
public String getMessage(String courseMessageKey)
protected BaseDataOrchestrationRpcServiceAsync getCourseProposalRpcService()
public CourseProposalConfigurer getCourseProposalConfigurer()
Copyright © 2004-2013 The Kuali Foundation. All Rights Reserved.