public class RuleViewHelperServiceImpl extends KSViewHelperServiceImpl implements RuleViewHelperService
Constructor and Description |
---|
RuleViewHelperServiceImpl() |
Modifier and Type | Method and Description |
---|---|
void |
addCustomContainerComponents(ViewModel 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, setHelperClasses
addLine, applyDefaultValues, applyDefaultValuesForCollectionLine, buildGrowlScript, buildInquiryLink, getConfigurationService, getDataDictionaryService, getDataObjectService, getDefaultValueForField, getExpressionEvaluatorFactory, getLegacyDataAdapter, getViewDictionaryService, linkAddedLine, logAndThrowRuntime, performAddLineValidation, performCustomApplyModel, performCustomFinalize, performCustomInitialization, performCustomViewFinalize, performCustomViewInitialization, performDeleteLineValidation, populateDefaultValueForField, populateViewFromRequestParameters, processAfterAddLine, processAfterDeleteLine, processAfterSaveLine, processAndAddLineObject, processBeforeAddLine, processBeforeSaveLine, processCollectionAddBlankLine, processCollectionAddLine, processCollectionDeleteLine, processCollectionSaveLine, processMultipleValueLookupResults, refreshReference, refreshReferences, retrieveEditModesAndActionFlags, setConfigurationService, setDataDictionaryService, setDataObjectService, setExpressionEvaluatorFactory, setLegacyDataAdapter, setViewContext, setViewDictionaryService
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
applyDefaultValues, applyDefaultValuesForCollectionLine, buildGrowlScript, buildInquiryLink, getDefaultValueForField, getExpressionEvaluatorFactory, performCustomApplyModel, performCustomFinalize, performCustomInitialization, performCustomViewFinalize, performCustomViewInitialization, populateDefaultValueForField, populateViewFromRequestParameters, processAfterAddLine, processAfterDeleteLine, processAfterSaveLine, processBeforeAddLine, processBeforeSaveLine, processCollectionAddBlankLine, processCollectionAddLine, processCollectionDeleteLine, processCollectionSaveLine, processMultipleValueLookupResults, refreshReference, refreshReferences, retrieveEditModesAndActionFlags, setViewContext
public RuleViewHelperServiceImpl()
protected RuleEditor getRuleEditor(Object model)
public TemplateInfo getTemplateForType(String type)
getTemplateForType
in interface RuleViewHelperService
public void addCustomContainerComponents(ViewModel model, Container container)
addCustomContainerComponents
in interface ViewHelperService
addCustomContainerComponents
in class ViewHelperServiceImpl
public Boolean validateRule(RuleEditor rule)
validateRule
in interface RuleViewHelperService
rule
- public Boolean validateProposition(PropositionEditor proposition)
validateProposition
in interface RuleViewHelperService
proposition
- public void initPropositionEditor(PropositionEditor propositionEditor)
initPropositionEditor
in interface RuleViewHelperService
propositionEditor
- public void finPropositionEditor(PropositionEditor propositionEditor)
finPropositionEditor
in interface RuleViewHelperService
propositionEditor
- public Map<String,String> getTermParameters(PropositionEditor proposition)
getTermParameters
in interface RuleViewHelperService
proposition
- public void resetDescription(PropositionEditor prop)
resetDescription
in interface RuleViewHelperService
prop
- public void buildActions(RuleEditor ruleEditor)
buildActions
in interface RuleViewHelperService
public void configurePropositionForType(PropositionEditor proposition)
configurePropositionForType
in interface RuleViewHelperService
public void refreshInitTrees(RuleEditor rule)
refreshInitTrees
in interface RuleViewHelperService
public void refreshViewTree(RuleEditor rule)
refreshViewTree
in interface RuleViewHelperService
rule
- public Tree<CompareTreeNode,String> buildCompareTree(RuleEditor original, RuleEditor compare)
buildCompareTree
in interface RuleViewHelperService
public Tree<CompareTreeNode,String> buildMultiViewTree(RuleEditor original, RuleEditor compare)
buildMultiViewTree
in interface RuleViewHelperService
public Boolean compareRules(RuleEditor original)
compareRules
in interface RuleViewHelperService
original
- Exception
public Boolean compareProposition(PropositionEditor original, PropositionEditor compare)
compareProposition
in interface RuleViewHelperService
original
- compare
- public Boolean compareTerm(List<TermParameterEditor> original, List<TermParameterEditor> compare)
compareTerm
in interface RuleViewHelperService
original
- 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 RuleViewHelperService
original
- compare
- public PropositionEditor copyProposition(PropositionEditor oldProposition)
copyProposition
in interface RuleViewHelperService
oldProposition
- protected PropositionEditor copyPropositionEditor(PropositionEditor oldProposition)
oldProposition
- public PropositionEditor createCompoundPropositionBoStub(PropositionEditor existing, boolean addNewChild)
createCompoundPropositionBoStub
in interface RuleViewHelperService
public void setTypeForCompoundOpCode(PropositionEditor proposition, String compoundOpCode)
setTypeForCompoundOpCode
in interface RuleViewHelperService
public PropositionEditor createSimplePropositionBoStub(PropositionEditor sibling)
createSimplePropositionBoStub
in interface RuleViewHelperService
sibling
- 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.