org.kuali.rice.krms.service.impl
Class RuleViewHelperServiceImpl

java.lang.Object
  extended by org.kuali.rice.krad.uif.service.impl.ViewHelperServiceImpl
      extended by org.kuali.student.enrollment.uif.service.impl.KSViewHelperServiceImpl
          extended by org.kuali.rice.krms.service.impl.RuleViewHelperServiceImpl
All Implemented Interfaces:
Serializable, ViewHelperService, RuleViewHelperService, KSViewHelperService
Direct Known Subclasses:
EnrolRuleViewHelperServiceImpl

public class RuleViewHelperServiceImpl
extends KSViewHelperServiceImpl
implements RuleViewHelperService

Created with IntelliJ IDEA. User: SW Date: 2012/12/04 Time: 11:52 AM To change this template use File | Settings | File Templates.

See Also:
Serialized Form

Constructor Summary
RuleViewHelperServiceImpl()
           
 
Method Summary
protected  void addCustomContainerComponents(View view, Object model, Container container)
          Hook for creating new components with code and adding them to a container
 Tree<CompareTreeNode,String> buildCompareTree(RuleDefinitionContract original, String compareToRefObjectId)
           
 PropositionEditor copyProposition(PropositionEditor oldProposition)
           
 PropositionEditor createCompoundPropositionBoStub(PropositionEditor existing, boolean addNewChild)
           
 PropositionEditor createSimplePropositionBoStub(PropositionEditor sibling)
           
protected  RuleCompareTreeBuilder getCompareTreeBuilder()
           
protected  RuleEditTreeBuilder getEditTreeBuilder()
           
protected  KrmsTypeRepositoryService getKrmsTypeRepositoryService()
           
protected  NaturalLanguageHelper getNaturalLanguageHelper()
           
protected  RulePreviewTreeBuilder getPreviewTreeBuilder()
           
 Class<? extends PropositionEditor> getPropositionEditorClass()
           
protected  RuleEditor getRuleEditor(Object model)
           
protected  RuleManagementService getRuleManagementService()
           
static TermResolverDefinition getSimplestTermResolver(String termSpecId, String namespace)
          finds the term resolver with the fewest parameters that resolves the given term specification
 TemplateInfo getTemplateForType(String type)
           
protected  TemplateRegistry getTemplateRegistry()
           
 TermRepositoryService getTermRepositoryService()
           
protected  RuleViewTreeBuilder getViewTreeBuilder()
           
 String getViewTypeName()
           
 void refreshInitTrees(RuleEditor rule)
           
 void refreshViewTree(RuleEditor rule)
           
 String resetDescription(PropositionEditor prop)
           
 boolean validateProposition(PropositionEditor proposition, String namespace)
          Validate the given proposition and its children.
 
Methods inherited from class org.kuali.student.enrollment.uif.service.impl.KSViewHelperServiceImpl
convertServiceExceptionsToUI, createContextInfo, getHelper, getStateInfo, getStateService, getTypeInfo, getTypeService, setHelperClasses
 
Methods inherited from class org.kuali.rice.krad.uif.service.impl.ViewHelperServiceImpl
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.kuali.rice.krad.uif.service.ViewHelperService
applyDefaultValuesForCollectionLine, buildInquiryLink, cleanViewAfterRender, performApplyModel, performComponentInitialization, performComponentLifecycle, performFinalize, performInitialization, populateViewFromRequestParameters, processCollectionAddBlankLine, processCollectionAddLine, processCollectionDeleteLine, processCollectionSaveLine, processMultipleValueLookupResults
 

Constructor Detail

RuleViewHelperServiceImpl

public RuleViewHelperServiceImpl()
Method Detail

getRuleEditor

protected RuleEditor getRuleEditor(Object model)

getViewTypeName

public String getViewTypeName()
Specified by:
getViewTypeName in interface RuleViewHelperService

getTemplateForType

public TemplateInfo getTemplateForType(String type)
Specified by:
getTemplateForType in interface RuleViewHelperService

addCustomContainerComponents

protected void addCustomContainerComponents(View view,
                                            Object model,
                                            Container container)
Description copied from class: ViewHelperServiceImpl
Hook for creating new components with code and adding them to a container

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

Overrides:
addCustomContainerComponents in class ViewHelperServiceImpl
Parameters:
view - - view instance the container belongs to
model - - object containing the view data
container - - container instance to add components to

getSimplestTermResolver

public static TermResolverDefinition getSimplestTermResolver(String termSpecId,
                                                             String namespace)
finds the term resolver with the fewest parameters that resolves the given term specification

Parameters:
termSpecId - the id of the term specification
namespace - the namespace of the term specification
Returns:
the simples TermResolverDefinition found, or null if none was found

resetDescription

public String resetDescription(PropositionEditor prop)
Specified by:
resetDescription in interface RuleViewHelperService

validateProposition

public boolean validateProposition(PropositionEditor proposition,
                                   String namespace)
Validate the given proposition and its children. Note that this method is side-effecting, when errors are detected with the proposition, errors are added to the error map.

Specified by:
validateProposition in interface RuleViewHelperService
Parameters:
proposition - the proposition to validate
namespace - the namespace of the parent rule
Returns:
true if the proposition and its children (if any) are considered valid

refreshInitTrees

public void refreshInitTrees(RuleEditor rule)
Specified by:
refreshInitTrees in interface RuleViewHelperService

refreshViewTree

public void refreshViewTree(RuleEditor rule)
Specified by:
refreshViewTree in interface RuleViewHelperService

buildCompareTree

public Tree<CompareTreeNode,String> buildCompareTree(RuleDefinitionContract original,
                                                     String compareToRefObjectId)
                                              throws Exception
Specified by:
buildCompareTree in interface RuleViewHelperService
Throws:
Exception

copyProposition

public PropositionEditor copyProposition(PropositionEditor oldProposition)
Specified by:
copyProposition in interface RuleViewHelperService

createCompoundPropositionBoStub

public PropositionEditor createCompoundPropositionBoStub(PropositionEditor existing,
                                                         boolean addNewChild)
Specified by:
createCompoundPropositionBoStub in interface RuleViewHelperService

createSimplePropositionBoStub

public PropositionEditor createSimplePropositionBoStub(PropositionEditor sibling)
Specified by:
createSimplePropositionBoStub in interface RuleViewHelperService

getPropositionEditorClass

public Class<? extends PropositionEditor> getPropositionEditorClass()

getRuleManagementService

protected RuleManagementService getRuleManagementService()

getCompareTreeBuilder

protected RuleCompareTreeBuilder getCompareTreeBuilder()

getEditTreeBuilder

protected RuleEditTreeBuilder getEditTreeBuilder()

getPreviewTreeBuilder

protected RulePreviewTreeBuilder getPreviewTreeBuilder()

getViewTreeBuilder

protected RuleViewTreeBuilder getViewTreeBuilder()

getNaturalLanguageHelper

protected NaturalLanguageHelper getNaturalLanguageHelper()

getTemplateRegistry

protected TemplateRegistry getTemplateRegistry()

getKrmsTypeRepositoryService

protected KrmsTypeRepositoryService getKrmsTypeRepositoryService()

getTermRepositoryService

public TermRepositoryService getTermRepositoryService()


Copyright © 2004-2013 The Kuali Foundation. All Rights Reserved.