public class KSViewHelperServiceImpl extends org.kuali.rice.krad.uif.service.impl.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, buildGrowlScript, buildInquiryLink, cleanViewAfterRender, findNestedDictionaryAttribute, getCommonContext, getConfigurationService, getDataDictionaryService, getExpressionEvaluatorService, 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, retrieveEditModesAndActionFlags, runComponentModifiers, setConfigurationService, setDataDictionaryService, setExpressionEvaluatorService, setViewContext, setViewDictionaryService, syncClientSideStateForComponent
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
applyDefaultValuesForCollectionLine, buildInquiryLink, cleanViewAfterRender, getCommonContext, performApplyModel, performComponentInitialization, performComponentLifecycle, performFinalize, performInitialization, populateViewFromRequestParameters, processCollectionAddBlankLine, processCollectionAddLine, processCollectionDeleteLine, processCollectionSaveLine, processMultipleValueLookupResults
public KSViewHelperServiceImpl()
public ContextInfo createContextInfo()
ContextInfo
with the following information - current logged in user, current local
date and locale informationcreateContextInfo
in interface KSViewHelperService
public StateInfo getStateInfo(String stateKey)
StateInfo
for a given state keygetStateInfo
in interface KSViewHelperService
stateKey
- public TypeInfo getTypeInfo(String typeKey)
TypeInfo
for a given type keygetTypeInfo
in interface KSViewHelperService
typeKey
- public RuntimeException convertServiceExceptionsToUI(Exception ex)
convertServiceExceptionsToUI
in interface KSViewHelperService
ex
- 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.