public class RuleViewHelperServiceImpl extends KSViewHelperServiceImpl implements RuleViewHelperService
Constructor and Description |
---|
RuleViewHelperServiceImpl() |
convertServiceExceptionsToUI, createContextInfo, getHelper, getStateInfo, getStateService, getTypeInfo, getTypeService, setHelperClasses
addClientSideStateForComponent, 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, performApplyModel, performComponentInitialization, performComponentLifecycle, performFinalize, performInitialization, populateViewFromRequestParameters, processCollectionAddBlankLine, processCollectionAddLine, processCollectionDeleteLine, processCollectionSaveLine, processMultipleValueLookupResults
public RuleViewHelperServiceImpl()
protected RuleEditor getRuleEditor(Object model)
public String getViewTypeName()
getViewTypeName
in interface RuleViewHelperService
public TemplateInfo getTemplateForType(String type)
getTemplateForType
in interface RuleViewHelperService
protected void addCustomContainerComponents(View view, Object model, Container container)
ViewHelperServiceImpl
Subclasses can override this method to check for one or more containers by id and then adding components created in code. This is invoked before the initialize method on the container component, so the full lifecycle will be run on the components returned.
New components instances can be retrieved using ComponentFactory
addCustomContainerComponents
in class ViewHelperServiceImpl
view
- - view instance the container belongs tomodel
- - object containing the view datacontainer
- - container instance to add components topublic static TermResolverDefinition getSimplestTermResolver(String termSpecId, String namespace)
termSpecId
- the id of the term specificationnamespace
- the namespace of the term specificationTermResolverDefinition
found, or null if none was foundpublic String resetDescription(PropositionEditor prop)
resetDescription
in interface RuleViewHelperService
public boolean validateProposition(PropositionEditor proposition, String namespace)
validateProposition
in interface RuleViewHelperService
proposition
- the proposition to validatenamespace
- the namespace of the parent rulepublic void refreshInitTrees(RuleEditor rule)
refreshInitTrees
in interface RuleViewHelperService
public void refreshViewTree(RuleEditor rule)
refreshViewTree
in interface RuleViewHelperService
public Tree<CompareTreeNode,String> buildCompareTree(RuleDefinitionContract original, String compareToRefObjectId) throws Exception
buildCompareTree
in interface RuleViewHelperService
Exception
public PropositionEditor copyProposition(PropositionEditor oldProposition)
copyProposition
in interface RuleViewHelperService
public PropositionEditor createCompoundPropositionBoStub(PropositionEditor existing, boolean addNewChild)
createCompoundPropositionBoStub
in interface RuleViewHelperService
public PropositionEditor createSimplePropositionBoStub(PropositionEditor sibling)
createSimplePropositionBoStub
in interface RuleViewHelperService
public Class<? extends PropositionEditor> getPropositionEditorClass()
protected RuleManagementService getRuleManagementService()
protected RuleCompareTreeBuilder getCompareTreeBuilder()
protected RuleEditTreeBuilder getEditTreeBuilder()
protected RulePreviewTreeBuilder getPreviewTreeBuilder()
protected RuleViewTreeBuilder getViewTreeBuilder()
protected NaturalLanguageHelper getNaturalLanguageHelper()
protected TemplateRegistry getTemplateRegistry()
protected KrmsTypeRepositoryService getKrmsTypeRepositoryService()
public TermRepositoryService getTermRepositoryService()
Copyright © 2004-2013 The Kuali Foundation. All Rights Reserved.