|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kuali.rice.krms.impl.repository.RuleRepositoryServiceImpl
org.kuali.rice.krms.impl.repository.RuleManagementServiceImpl
public class RuleManagementServiceImpl
The implementation of RuleManagementService operations facilitate management of rules and
associated information.
| 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 |
|---|
public RuleManagementServiceImpl()
| Method Detail |
|---|
public void setReferenceObjectBindingBoServiceImpl(ReferenceObjectBindingBoServiceImpl referenceObjectBindingBoServiceImpl)
public void setAgendaBoServiceImpl(AgendaBoServiceImpl agendaBoServiceImpl)
public void setRuleBoServiceImpl(RuleBoServiceImpl ruleBoServiceImpl)
public void setPropositionBoServiceImpl(PropositionBoServiceImpl propositionBoServiceImpl)
public void setNaturalLanguageUsageBoService(NaturalLanguageUsageBoServiceImpl naturalLanguageUsageBoService)
public void setNaturalLanguageTemplateBoService(NaturalLanguageTemplateBoServiceImpl naturalLanguageTemplateBoService)
public ReferenceObjectBinding createReferenceObjectBinding(ReferenceObjectBinding referenceObjectDefinition)
throws RiceIllegalArgumentException
RuleManagementService
createReferenceObjectBinding in interface RuleManagementServicereferenceObjectDefinition - data for the new ReferenceObjectBinding to be created
RiceIllegalArgumentException - if the given referenceObjectDefinition
is null or invalid
public ReferenceObjectBinding getReferenceObjectBinding(String id)
throws RiceIllegalArgumentException
RuleManagementService
getReferenceObjectBinding in interface RuleManagementServiceid - identifier of the ReferenceObjectBinding to be retrieved
RiceIllegalArgumentException - if the given id is blank or
invalid
public List<ReferenceObjectBinding> getReferenceObjectBindings(List<String> ids)
throws RiceIllegalArgumentException
RuleManagementService
getReferenceObjectBindings in interface RuleManagementServiceids - identifiers of the ReferenceObjectBinding to be retrieved
RiceIllegalArgumentException - if one or more ids in the give list
is blank or invalid
public List<ReferenceObjectBinding> findReferenceObjectBindingsByReferenceDiscriminatorType(String referenceObjectReferenceDiscriminatorType)
throws RiceIllegalArgumentException
RuleManagementService
findReferenceObjectBindingsByReferenceDiscriminatorType in interface RuleManagementServicereferenceObjectReferenceDiscriminatorType - reference object type
RiceIllegalArgumentException - if the given referenceObjectReferenceDiscriminatorType is
blank or invalid
public List<ReferenceObjectBinding> findReferenceObjectBindingsByKrmsDiscriminatorType(String referenceObjectKrmsDiscriminatorType)
throws RiceIllegalArgumentException
RuleManagementService
findReferenceObjectBindingsByKrmsDiscriminatorType in interface RuleManagementServicereferenceObjectKrmsDiscriminatorType - reference object type
RiceIllegalArgumentException - if the given referenceObjectKrmsDiscriminatorType is
blank or invalid
public List<ReferenceObjectBinding> findReferenceObjectBindingsByKrmsObject(String krmsObjectId)
throws RiceIllegalArgumentException
RuleManagementService
findReferenceObjectBindingsByKrmsObject in interface RuleManagementServicekrmsObjectId - identifier of the KRMS obj
RiceIllegalArgumentException - if the given krmsObjectId is blank or
invalid
public void updateReferenceObjectBinding(ReferenceObjectBinding referenceObjectBindingDefinition)
throws RiceIllegalArgumentException
RuleManagementService
updateReferenceObjectBinding in interface RuleManagementServicereferenceObjectBindingDefinition - DTO with updated info and id of the object to be updated
RiceIllegalArgumentException - if the given referenceObjectBindingDefinition
is null or invalid
public void deleteReferenceObjectBinding(String id)
throws RiceIllegalArgumentException
RuleManagementService
deleteReferenceObjectBinding in interface RuleManagementServiceid - identifier of the object to be deleted
RiceIllegalArgumentException - if the given id is null or invalid
public List<String> findReferenceObjectBindingIds(QueryByCriteria queryByCriteria)
throws RiceIllegalArgumentException
RuleManagementServiceThis method returns it's results as a List of ReferenceObjectBinding ids that match the given search criteria.
findReferenceObjectBindingIds in interface RuleManagementServicequeryByCriteria - the criteria. Cannot be null.
RiceIllegalArgumentException - if the queryByCriteria is null
public AgendaDefinition createAgenda(AgendaDefinition agendaDefinition)
throws RiceIllegalArgumentException
RuleManagementService
createAgenda in interface RuleManagementServiceagendaDefinition - data for the new Agenda to be created
RiceIllegalArgumentException - if the given agendaDefinition is
null or invalid
public AgendaDefinition getAgenda(String id)
throws RiceIllegalArgumentException
RuleManagementService
getAgenda in interface RuleManagementServiceid - identifier for the Agenda
RiceIllegalArgumentException - if the given id is null or invalid
public List<AgendaDefinition> getAgendasByContext(String contextId)
throws RiceIllegalArgumentException
RuleManagementService
getAgendasByContext in interface RuleManagementServicecontextId - context of interest
RiceIllegalArgumentException - if the given contextId is null or
invalid
public void updateAgenda(AgendaDefinition agendaDefinition)
throws RiceIllegalArgumentException
RuleManagementService
updateAgenda in interface RuleManagementServiceagendaDefinition - DTO with updated info and identifier of the object to be updated
RiceIllegalArgumentException - if the given agendaDefinition is
null or invalid
public void deleteAgenda(String id)
throws RiceIllegalArgumentException
RuleManagementService
deleteAgenda in interface RuleManagementServiceid - identifier of the object to be deleted
RiceIllegalArgumentException - if the given id is null or invalid
public AgendaItemDefinition createAgendaItem(AgendaItemDefinition agendaItemDefinition)
throws RiceIllegalArgumentException
RuleManagementService
createAgendaItem in interface RuleManagementServiceagendaItemDefinition - data for the new AgendaItem to be created
RiceIllegalArgumentException - if the given agendaItemDefinition is
null or invalid
public AgendaItemDefinition getAgendaItem(String id)
throws RiceIllegalArgumentException
RuleManagementService
getAgendaItem in interface RuleManagementServiceid - identifier of the AgendaItem
RiceIllegalArgumentException - if the given id is null or invalid
public List<AgendaDefinition> getAgendasByType(String typeId)
throws RiceIllegalArgumentException
RuleManagementService
getAgendasByType in interface RuleManagementServicetypeId - type of the Agenda
RiceIllegalArgumentException - if the given typeId is null or
invalid
public List<AgendaDefinition> getAgendasByTypeAndContext(String typeId,
String contextId)
throws RiceIllegalArgumentException
RuleManagementService
getAgendasByTypeAndContext in interface RuleManagementServicetypeId - type of the AgendacontextId - context of interest
RiceIllegalArgumentException - if the given typeId or contextId
null or invalid
public List<AgendaItemDefinition> getAgendaItemsByType(String typeId)
throws RiceIllegalArgumentException
RuleManagementService
getAgendaItemsByType in interface RuleManagementServicetypeId - type of the AgendaItems
RiceIllegalArgumentException - if the given typeId is null or
invalid
public List<AgendaItemDefinition> getAgendaItemsByContext(String contextId)
throws RiceIllegalArgumentException
RuleManagementService
getAgendaItemsByContext in interface RuleManagementServicecontextId - context identifier
RiceIllegalArgumentException - if the given contextId is null or
invalid
public List<AgendaItemDefinition> getAgendaItemsByTypeAndContext(String typeId,
String contextId)
throws RiceIllegalArgumentException
RuleManagementService
getAgendaItemsByTypeAndContext in interface RuleManagementServicetypeId - type of the AgendascontextId - context with which the Agendas are associated
RiceIllegalArgumentException - if the given typeId or contextId
null or invalid
public void deleteAgendaItem(String id)
throws RiceIllegalArgumentException
RuleManagementService
deleteAgendaItem in interface RuleManagementServiceid - identifier of the AgendaItem to be deleted
RiceIllegalArgumentException - if the given id is null or invalid
public void updateAgendaItem(AgendaItemDefinition agendaItemDefinition)
throws RiceIllegalArgumentException
RuleManagementService
updateAgendaItem in interface RuleManagementServiceagendaItemDefinition - updated data for the AgendaItem, with id of the object to be updated
RiceIllegalArgumentException - if the given agendaItemDefinition
is null or invalid
public RuleDefinition createRule(RuleDefinition ruleDefinition)
throws RiceIllegalArgumentException
RuleManagementService
createRule in interface RuleManagementServiceruleDefinition - data for the new Rule to be created
RiceIllegalArgumentException - if the given ruleDefinition is null
or invalid
public void updateRule(RuleDefinition ruleDefinition)
throws RiceIllegalArgumentException
RuleManagementService
updateRule in interface RuleManagementServiceruleDefinition - updated Rule information, object specified by the id
RiceIllegalArgumentException - if the given ruleDefinition is null
or invalid
public void deleteRule(String id)
throws RiceIllegalArgumentException
RuleManagementService
deleteRule in interface RuleManagementServiceid - identifier of the Rule to be deleted
RiceIllegalArgumentException - if the given id is null or invalid
public PropositionDefinition createProposition(PropositionDefinition propositionDefinition)
throws RiceIllegalArgumentException
RuleManagementService
createProposition in interface RuleManagementServicepropositionDefinition - data for the new Proposition to be created
RiceIllegalArgumentException - if the given propositionDefinition
is null or invalid
public PropositionDefinition getProposition(String id)
throws RiceIllegalArgumentException
RuleManagementService
getProposition in interface RuleManagementServiceid - identifier of the Proposition to be retrieved
RiceIllegalArgumentException - if the given id is null or invalid
public Set<PropositionDefinition> getPropositionsByType(String typeId)
throws RiceIllegalArgumentException
RuleManagementService
getPropositionsByType in interface RuleManagementServicetypeId - type of the Propositions to be retrieved
RiceIllegalArgumentException - if the given typeId is null or
invalid
public Set<PropositionDefinition> getPropositionsByRule(String ruleId)
throws RiceIllegalArgumentException
RuleManagementService
getPropositionsByRule in interface RuleManagementServiceruleId - identifier of the Rule to which the Propositions are associated with
RiceIllegalArgumentException - if the given ruleId is null or
invalid
public void updateProposition(PropositionDefinition propositionDefinition)
throws RiceIllegalArgumentException
RuleManagementService
updateProposition in interface RuleManagementServicepropositionDefinition - updated data for the Proposition, id specifies the object to be updated
RiceIllegalArgumentException - if the given propositionDefinition
is null or invalid
public void deleteProposition(String id)
throws RiceIllegalArgumentException
RuleManagementService
deleteProposition in interface RuleManagementServiceid - identifier of the Proposition to be deleted
RiceIllegalArgumentException - if the given id is null or invalid
public NaturalLanguageUsage createNaturalLanguageUsage(NaturalLanguageUsage naturalLanguageUsage)
throws RiceIllegalArgumentException
RuleManagementService
createNaturalLanguageUsage in interface RuleManagementServicenaturalLanguageUsage - data for the new NaturalLanguageUsage to be created
RiceIllegalArgumentException - if the given naturalLanguageUsage is
null or invalid
public NaturalLanguageUsage getNaturalLanguageUsage(String id)
throws RiceIllegalArgumentException
RuleManagementService
getNaturalLanguageUsage in interface RuleManagementServiceid - identifier of the NaturalLanguageUsage to be retrieved
RiceIllegalArgumentException - if the given id is null or invalid
public void updateNaturalLanguageUsage(NaturalLanguageUsage naturalLanguageUsage)
throws RiceIllegalArgumentException
RuleManagementService
updateNaturalLanguageUsage in interface RuleManagementServicenaturalLanguageUsage - updated data for the NaturalLanguageUsage object specified by the id
RiceIllegalArgumentException - if the given naturalLanguageUsage is
null or invalid
public void deleteNaturalLanguageUsageType(String naturalLanguageUsageId)
throws RiceIllegalArgumentException
RuleManagementService
deleteNaturalLanguageUsageType in interface RuleManagementServicenaturalLanguageUsageId - identifier of the NaturalLanguageUsage to be deleted
RiceIllegalArgumentException - if the given naturalLanguageUsageId is null or invalid
public String getNaturalLanguageForType(String naturalLanguageUsageId,
String typeId,
String krmsObjectId,
String languageCode)
throws RiceIllegalArgumentException
RuleManagementService
getNaturalLanguageForType in interface RuleManagementServicenaturalLanguageUsageId - Natural language usage informationtypeId - KRMS object type id (for example, could refer to agenda
or proposition)krmsObjectId - KRMS object identifierlanguageCode - desired
RiceIllegalArgumentException - if the given naturalLanguageUsageId, typeId,
krmsObjectId or language is null or
invalidpublic Set<NaturalLanguageUsage> getNaturalLanguageUsages()
RuleManagementService
getNaturalLanguageUsages in interface RuleManagementServicepublic void setBusinessObjectService(BusinessObjectService businessObjectService)
setBusinessObjectService in class RuleRepositoryServiceImplbusinessObjectService - The businessObjectService to set.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||