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

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

public class RuleRepositoryServiceImpl
extends Object
implements RuleRepositoryService


Field Summary
protected  BusinessObjectService businessObjectService
           
 
Constructor Summary
RuleRepositoryServiceImpl()
           
 
Method Summary
 AgendaTreeDefinition getAgendaTree(String agendaId)
          Retrieves the agenda tree for the given agendaId.
 List<AgendaTreeDefinition> getAgendaTrees(List<String> agendaIds)
          Retrieves all of the agendas trees for the given list of agendaIds.
protected  BusinessObjectService getBusinessObjectService()
           
protected  CriteriaLookupService getCriteriaLookupService()
           
 RuleDefinition getRule(String ruleId)
          Retrieves the rule for the given ruleId.
 List<RuleDefinition> getRules(List<String> ruleIds)
          Retrieves all of the rules for the given list of ruleIds.
 ContextDefinition selectContext(ContextSelectionCriteria contextSelectionCriteria)
          This overridden method ...
 void setBusinessObjectService(BusinessObjectService businessObjectService)
          Sets the businessObjectService property.
 void setCriteriaLookupService(CriteriaLookupService criteriaLookupService)
          Sets the criteriaLookupService attribute value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

businessObjectService

protected BusinessObjectService businessObjectService
Constructor Detail

RuleRepositoryServiceImpl

public RuleRepositoryServiceImpl()
Method Detail

selectContext

public ContextDefinition selectContext(ContextSelectionCriteria contextSelectionCriteria)
This overridden method ...

Specified by:
selectContext in interface RuleRepositoryService
Returns:
See Also:
RuleRepositoryService.selectContext(org.kuali.rice.krms.api.repository.context.ContextSelectionCriteria)

getAgendaTree

public AgendaTreeDefinition getAgendaTree(String agendaId)
Description copied from interface: RuleRepositoryService
Retrieves the agenda tree for the given agendaId. The agenda tree includes the entire agenda definition in the appropriate order and with the defined agenda branching.

Specified by:
getAgendaTree in interface RuleRepositoryService
Parameters:
agendaId - the id of the agenda for which to retrieve the agenda tree
Returns:
the agenda tree, or null if no agenda could be located for the given agendaId

getAgendaTrees

public List<AgendaTreeDefinition> getAgendaTrees(List<String> agendaIds)
Description copied from interface: RuleRepositoryService
Retrieves all of the agendas trees for the given list of agendaIds. The agenda tree includes the entire agenda definition in the appropriate order and with the defined agenda branching.

The list which is returned from this operation may not be the same size as the list which is passed to this method. If an agenda doesn't exist for a given agenda id then no result for that id will be returned in the list. As a result of this, the returned list can be empty, but it will never be null.

Specified by:
getAgendaTrees in interface RuleRepositoryService
Parameters:
agendaIds - the list of agenda ids for which to retrieve the agenda trees
Returns:
the list of agenda trees for the given ids, this list will only contain agenda trees for the ids that were resolved successfully, it will never return null but could return an empty list if no agenda trees could be loaded for the given set of ids

getRule

public RuleDefinition getRule(String ruleId)
Description copied from interface: RuleRepositoryService
Retrieves the rule for the given ruleId. The rule includes the propositions which define the condition that is to be evaluated on the rule. It also defines a collection of actions which will be invoked if the rule succeeds.

Specified by:
getRule in interface RuleRepositoryService
Parameters:
ruleId - the id of the rule to retrieve
Returns:
the rule definition, or null if no rule could be located for the given ruleId

getRules

public List<RuleDefinition> getRules(List<String> ruleIds)
Description copied from interface: RuleRepositoryService
Retrieves all of the rules for the given list of ruleIds. The rule includes the propositions which define the condition that is to be evaluated on the rule. It also defines a collection of actions which will be invoked if the rule succeeds.

The list which is returned from this operation may not be the same size as the list which is passed to this method. If a rule doesn't exist for a given rule id then no result for that id will be returned in the list. As a result of this, the returned list can be empty, but it will never be null.

Specified by:
getRules in interface RuleRepositoryService
Parameters:
ruleIds - the list of rule ids for which to retrieve the rules
Returns:
the list of rules for the given ids, this list will only contain rules for the ids that were resolved successfully, it will never return null but could return an empty list if no rules could be loaded for the given set of ids

setBusinessObjectService

public void setBusinessObjectService(BusinessObjectService businessObjectService)
Sets the businessObjectService property.

Parameters:
businessObjectService - The businessObjectService to set.

getBusinessObjectService

protected BusinessObjectService getBusinessObjectService()

setCriteriaLookupService

public void setCriteriaLookupService(CriteriaLookupService criteriaLookupService)
Sets the criteriaLookupService attribute value.

Parameters:
criteriaLookupService - The criteriaLookupService to set.

getCriteriaLookupService

protected CriteriaLookupService getCriteriaLookupService()


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