public class KSViewHelperServiceImpl extends ViewHelperServiceImpl implements KSViewHelperService
| Constructor and Description |
|---|
KSViewHelperServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
RuntimeException |
convertServiceExceptionsToUI(Exception ex)
This is a helper method which handles all the services exceptions.
|
ContextInfo |
createContextInfo()
This method creates a new context, which is needed for the service call.
|
Object |
getHelper(String helperName)
This creates an instance of the helper class if it's already not there.
|
StateInfo |
getStateInfo(String stateKey)
This method gets the
StateInfo for a given state key |
protected StateService |
getStateService() |
TypeInfo |
getTypeInfo(String typeKey)
This method gets the
TypeInfo for a given type key |
protected TypeService |
getTypeService() |
void |
setHelperClasses(Map<String,Class> helperClasses)
This is a map which holds all the helper classes by name.
|
addCustomContainerComponents, addLine, adjustIdIfNecessary, applyAuthorizationAndPresentationLogic, applyDefaultValues, applyDefaultValuesForCollectionLine, buildClientSideStateScript, buildExportTableData, buildExportTableRow, buildGrowlScript, buildInquiryLink, cleanViewAfterRender, findNestedDictionaryAttribute, getBusinessObjectService, getCommonContext, getConfigurationService, getDataDictionaryService, getExportTableFormatOptions, getExpressionEvaluator, getPersistenceService, getPersistenceStructureService, getPreModelContext, getViewDictionaryService, initializeDataFieldFromDataDictionary, invokeMethodFinalizer, logAndThrowRuntime, performAddLineValidation, performApplyModel, performComponentApplyModel, performComponentFinalize, performComponentInitialization, performComponentLifecycle, performCustomApplyModel, performCustomFinalize, performCustomInitialization, performDeleteLineValidation, performFinalize, performInitialization, populateDefaultValueForField, populateViewFromRequestParameters, processAfterAddLine, processAfterDeleteLine, processAfterSaveLine, processAnyRemoteFieldsHolder, processBeforeAddLine, processBeforeSaveLine, processCollectionAddBlankLine, processCollectionAddLine, processCollectionDeleteLine, processCollectionSaveLine, processMultipleValueLookupResults, refreshReferences, retrieveEditModesAndActionFlags, runComponentModifiers, setBusinessObjectService, setConfigurationService, setDataDictionaryService, setExpressionEvaluator, setPersistenceService, setPersistenceStructureService, setViewContext, setViewDictionaryService, spawnSubLifecyle, syncClientSideStateForComponentclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitapplyDefaultValuesForCollectionLine, buildExportTableData, buildInquiryLink, cleanViewAfterRender, getCommonContext, getExpressionEvaluator, performApplyModel, performComponentInitialization, performComponentLifecycle, performFinalize, performInitialization, populateViewFromRequestParameters, processCollectionAddBlankLine, processCollectionAddLine, processCollectionDeleteLine, processCollectionSaveLine, processMultipleValueLookupResults, refreshReferences, spawnSubLifecylepublic KSViewHelperServiceImpl()
public ContextInfo createContextInfo()
ContextInfo with the following information - current logged in user, current local
date and locale informationcreateContextInfo in interface KSViewHelperServicepublic StateInfo getStateInfo(String stateKey)
StateInfo for a given state keygetStateInfo in interface KSViewHelperServicestateKey - public TypeInfo getTypeInfo(String typeKey)
TypeInfo for a given type keygetTypeInfo in interface KSViewHelperServicetypeKey - public RuntimeException convertServiceExceptionsToUI(Exception ex)
convertServiceExceptionsToUI in interface KSViewHelperServiceex - service exception to be handledpublic void setHelperClasses(Map<String,Class> helperClasses)
And from the helper class, we can call like
CourseOfferingSetPublishingHelper mpeHelper = (CourseOfferingSetPublishingHelper)getHelper("publishHelper");
helperClasses - map of helper classes with name as keys and classes as valuespublic Object getHelper(String helperName)
helperName - protected StateService getStateService()
protected TypeService getTypeService()
Copyright © 2004-2013 The Kuali Foundation. All Rights Reserved.