Class RuleBoServiceImpl
java.lang.Object
org.kuali.rice.krms.impl.repository.RuleBoServiceImpl
- All Implemented Interfaces:
RuleBoService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionList<org.kuali.rice.krms.api.repository.rule.RuleDefinition>convertListOfBosToImmutables(Collection<RuleBo> ruleBos) Converts a List<RuleBo> to an Unmodifiable List<Rule>org.kuali.rice.krms.api.repository.rule.RuleDefinitioncreateRule(org.kuali.rice.krms.api.repository.rule.RuleDefinition rule) This overridden creates a KRMS Rule in the repositoryvoiddeleteRule(String ruleId) Delete theRuleDefinitionwith the given id.from(org.kuali.rice.krms.api.repository.rule.RuleDefinition rule) Converts a immutableRuleDefinitionto its mutableRuleBocounterpart.protected KrmsAttributeDefinitionServicegetRuleAttributeById(String attrId) Gets a rule attribute by its IDorg.kuali.rice.krms.api.repository.rule.RuleDefinitiongetRuleByNameAndNamespace(String name, String namespace) This method retrieves a rule from the repository given the name of the rule and namespace.org.kuali.rice.krms.api.repository.rule.RuleDefinitiongetRuleByRuleId(String ruleId) This method retrieves a rule from the repository given the rule id.voidsetDataObjectService(org.kuali.rice.krad.data.DataObjectService dataObjectService) Sets the dataObjectService attribute value.org.kuali.rice.krms.api.repository.rule.RuleDefinitionupdateRule(org.kuali.rice.krms.api.repository.rule.RuleDefinition rule) This overridden updates an existing Rule in the Repository
-
Constructor Details
-
RuleBoServiceImpl
public RuleBoServiceImpl()
-
-
Method Details
-
createRule
public org.kuali.rice.krms.api.repository.rule.RuleDefinition createRule(org.kuali.rice.krms.api.repository.rule.RuleDefinition rule) This overridden creates a KRMS Rule in the repository- Specified by:
createRulein interfaceRuleBoService- Parameters:
rule- The Rule to create- See Also:
-
updateRule
public org.kuali.rice.krms.api.repository.rule.RuleDefinition updateRule(org.kuali.rice.krms.api.repository.rule.RuleDefinition rule) This overridden updates an existing Rule in the Repository- Specified by:
updateRulein interfaceRuleBoService- Parameters:
rule- The Rule to update- See Also:
-
deleteRule
Description copied from interface:RuleBoServiceDelete theRuleDefinitionwith the given id.- Specified by:
deleteRulein interfaceRuleBoService- Parameters:
ruleId- to delete.
-
getRuleByRuleId
This method retrieves a rule from the repository given the rule id.- Specified by:
getRuleByRuleIdin interfaceRuleBoService- Parameters:
ruleId- the id of the Rule to retrieve- Returns:
- an
RuleDefinitionidentified by the given actionId. A null reference is returned if an invalid or non-existent id is supplied. - See Also:
-
getRuleByNameAndNamespace
public org.kuali.rice.krms.api.repository.rule.RuleDefinition getRuleByNameAndNamespace(String name, String namespace) This method retrieves a rule from the repository given the name of the rule and namespace.- Specified by:
getRuleByNameAndNamespacein interfaceRuleBoService- Parameters:
name- the name of the Rule to retrieve.namespace- the namespace that the rule is under.- Returns:
- an
RuleDefinitionidentified by the given name and namespace. A null reference is returned if an invalid or non-existent name and namespace combination is supplied. - See Also:
-
getRuleAttributeById
Gets a rule attribute by its ID- Parameters:
attrId- the rule attribute's ID- Returns:
- the rule attribute
-
from
Converts a immutableRuleDefinitionto its mutableRuleBocounterpart.- Parameters:
rule- the immutable object.- Returns:
- a
RuleBothe mutable RuleBo.
-
setDataObjectService
public void setDataObjectService(org.kuali.rice.krad.data.DataObjectService dataObjectService) Sets the dataObjectService attribute value.- Parameters:
dataObjectService- The dataObjectService to set.
-
convertListOfBosToImmutables
public List<org.kuali.rice.krms.api.repository.rule.RuleDefinition> convertListOfBosToImmutables(Collection<RuleBo> ruleBos) Converts a List<RuleBo> to an Unmodifiable List<Rule>- Parameters:
ruleBos- a mutable List<RuleBo> to made completely immutable.- Returns:
- An unmodifiable List<Rule>
-
getAttributeDefinitionService
-