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

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

public class RuleManagementServiceImpl
extends RuleRepositoryServiceImpl
implements RuleManagementService

The implementation of RuleManagementService operations facilitate management of rules and associated information.

Author:
Kuali Rice Team (rice.collab@kuali.org)

Field Summary
 
Fields inherited from class org.kuali.rice.krms.impl.repository.RuleRepositoryServiceImpl
businessObjectService
 
Constructor Summary
RuleManagementServiceImpl()
           
 
Method Summary
 AgendaDefinition createAgenda(AgendaDefinition agendaDefinition)
          Create Agenda
 AgendaItemDefinition createAgendaItem(AgendaItemDefinition agendaItemDefinition)
          Create AgendaItem
 NaturalLanguageUsage createNaturalLanguageUsage(NaturalLanguageUsage naturalLanguageUsage)
          Create NaturalLanguageUsage
 PropositionDefinition createProposition(PropositionDefinition propositionDefinition)
          Create a Proposition
 ReferenceObjectBinding createReferenceObjectBinding(ReferenceObjectBinding referenceObjectDefinition)
          Create RefObject-KRMS object binding
 RuleDefinition createRule(RuleDefinition ruleDefinition)
          Create Rule
 void deleteAgenda(String id)
          Delete the specified Agenda
 void deleteAgendaItem(String id)
          Delete the specified AgendaItem
 void deleteNaturalLanguageUsageType(String naturalLanguageUsageId)
          Delete NaturalLanguageUsage
 void deleteProposition(String id)
          Delete the Proposition
 void deleteReferenceObjectBinding(String id)
          Delete the specified ReferenceObjectBinding object
 void deleteRule(String id)
          Delete the specified Rule
 List<String> findReferenceObjectBindingIds(QueryByCriteria queryByCriteria)
          Query for ReferenceObjectBinding ids based on the given search criteria which is a Map of ReferenceObjectBinding field names to values.
 List<ReferenceObjectBinding> findReferenceObjectBindingsByKrmsDiscriminatorType(String referenceObjectKrmsDiscriminatorType)
          Retrieves list of ReferenceObjectBinding objects for the given krms obj discriminator type
 List<ReferenceObjectBinding> findReferenceObjectBindingsByKrmsObject(String krmsObjectId)
          Retrieves list of ReferenceObjectBinding objects for the given KRMS obj id.
 List<ReferenceObjectBinding> findReferenceObjectBindingsByReferenceDiscriminatorType(String referenceObjectReferenceDiscriminatorType)
          Retrieves list of ReferenceObjectBinding objects for the given ref obj discriminator type
 AgendaDefinition getAgenda(String id)
          Retrieve Agenda for the specified id
 AgendaItemDefinition getAgendaItem(String id)
          Retrieve AgendaItem by the specified identifier
 List<AgendaItemDefinition> getAgendaItemsByContext(String contextId)
          Retrieve AgendaItems associated with a context
 List<AgendaItemDefinition> getAgendaItemsByType(String typeId)
          Retrieve AgendaItems by specified type
 List<AgendaItemDefinition> getAgendaItemsByTypeAndContext(String typeId, String contextId)
          Retrieve AgendaItems by type and context
 List<AgendaDefinition> getAgendasByContext(String contextId)
          Retrieve Agendas associated with the specified context
 List<AgendaDefinition> getAgendasByType(String typeId)
          Retrieve Agendas of the specified type
 List<AgendaDefinition> getAgendasByTypeAndContext(String typeId, String contextId)
          Retrieve Agendas of the specified type and context
 String getNaturalLanguageForType(String naturalLanguageUsageId, String typeId, String krmsObjectId, String languageCode)
          Translates and retrieves a NaturalLanguage for a given KRMS object (e.g, proposition or agenda), NaturalLanguage usage type (context) and language into natural language TODO: Add appropriate caching annotation
 NaturalLanguageUsage getNaturalLanguageUsage(String id)
          Retrieve NaturalLanguageUsage specified by the identifier
 Set<NaturalLanguageUsage> getNaturalLanguageUsages()
          Retrieve all the NaturalLanguageUsages
 PropositionDefinition getProposition(String id)
          Retrieve Proposition specified by the identifier
 Set<PropositionDefinition> getPropositionsByRule(String ruleId)
          Retrieve Propositions associated with the specified Rule
 Set<PropositionDefinition> getPropositionsByType(String typeId)
          Retrieve Propositions of the specified type
 ReferenceObjectBinding getReferenceObjectBinding(String id)
          Retrieve referenceObjectBinding given a specific id
 List<ReferenceObjectBinding> getReferenceObjectBindings(List<String> ids)
          Retrieve list of ReferenceObjectBinding objects given ids
 void setAgendaBoServiceImpl(AgendaBoServiceImpl agendaBoServiceImpl)
           
 void setBusinessObjectService(BusinessObjectService businessObjectService)
          Sets the businessObjectService property.
 void setNaturalLanguageTemplateBoService(NaturalLanguageTemplateBoServiceImpl naturalLanguageTemplateBoService)
           
 void setNaturalLanguageUsageBoService(NaturalLanguageUsageBoServiceImpl naturalLanguageUsageBoService)
           
 void setPropositionBoServiceImpl(PropositionBoServiceImpl propositionBoServiceImpl)
           
 void setReferenceObjectBindingBoServiceImpl(ReferenceObjectBindingBoServiceImpl referenceObjectBindingBoServiceImpl)
           
 void setRuleBoServiceImpl(RuleBoServiceImpl ruleBoServiceImpl)
           
 void updateAgenda(AgendaDefinition agendaDefinition)
          Update the Agenda specified by the identifier in the input DTO
 void updateAgendaItem(AgendaItemDefinition agendaItemDefinition)
          Update an AgendaItem
 void updateNaturalLanguageUsage(NaturalLanguageUsage naturalLanguageUsage)
          Update NaturalLanguageUsage
 void updateProposition(PropositionDefinition propositionDefinition)
          Update the Proposition
 void updateReferenceObjectBinding(ReferenceObjectBinding referenceObjectBindingDefinition)
          Update the ReferenceObjectBinding object specified by the identifier in the given DTO
 void updateRule(RuleDefinition ruleDefinition)
          Update the Rule specified by the identifier in the DTO
 
Methods inherited from class org.kuali.rice.krms.impl.repository.RuleRepositoryServiceImpl
getAgendaTree, getAgendaTrees, getBusinessObjectService, getCriteriaLookupService, getRule, getRules, selectContext, setCriteriaLookupService
 
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.krms.api.repository.RuleManagementService
getRule, getRules
 
Methods inherited from interface org.kuali.rice.krms.api.repository.RuleRepositoryService
getAgendaTree, getAgendaTrees, selectContext
 

Constructor Detail

RuleManagementServiceImpl

public RuleManagementServiceImpl()
Method Detail

setReferenceObjectBindingBoServiceImpl

public void setReferenceObjectBindingBoServiceImpl(ReferenceObjectBindingBoServiceImpl referenceObjectBindingBoServiceImpl)

setAgendaBoServiceImpl

public void setAgendaBoServiceImpl(AgendaBoServiceImpl agendaBoServiceImpl)

setRuleBoServiceImpl

public void setRuleBoServiceImpl(RuleBoServiceImpl ruleBoServiceImpl)

setPropositionBoServiceImpl

public void setPropositionBoServiceImpl(PropositionBoServiceImpl propositionBoServiceImpl)

setNaturalLanguageUsageBoService

public void setNaturalLanguageUsageBoService(NaturalLanguageUsageBoServiceImpl naturalLanguageUsageBoService)

setNaturalLanguageTemplateBoService

public void setNaturalLanguageTemplateBoService(NaturalLanguageTemplateBoServiceImpl naturalLanguageTemplateBoService)

createReferenceObjectBinding

public ReferenceObjectBinding createReferenceObjectBinding(ReferenceObjectBinding referenceObjectDefinition)
                                                    throws RiceIllegalArgumentException
Description copied from interface: RuleManagementService
Create RefObject-KRMS object binding

Specified by:
createReferenceObjectBinding in interface RuleManagementService
Parameters:
referenceObjectDefinition - data for the new ReferenceObjectBinding to be created
Returns:
newly created ReferenceObjectBinding
Throws:
RiceIllegalArgumentException - if the given referenceObjectDefinition is null or invalid

getReferenceObjectBinding

public ReferenceObjectBinding getReferenceObjectBinding(String id)
                                                 throws RiceIllegalArgumentException
Description copied from interface: RuleManagementService
Retrieve referenceObjectBinding given a specific id

Specified by:
getReferenceObjectBinding in interface RuleManagementService
Parameters:
id - identifier of the ReferenceObjectBinding to be retrieved
Returns:
a ReferenceObjectBinding with the given id value
Throws:
RiceIllegalArgumentException - if the given id is blank or invalid

getReferenceObjectBindings

public List<ReferenceObjectBinding> getReferenceObjectBindings(List<String> ids)
                                                        throws RiceIllegalArgumentException
Description copied from interface: RuleManagementService
Retrieve list of ReferenceObjectBinding objects given ids

Specified by:
getReferenceObjectBindings in interface RuleManagementService
Parameters:
ids - identifiers of the ReferenceObjectBinding to be retrieved
Returns:
list of ReferenceObjectBinding objects for the given ids
Throws:
RiceIllegalArgumentException - if one or more ids in the give list is blank or invalid

findReferenceObjectBindingsByReferenceDiscriminatorType

public List<ReferenceObjectBinding> findReferenceObjectBindingsByReferenceDiscriminatorType(String referenceObjectReferenceDiscriminatorType)
                                                                                     throws RiceIllegalArgumentException
Description copied from interface: RuleManagementService
Retrieves list of ReferenceObjectBinding objects for the given ref obj discriminator type

Specified by:
findReferenceObjectBindingsByReferenceDiscriminatorType in interface RuleManagementService
Parameters:
referenceObjectReferenceDiscriminatorType - reference object type
Returns:
list of ReferenceObjectBinding objects for the given discriminator type
Throws:
RiceIllegalArgumentException - if the given referenceObjectReferenceDiscriminatorType is blank or invalid

findReferenceObjectBindingsByKrmsDiscriminatorType

public List<ReferenceObjectBinding> findReferenceObjectBindingsByKrmsDiscriminatorType(String referenceObjectKrmsDiscriminatorType)
                                                                                throws RiceIllegalArgumentException
Description copied from interface: RuleManagementService
Retrieves list of ReferenceObjectBinding objects for the given krms obj discriminator type

Specified by:
findReferenceObjectBindingsByKrmsDiscriminatorType in interface RuleManagementService
Parameters:
referenceObjectKrmsDiscriminatorType - reference object type
Returns:
list of ReferenceObjectBinding objects for the given discriminator type
Throws:
RiceIllegalArgumentException - if the given referenceObjectKrmsDiscriminatorType is blank or invalid

findReferenceObjectBindingsByKrmsObject

public List<ReferenceObjectBinding> findReferenceObjectBindingsByKrmsObject(String krmsObjectId)
                                                                     throws RiceIllegalArgumentException
Description copied from interface: RuleManagementService
Retrieves list of ReferenceObjectBinding objects for the given KRMS obj id.

Specified by:
findReferenceObjectBindingsByKrmsObject in interface RuleManagementService
Parameters:
krmsObjectId - identifier of the KRMS obj
Returns:
list of ReferenceObjectBinding objects for the given KRMS obj
Throws:
RiceIllegalArgumentException - if the given krmsObjectId is blank or invalid

updateReferenceObjectBinding

public void updateReferenceObjectBinding(ReferenceObjectBinding referenceObjectBindingDefinition)
                                  throws RiceIllegalArgumentException
Description copied from interface: RuleManagementService
Update the ReferenceObjectBinding object specified by the identifier in the given DTO

Specified by:
updateReferenceObjectBinding in interface RuleManagementService
Parameters:
referenceObjectBindingDefinition - DTO with updated info and id of the object to be updated
Throws:
RiceIllegalArgumentException - if the given referenceObjectBindingDefinition is null or invalid

deleteReferenceObjectBinding

public void deleteReferenceObjectBinding(String id)
                                  throws RiceIllegalArgumentException
Description copied from interface: RuleManagementService
Delete the specified ReferenceObjectBinding object

Specified by:
deleteReferenceObjectBinding in interface RuleManagementService
Parameters:
id - identifier of the object to be deleted
Throws:
RiceIllegalArgumentException - if the given id is null or invalid

findReferenceObjectBindingIds

public List<String> findReferenceObjectBindingIds(QueryByCriteria queryByCriteria)
                                           throws RiceIllegalArgumentException
Description copied from interface: RuleManagementService
Query for ReferenceObjectBinding ids based on the given search criteria which is a Map of ReferenceObjectBinding field names to values.

This method returns it's results as a List of ReferenceObjectBinding ids that match the given search criteria.

Specified by:
findReferenceObjectBindingIds in interface RuleManagementService
Parameters:
queryByCriteria - the criteria. Cannot be null.
Returns:
a list of ids matching the given criteria properties. An empty list is returned if an invalid or non-existent criteria is supplied.
Throws:
RiceIllegalArgumentException - if the queryByCriteria is null

createAgenda

public AgendaDefinition createAgenda(AgendaDefinition agendaDefinition)
                              throws RiceIllegalArgumentException
Description copied from interface: RuleManagementService
Create Agenda

Specified by:
createAgenda in interface RuleManagementService
Parameters:
agendaDefinition - data for the new Agenda to be created
Returns:
newly created Agenda
Throws:
RiceIllegalArgumentException - if the given agendaDefinition is null or invalid

getAgenda

public AgendaDefinition getAgenda(String id)
                           throws RiceIllegalArgumentException
Description copied from interface: RuleManagementService
Retrieve Agenda for the specified id

Specified by:
getAgenda in interface RuleManagementService
Parameters:
id - identifier for the Agenda
Returns:
specified Agenda
Throws:
RiceIllegalArgumentException - if the given id is null or invalid

getAgendasByContext

public List<AgendaDefinition> getAgendasByContext(String contextId)
                                           throws RiceIllegalArgumentException
Description copied from interface: RuleManagementService
Retrieve Agendas associated with the specified context

Specified by:
getAgendasByContext in interface RuleManagementService
Parameters:
contextId - context of interest
Returns:
list of Agendas associated with the context
Throws:
RiceIllegalArgumentException - if the given contextId is null or invalid

updateAgenda

public void updateAgenda(AgendaDefinition agendaDefinition)
                  throws RiceIllegalArgumentException
Description copied from interface: RuleManagementService
Update the Agenda specified by the identifier in the input DTO

Specified by:
updateAgenda in interface RuleManagementService
Parameters:
agendaDefinition - DTO with updated info and identifier of the object to be updated
Throws:
RiceIllegalArgumentException - if the given agendaDefinition is null or invalid

deleteAgenda

public void deleteAgenda(String id)
                  throws RiceIllegalArgumentException
Description copied from interface: RuleManagementService
Delete the specified Agenda

Specified by:
deleteAgenda in interface RuleManagementService
Parameters:
id - identifier of the object to be deleted
Throws:
RiceIllegalArgumentException - if the given id is null or invalid

createAgendaItem

public AgendaItemDefinition createAgendaItem(AgendaItemDefinition agendaItemDefinition)
                                      throws RiceIllegalArgumentException
Description copied from interface: RuleManagementService
Create AgendaItem

Specified by:
createAgendaItem in interface RuleManagementService
Parameters:
agendaItemDefinition - data for the new AgendaItem to be created
Returns:
newly created AgendaItem
Throws:
RiceIllegalArgumentException - if the given agendaItemDefinition is null or invalid

getAgendaItem

public AgendaItemDefinition getAgendaItem(String id)
                                   throws RiceIllegalArgumentException
Description copied from interface: RuleManagementService
Retrieve AgendaItem by the specified identifier

Specified by:
getAgendaItem in interface RuleManagementService
Parameters:
id - identifier of the AgendaItem
Returns:
AgendaItem specified by the identifier
Throws:
RiceIllegalArgumentException - if the given id is null or invalid

getAgendasByType

public List<AgendaDefinition> getAgendasByType(String typeId)
                                        throws RiceIllegalArgumentException
Description copied from interface: RuleManagementService
Retrieve Agendas of the specified type

Specified by:
getAgendasByType in interface RuleManagementService
Parameters:
typeId - type of the Agenda
Returns:
list of Agendas of the specified type
Throws:
RiceIllegalArgumentException - if the given typeId is null or invalid

getAgendasByTypeAndContext

public List<AgendaDefinition> getAgendasByTypeAndContext(String typeId,
                                                         String contextId)
                                                  throws RiceIllegalArgumentException
Description copied from interface: RuleManagementService
Retrieve Agendas of the specified type and context

Specified by:
getAgendasByTypeAndContext in interface RuleManagementService
Parameters:
typeId - type of the Agenda
contextId - context of interest
Returns:
list of Agendas associated with the specified type and context
Throws:
RiceIllegalArgumentException - if the given typeId or contextId null or invalid

getAgendaItemsByType

public List<AgendaItemDefinition> getAgendaItemsByType(String typeId)
                                                throws RiceIllegalArgumentException
Description copied from interface: RuleManagementService
Retrieve AgendaItems by specified type

Specified by:
getAgendaItemsByType in interface RuleManagementService
Parameters:
typeId - type of the AgendaItems
Returns:
list of AgendaItems of the specified type
Throws:
RiceIllegalArgumentException - if the given typeId is null or invalid

getAgendaItemsByContext

public List<AgendaItemDefinition> getAgendaItemsByContext(String contextId)
                                                   throws RiceIllegalArgumentException
Description copied from interface: RuleManagementService
Retrieve AgendaItems associated with a context

Specified by:
getAgendaItemsByContext in interface RuleManagementService
Parameters:
contextId - context identifier
Returns:
list of AgendaItems associated with a context
Throws:
RiceIllegalArgumentException - if the given contextId is null or invalid

getAgendaItemsByTypeAndContext

public List<AgendaItemDefinition> getAgendaItemsByTypeAndContext(String typeId,
                                                                 String contextId)
                                                          throws RiceIllegalArgumentException
Description copied from interface: RuleManagementService
Retrieve AgendaItems by type and context

Specified by:
getAgendaItemsByTypeAndContext in interface RuleManagementService
Parameters:
typeId - type of the Agendas
contextId - context with which the Agendas are associated
Returns:
list of AgendaItems of the specified type and context
Throws:
RiceIllegalArgumentException - if the given typeId or contextId null or invalid

deleteAgendaItem

public void deleteAgendaItem(String id)
                      throws RiceIllegalArgumentException
Description copied from interface: RuleManagementService
Delete the specified AgendaItem

Specified by:
deleteAgendaItem in interface RuleManagementService
Parameters:
id - identifier of the AgendaItem to be deleted
Throws:
RiceIllegalArgumentException - if the given id is null or invalid

updateAgendaItem

public void updateAgendaItem(AgendaItemDefinition agendaItemDefinition)
                      throws RiceIllegalArgumentException
Description copied from interface: RuleManagementService
Update an AgendaItem

Specified by:
updateAgendaItem in interface RuleManagementService
Parameters:
agendaItemDefinition - updated data for the AgendaItem, with id of the object to be updated
Throws:
RiceIllegalArgumentException - if the given agendaItemDefinition is null or invalid

createRule

public RuleDefinition createRule(RuleDefinition ruleDefinition)
                          throws RiceIllegalArgumentException
Description copied from interface: RuleManagementService
Create Rule

Specified by:
createRule in interface RuleManagementService
Parameters:
ruleDefinition - data for the new Rule to be created
Returns:
newly created Rule
Throws:
RiceIllegalArgumentException - if the given ruleDefinition is null or invalid

updateRule

public void updateRule(RuleDefinition ruleDefinition)
                throws RiceIllegalArgumentException
Description copied from interface: RuleManagementService
Update the Rule specified by the identifier in the DTO

Specified by:
updateRule in interface RuleManagementService
Parameters:
ruleDefinition - updated Rule information, object specified by the id
Throws:
RiceIllegalArgumentException - if the given ruleDefinition is null or invalid

deleteRule

public void deleteRule(String id)
                throws RiceIllegalArgumentException
Description copied from interface: RuleManagementService
Delete the specified Rule

Specified by:
deleteRule in interface RuleManagementService
Parameters:
id - identifier of the Rule to be deleted
Throws:
RiceIllegalArgumentException - if the given id is null or invalid

createProposition

public PropositionDefinition createProposition(PropositionDefinition propositionDefinition)
                                        throws RiceIllegalArgumentException
Description copied from interface: RuleManagementService
Create a Proposition

Specified by:
createProposition in interface RuleManagementService
Parameters:
propositionDefinition - data for the new Proposition to be created
Returns:
newly created Proposition
Throws:
RiceIllegalArgumentException - if the given propositionDefinition is null or invalid

getProposition

public PropositionDefinition getProposition(String id)
                                     throws RiceIllegalArgumentException
Description copied from interface: RuleManagementService
Retrieve Proposition specified by the identifier

Specified by:
getProposition in interface RuleManagementService
Parameters:
id - identifier of the Proposition to be retrieved
Returns:
specified Proposition
Throws:
RiceIllegalArgumentException - if the given id is null or invalid

getPropositionsByType

public Set<PropositionDefinition> getPropositionsByType(String typeId)
                                                 throws RiceIllegalArgumentException
Description copied from interface: RuleManagementService
Retrieve Propositions of the specified type

Specified by:
getPropositionsByType in interface RuleManagementService
Parameters:
typeId - type of the Propositions to be retrieved
Returns:
list of Propositions of the specified type
Throws:
RiceIllegalArgumentException - if the given typeId is null or invalid

getPropositionsByRule

public Set<PropositionDefinition> getPropositionsByRule(String ruleId)
                                                 throws RiceIllegalArgumentException
Description copied from interface: RuleManagementService
Retrieve Propositions associated with the specified Rule

Specified by:
getPropositionsByRule in interface RuleManagementService
Parameters:
ruleId - identifier of the Rule to which the Propositions are associated with
Returns:
list of Propositions associated with the Rule
Throws:
RiceIllegalArgumentException - if the given ruleId is null or invalid

updateProposition

public void updateProposition(PropositionDefinition propositionDefinition)
                       throws RiceIllegalArgumentException
Description copied from interface: RuleManagementService
Update the Proposition

Specified by:
updateProposition in interface RuleManagementService
Parameters:
propositionDefinition - updated data for the Proposition, id specifies the object to be updated
Throws:
RiceIllegalArgumentException - if the given propositionDefinition is null or invalid

deleteProposition

public void deleteProposition(String id)
                       throws RiceIllegalArgumentException
Description copied from interface: RuleManagementService
Delete the Proposition

Specified by:
deleteProposition in interface RuleManagementService
Parameters:
id - identifier of the Proposition to be deleted
Throws:
RiceIllegalArgumentException - if the given id is null or invalid

createNaturalLanguageUsage

public NaturalLanguageUsage createNaturalLanguageUsage(NaturalLanguageUsage naturalLanguageUsage)
                                                throws RiceIllegalArgumentException
Description copied from interface: RuleManagementService
Create NaturalLanguageUsage

Specified by:
createNaturalLanguageUsage in interface RuleManagementService
Parameters:
naturalLanguageUsage - data for the new NaturalLanguageUsage to be created
Returns:
newly created NaturalLanguageUsage
Throws:
RiceIllegalArgumentException - if the given naturalLanguageUsage is null or invalid

getNaturalLanguageUsage

public NaturalLanguageUsage getNaturalLanguageUsage(String id)
                                             throws RiceIllegalArgumentException
Description copied from interface: RuleManagementService
Retrieve NaturalLanguageUsage specified by the identifier

Specified by:
getNaturalLanguageUsage in interface RuleManagementService
Parameters:
id - identifier of the NaturalLanguageUsage to be retrieved
Returns:
NaturalLanguageUsage specified by the identifier
Throws:
RiceIllegalArgumentException - if the given id is null or invalid

updateNaturalLanguageUsage

public void updateNaturalLanguageUsage(NaturalLanguageUsage naturalLanguageUsage)
                                throws RiceIllegalArgumentException
Description copied from interface: RuleManagementService
Update NaturalLanguageUsage

Specified by:
updateNaturalLanguageUsage in interface RuleManagementService
Parameters:
naturalLanguageUsage - updated data for the NaturalLanguageUsage object specified by the id
Throws:
RiceIllegalArgumentException - if the given naturalLanguageUsage is null or invalid

deleteNaturalLanguageUsageType

public void deleteNaturalLanguageUsageType(String naturalLanguageUsageId)
                                    throws RiceIllegalArgumentException
Description copied from interface: RuleManagementService
Delete NaturalLanguageUsage

Specified by:
deleteNaturalLanguageUsageType in interface RuleManagementService
Parameters:
naturalLanguageUsageId - identifier of the NaturalLanguageUsage to be deleted
Throws:
RiceIllegalArgumentException - if the given naturalLanguageUsageId is null or invalid

getNaturalLanguageForType

public String getNaturalLanguageForType(String naturalLanguageUsageId,
                                        String typeId,
                                        String krmsObjectId,
                                        String languageCode)
                                 throws RiceIllegalArgumentException
Description copied from interface: RuleManagementService
Translates and retrieves a NaturalLanguage for a given KRMS object (e.g, proposition or agenda), NaturalLanguage usage type (context) and language into natural language TODO: Add appropriate caching annotation

Specified by:
getNaturalLanguageForType in interface RuleManagementService
Parameters:
naturalLanguageUsageId - Natural language usage information
typeId - KRMS object type id (for example, could refer to agenda or proposition)
krmsObjectId - KRMS object identifier
languageCode - desired
Returns:
natural language corresponding to the NaturalLanguage usage, KRMS object id, KRMS object type and desired language
Throws:
RiceIllegalArgumentException - if the given naturalLanguageUsageId, typeId, krmsObjectId or language is null or invalid

getNaturalLanguageUsages

public Set<NaturalLanguageUsage> getNaturalLanguageUsages()
Description copied from interface: RuleManagementService
Retrieve all the NaturalLanguageUsages

Specified by:
getNaturalLanguageUsages in interface RuleManagementService
Returns:
list of NaturalLanguageUsages

setBusinessObjectService

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

Overrides:
setBusinessObjectService in class RuleRepositoryServiceImpl
Parameters:
businessObjectService - The businessObjectService to set.


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