org.kuali.rice.krms.impl.repository
Class RuleBoServiceImpl

java.lang.Object
  extended by org.kuali.rice.krms.impl.repository.RuleBoServiceImpl
All Implemented Interfaces:
RuleBoService

public final class RuleBoServiceImpl
extends Object
implements RuleBoService


Constructor Summary
RuleBoServiceImpl()
           
 
Method Summary
 List<RuleDefinition> convertListOfBosToImmutables(Collection<org.kuali.rice.krms.impl.repository.RuleBo> ruleBos)
          Converts a List to an Unmodifiable 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.
 org.kuali.rice.krms.impl.repository.RuleBo from(RuleDefinition rule)
          Converts a immutable RuleDefinition to its mutable RuleBo counterpart.
protected  KrmsAttributeDefinitionService getAttributeDefinitionService()
           
 org.kuali.rice.krms.impl.repository.RuleAttributeBo getRuleAttributeById(String attrId)
          This method ...
 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 setBusinessObjectService(BusinessObjectService businessObjectService)
          Sets the businessObjectService attribute value.
 void updateRule(RuleDefinition rule)
          This overridden updates an existing Rule in the Repository
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RuleBoServiceImpl

public RuleBoServiceImpl()
Method Detail

createRule

public RuleDefinition createRule(RuleDefinition rule)
This overridden creates a KRMS Rule in the repository

Specified by:
createRule in interface RuleBoService
Parameters:
rule - The Rule to create
See Also:
RuleBoService.createRule(org.kuali.rice.krms.api.repository.rule.RuleDefinition)

updateRule

public void updateRule(RuleDefinition rule)
This overridden updates an existing Rule in the Repository

Specified by:
updateRule in interface RuleBoService
Parameters:
rule - The Rule to update
See Also:
RuleBoService.updateRule(org.kuali.rice.krms.api.repository.rule.RuleDefinition)

deleteRule

public void deleteRule(String ruleId)
Description copied from interface: RuleBoService
Delete the RuleDefinition with the given id.

Specified by:
deleteRule in interface RuleBoService
Parameters:
ruleId - to delete.

getRuleByRuleId

public RuleDefinition getRuleByRuleId(String ruleId)
This method retrieves a rule from the repository given the rule id.

Specified by:
getRuleByRuleId in interface RuleBoService
Parameters:
ruleId - the id of the Rule to retrieve
Returns:
an RuleDefinition identified by the given actionId. A null reference is returned if an invalid or non-existent id is supplied.
See Also:
RuleBoService.getRuleByRuleId(java.lang.String)

getRuleByNameAndNamespace

public RuleDefinition getRuleByNameAndNamespace(String name,
                                                String namespace)
This method retrieves a rule from the repository given the name of the rule and namespace.

Specified by:
getRuleByNameAndNamespace in interface RuleBoService
Parameters:
name - the name of the Rule to retrieve.
namespace - the namespace that the rule is under.
Returns:
an 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.
See Also:
RuleBoService.getRuleByRuleId(java.lang.String)

getRuleAttributeById

public org.kuali.rice.krms.impl.repository.RuleAttributeBo getRuleAttributeById(String attrId)
This method ...

See Also:
org.kuali.rice.krms.impl.repository.RuleBoService#getRuleAttributeById(java.lang.String)

from

public org.kuali.rice.krms.impl.repository.RuleBo from(RuleDefinition rule)
Converts a immutable RuleDefinition to its mutable RuleBo counterpart.

Parameters:
rule - the immutable object.
Returns:
a RuleBo the mutable RuleBo.

setBusinessObjectService

public void setBusinessObjectService(BusinessObjectService businessObjectService)
Sets the businessObjectService attribute value.

Parameters:
businessObjectService - The businessObjectService to set.

convertListOfBosToImmutables

public List<RuleDefinition> convertListOfBosToImmutables(Collection<org.kuali.rice.krms.impl.repository.RuleBo> ruleBos)
Converts a List to an Unmodifiable List

Parameters:
ruleBos - a mutable List to made completely immutable.
Returns:
An unmodifiable List

getAttributeDefinitionService

protected KrmsAttributeDefinitionService getAttributeDefinitionService()


Copyright © 2005-2014 The Kuali Foundation. All Rights Reserved.