public class RuleBoServiceImpl extends Object implements RuleBoService
Constructor and Description |
---|
RuleBoServiceImpl() |
Modifier and Type | Method and Description |
---|---|
List<RuleDefinition> |
convertListOfBosToImmutables(Collection<RuleBo> ruleBos)
Converts a List
|
RuleDefinition |
createRule(RuleDefinition rule)
This overridden creates a KRMS Rule in the repository
|
void |
deleteRule(String ruleId)
Delete the
RuleDefinition with the given id. |
RuleBo |
from(RuleDefinition rule)
Converts a immutable
RuleDefinition to its mutable RuleBo counterpart. |
protected KrmsAttributeDefinitionService |
getAttributeDefinitionService() |
RuleAttributeBo |
getRuleAttributeById(String attrId)
Gets a rule attribute by its ID
|
RuleDefinition |
getRuleByNameAndNamespace(String name,
String namespace)
This method retrieves a rule from the repository given the name of the rule
and namespace.
|
RuleDefinition |
getRuleByRuleId(String ruleId)
This method retrieves a rule from the repository given the rule id.
|
void |
setDataObjectService(DataObjectService dataObjectService)
Sets the dataObjectService attribute value.
|
void |
updateRule(RuleDefinition rule)
This overridden updates an existing Rule in the Repository
|
public RuleBoServiceImpl()
public RuleDefinition createRule(RuleDefinition rule)
createRule
in interface RuleBoService
rule
- The Rule to createRuleBoService.createRule(org.kuali.rice.krms.api.repository.rule.RuleDefinition)
public void updateRule(RuleDefinition rule)
updateRule
in interface RuleBoService
rule
- The Rule to updateRuleBoService.updateRule(org.kuali.rice.krms.api.repository.rule.RuleDefinition)
public void deleteRule(String ruleId)
RuleBoService
RuleDefinition
with the given id.deleteRule
in interface RuleBoService
ruleId
- to delete.public RuleDefinition getRuleByRuleId(String ruleId)
getRuleByRuleId
in interface RuleBoService
ruleId
- the id of the Rule to retrieveRuleDefinition
identified by the given actionId.
A null reference is returned if an invalid or non-existent id is supplied.RuleBoService.getRuleByRuleId(java.lang.String)
public RuleDefinition getRuleByNameAndNamespace(String name, String namespace)
getRuleByNameAndNamespace
in interface RuleBoService
name
- the name of the Rule to retrieve.namespace
- the namespace that the rule is under.RuleDefinition
identified by the given name and namespace.
A null reference is returned if an invalid or non-existent name and
namespace combination is supplied.RuleBoService.getRuleByRuleId(java.lang.String)
public RuleAttributeBo getRuleAttributeById(String attrId)
attrId
- the rule attribute's IDpublic RuleBo from(RuleDefinition rule)
RuleDefinition
to its mutable RuleBo
counterpart.rule
- the immutable object.RuleBo
the mutable RuleBo.public void setDataObjectService(DataObjectService dataObjectService)
dataObjectService
- The dataObjectService to set.public List<RuleDefinition> convertListOfBosToImmutables(Collection<RuleBo> ruleBos)
ruleBos
- a mutable Listprotected KrmsAttributeDefinitionService getAttributeDefinitionService()
Copyright © 2005–2014 The Kuali Foundation. All rights reserved.