public class RuleViewHelperServiceImpl extends KSViewHelperServiceImpl implements RuleViewHelperService
| Constructor and Description |
|---|
RuleViewHelperServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addCustomContainerComponents(View view,
Object model,
Container container) |
void |
buildActions(RuleEditor ruleEditor) |
Tree<CompareTreeNode,String> |
buildCompareTree(RuleEditor original,
RuleEditor compare) |
Tree<CompareTreeNode,String> |
buildMultiViewTree(RuleEditor original,
RuleEditor compare) |
Boolean |
compareCompoundProposition(List<PropositionEditor> original,
List<PropositionEditor> compare)
Recursively compare child propositions.
|
Boolean |
compareProposition(PropositionEditor original,
PropositionEditor compare)
Method to handle the proposition comparison recursively.
|
Boolean |
compareRules(RuleEditor original)
Compare all the propositions in a rule tree with a parent rule tree.
|
Boolean |
compareTerm(List<TermParameterEditor> original,
List<TermParameterEditor> compare)
Compare all the keys and values of the term parameter.
|
void |
configurePropositionForType(PropositionEditor proposition) |
PropositionEditor |
copyProposition(PropositionEditor oldProposition)
Make a new copy of the current proposition including the compounds.
|
protected PropositionEditor |
copyPropositionEditor(PropositionEditor oldProposition)
Used when the user clicked the copy button.
|
PropositionEditor |
createCompoundPropositionBoStub(PropositionEditor existing,
boolean addNewChild) |
PropositionEditor |
createSimplePropositionBoStub(PropositionEditor sibling)
Creates a new instance of a simple proposition.
|
void |
finPropositionEditor(PropositionEditor propositionEditor)
Finalizes the proposition, setting the type and terms.
|
protected RuleCompareTreeBuilder |
getCompareTreeBuilder() |
protected RuleEditTreeBuilder |
getEditTreeBuilder() |
protected KrmsTypeRepositoryService |
getKrmsTypeRepositoryService() |
protected NaturalLanguageHelper |
getNaturalLanguageHelper() |
protected RulePreviewTreeBuilder |
getPreviewTreeBuilder() |
Class<? extends PropositionEditor> |
getPropositionEditorClass()
Override this method to return a different class type if you need to use a different propositoin editor class.
|
protected RuleEditor |
getRuleEditor(Object model) |
protected RuleManagementService |
getRuleManagementService() |
TemplateInfo |
getTemplateForType(String type) |
protected TemplateRegistry |
getTemplateRegistry() |
Map<String,String> |
getTermParameters(PropositionEditor proposition)
Create TermEditor from the TermDefinition objects to be used in the ui and return a map of
the key and values of the term parameters.
|
TermRepositoryService |
getTermRepositoryService() |
protected RuleViewTreeBuilder |
getViewTreeBuilder() |
void |
initPropositionEditor(PropositionEditor propositionEditor)
Initializes the proposition, populating the type and terms.
|
void |
refreshInitTrees(RuleEditor rule) |
void |
refreshViewTree(RuleEditor rule)
Rebuild the tree used for the view only trees.
|
void |
resetDescription(PropositionEditor prop)
Clear the description and natural language on proposition editors.
|
void |
setTypeForCompoundOpCode(PropositionEditor proposition,
String compoundOpCode) |
Boolean |
validateProposition(PropositionEditor proposition)
Validate the proposition.
|
Boolean |
validateRule(RuleEditor rule)
Validate the rule.
|
convertServiceExceptionsToUI, createContextInfo, getHelper, getStateInfo, getStateService, getTypeInfo, getTypeService, setHelperClassesaddLine, 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 RuleViewHelperServiceImpl()
protected RuleEditor getRuleEditor(Object model)
public TemplateInfo getTemplateForType(String type)
getTemplateForType in interface RuleViewHelperServiceprotected void addCustomContainerComponents(View view, Object model, Container container)
addCustomContainerComponents in class ViewHelperServiceImplpublic Boolean validateRule(RuleEditor rule)
validateRule in interface RuleViewHelperServicerule - public Boolean validateProposition(PropositionEditor proposition)
validateProposition in interface RuleViewHelperServiceproposition - public void initPropositionEditor(PropositionEditor propositionEditor)
initPropositionEditor in interface RuleViewHelperServicepropositionEditor - public void finPropositionEditor(PropositionEditor propositionEditor)
finPropositionEditor in interface RuleViewHelperServicepropositionEditor - public Map<String,String> getTermParameters(PropositionEditor proposition)
getTermParameters in interface RuleViewHelperServiceproposition - public void resetDescription(PropositionEditor prop)
resetDescription in interface RuleViewHelperServiceprop - public void buildActions(RuleEditor ruleEditor)
buildActions in interface RuleViewHelperServicepublic void configurePropositionForType(PropositionEditor proposition)
configurePropositionForType in interface RuleViewHelperServicepublic void refreshInitTrees(RuleEditor rule)
refreshInitTrees in interface RuleViewHelperServicepublic void refreshViewTree(RuleEditor rule)
refreshViewTree in interface RuleViewHelperServicerule - public Tree<CompareTreeNode,String> buildCompareTree(RuleEditor original, RuleEditor compare)
buildCompareTree in interface RuleViewHelperServicepublic Tree<CompareTreeNode,String> buildMultiViewTree(RuleEditor original, RuleEditor compare)
buildMultiViewTree in interface RuleViewHelperServicepublic Boolean compareRules(RuleEditor original)
compareRules in interface RuleViewHelperServiceoriginal - Exceptionpublic Boolean compareProposition(PropositionEditor original, PropositionEditor compare)
compareProposition in interface RuleViewHelperServiceoriginal - compare - public Boolean compareTerm(List<TermParameterEditor> original, List<TermParameterEditor> compare)
compareTerm in interface RuleViewHelperServiceoriginal - list of term parameters for current termcompare - list of term paramters to compare with.public Boolean compareCompoundProposition(List<PropositionEditor> original, List<PropositionEditor> compare)
compareCompoundProposition in interface RuleViewHelperServiceoriginal - compare - public PropositionEditor copyProposition(PropositionEditor oldProposition)
copyProposition in interface RuleViewHelperServiceoldProposition - protected PropositionEditor copyPropositionEditor(PropositionEditor oldProposition)
oldProposition - public PropositionEditor createCompoundPropositionBoStub(PropositionEditor existing, boolean addNewChild)
createCompoundPropositionBoStub in interface RuleViewHelperServicepublic void setTypeForCompoundOpCode(PropositionEditor proposition, String compoundOpCode)
setTypeForCompoundOpCode in interface RuleViewHelperServicepublic PropositionEditor createSimplePropositionBoStub(PropositionEditor sibling)
createSimplePropositionBoStub in interface RuleViewHelperServicesibling - 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-2014 The Kuali Foundation. All Rights Reserved.