|
||||||||||
| 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 | |
|---|---|
ActionDefinition |
createAction(ActionDefinition actionDefinition)
Create Action |
AgendaDefinition |
createAgenda(AgendaDefinition agendaDefinition)
Create Agenda and an empty first item |
AgendaItemDefinition |
createAgendaItem(AgendaItemDefinition agendaItemDefinition)
Create AgendaItem |
ContextDefinition |
createContext(ContextDefinition contextDefinition)
Create Context |
NaturalLanguageTemplate |
createNaturalLanguageTemplate(NaturalLanguageTemplate naturalLanguageTemplate)
This will create a NaturalLanguageTemplate exactly like the
parameter passed in except the id will be assigned and create date/user
will be set. |
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 |
deleteAction(String id)
Delete the specified Action |
void |
deleteAgenda(String id)
Delete the specified Agenda |
void |
deleteAgendaItem(String id)
Delete the specified AgendaItem |
void |
deleteContext(String id)
Delete the specified Context |
void |
deleteNaturalLanguageTemplate(String naturalLanguageTemplateId)
Delete the NaturalLanguageTemplate with the given id. |
void |
deleteNaturalLanguageUsage(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> |
findActionIds(QueryByCriteria queryByCriteria)
Query for Action ids based on the given search criteria which is a Map of Action field names to values. |
List<String> |
findAgendaIds(QueryByCriteria queryByCriteria)
Query for Agenda ids based on the given search criteria which is a Map of Agenda field names to values. |
List<String> |
findContextIds(QueryByCriteria queryByCriteria)
Query for Context ids based on the given search criteria which is a Map of Context field names to values. |
AgendaDefinition |
findCreateAgenda(AgendaDefinition agendaDefinition)
Create Agenda if not found by contextId and name |
ContextDefinition |
findCreateContext(ContextDefinition contextDefinition)
find Create Context Searches for an existing context with the same name and namespace and returns it otherwise it creates the context. |
NaturalLanguageTemplate |
findNaturalLanguageTemplateByLanguageCodeTypeIdAndNluId(String languageCode,
String typeId,
String naturalLanguageUsageId)
|
List<NaturalLanguageTemplate> |
findNaturalLanguageTemplatesByLanguageCode(String languageCode)
Finds all the natural language templates for a particular language |
List<NaturalLanguageTemplate> |
findNaturalLanguageTemplatesByNaturalLanguageUsage(String naturalLanguageUsageId)
Find all the natural language templates for a particular usage |
List<NaturalLanguageTemplate> |
findNaturalLanguageTemplatesByTemplate(String template)
Find the natural language template using the actual text of the template. |
List<NaturalLanguageTemplate> |
findNaturalLanguageTemplatesByType(String typeId)
Find all the natural language templates of a particular type Template types are keys that identify the message that is to be expressed in different languages and in different usage scenarios |
List<String> |
findPropositionIds(QueryByCriteria queryByCriteria)
Query for Proposition ids based on the given search criteria which is a Map of Proposition field names to values. |
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 |
List<ReferenceObjectBinding> |
findReferenceObjectBindingsByReferenceObject(String referenceObjectReferenceDiscriminatorType,
String referenceObjectId)
Retrieves list of ReferenceObjectBinding objects for the given obj discriminator type and reference object id |
List<String> |
findRuleIds(QueryByCriteria queryByCriteria)
Query for Rule ids based on the given search criteria which is a Map of Rule field names to values. |
ActionDefinition |
getAction(String actionId)
Retrieves the action for the given actionId. |
ActionBoService |
getActionBoService()
get the ActionBoService |
List<ActionDefinition> |
getActions(List<String> actionIds)
Retrieves all of the actions for the given list of actionIds. |
AgendaDefinition |
getAgenda(String id)
Retrieve Agenda for the specified id |
AgendaBoService |
getAgendaBoService()
get the AgendaBoService |
AgendaDefinition |
getAgendaByNameAndContextId(String name,
String contextId)
Retrieves an Agenda from the repository based on the provided agenda name and context 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 |
ContextDefinition |
getContext(String id)
Retrieve Context for the specified id |
ContextBoService |
getContextBoService()
get the ContextBoService |
ContextDefinition |
getContextByNameAndNamespace(String name,
String namespace)
Retrieves an Context from the repository based on the provided context name and namespace. |
NaturalLanguageTemplate |
getNaturalLanguageTemplate(String naturalLanguageTemplateId)
Retrieves a NaturalLanguageTemplate from the repository based on the given id. |
NaturalLanguageTemplateBoService |
getNaturalLanguageTemplateBoService()
get the NaturalLanguageTemplateBoService |
NaturalLanguageUsage |
getNaturalLanguageUsage(String id)
Retrieve NaturalLanguageUsage specified by the identifier |
NaturalLanguageUsageBoService |
getNaturalLanguageUsageBoService()
set the NaturalLanguageUsageBoService |
NaturalLanguageUsage |
getNaturalLanguageUsageByNameAndNamespace(String name,
String namespace)
Retrieve NaturalLanguageUsage specified by name and namespace |
List<NaturalLanguageUsage> |
getNaturalLanguageUsagesByNamespace(String namespace)
Translates and retrieves a NaturalLanguage for a given KRMS object (e.g, proposition or agenda), NaturalLanguage usage type (context) and language into natural language |
PropositionDefinition |
getProposition(String id)
Retrieve Proposition specified by the identifier |
PropositionBoService |
getPropositionBoService()
get the PropositionBoService |
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 |
ReferenceObjectBindingBoService |
getReferenceObjectBindingBoService()
get the ReferenceObjectBindingBoService |
List<ReferenceObjectBinding> |
getReferenceObjectBindings(List<String> ids)
Retrieve list of ReferenceObjectBinding objects given ids |
RuleBoService |
getRuleBoService()
get the RuleBoService |
RuleDefinition |
getRuleByNameAndNamespace(String name,
String namespace)
Retrieves an Rule from the repository based on the provided rule name and namespace. |
SequenceAccessorService |
getSequenceAccessorService()
get the SequenceAccessorService |
NaturalLanguageTemplaterContract |
getTemplater()
get the NaturalLanguageTemplaterContract |
TermRepositoryService |
getTermRepositoryService()
get the TermRepositoryService |
TranslateBusinessMethods |
getTranslateBusinessMethods()
get the TranslateBusinessMethods |
void |
setActionBoService(ActionBoService actionBoService)
Set the ActionBoService |
void |
setAgendaBoService(AgendaBoService agendaBoService)
set the AgendaBoService |
void |
setBusinessObjectService(BusinessObjectService businessObjectService)
Sets the businessObjectService property. |
void |
setContextBoService(ContextBoService contextBoService)
set the ContextBoService |
void |
setNaturalLanguageTemplateBoService(NaturalLanguageTemplateBoService naturalLanguageTemplateBoService)
set the NaturalLanguageTemplateBoService |
void |
setNaturalLanguageUsageBoService(NaturalLanguageUsageBoService naturalLanguageUsageBoService)
set the NaturalLanguageUsageBoService |
void |
setPropositionBoService(PropositionBoService propositionBoService)
set the PropositionBoService |
void |
setReferenceObjectBindingBoService(ReferenceObjectBindingBoService referenceObjectBindingBoService)
set the ReferenceObjectBindingBoService |
void |
setRuleBoService(RuleBoService ruleBoService)
set the RuleBoService |
void |
setSequenceAccessorService(SequenceAccessorService sequenceAccessorService)
set the SequenceAccessorService |
void |
setTemplater(NaturalLanguageTemplaterContract templater)
set the NaturalLanguageTemplaterContract |
void |
setTermRepositoryService(TermRepositoryService termRepositoryService)
Set the TermRepositoryService |
void |
setTranslationBusinessMethods(TranslateBusinessMethods translationBusinessMethods)
set the TranslateBusinessMethods |
String |
translateNaturalLanguageForObject(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 |
String |
translateNaturalLanguageForProposition(String naturalLanguageUsageId,
PropositionDefinition proposition,
String languageCode)
Retrieve all the NaturalLanguageUsages |
NaturalLanguageTree |
translateNaturalLanguageTreeForProposition(String naturalLanguageUsageId,
PropositionDefinition propositionDefinintion,
String languageCode)
Translates NaturalLanguage for a given proposition, returning a tree of the NaturalLanguage. |
void |
updateAction(ActionDefinition actionDefinition)
Update the Action specified by the identifier in the DTO |
void |
updateAgenda(AgendaDefinition agendaDefinition)
Update the Agenda specified by the identifier in the input DTO |
void |
updateAgendaItem(AgendaItemDefinition agendaItemDefinition)
Update an AgendaItem |
void |
updateContext(ContextDefinition contextDefinition)
Update the Context specified by the identifier in the input DTO |
void |
updateNaturalLanguageTemplate(NaturalLanguageTemplate naturalLanguageTemplate)
This will update an existing NaturalLanguageTemplate. |
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 |
|---|
getAgendaTree, getAgendaTrees, getRule, getRules, selectContext |
| Constructor Detail |
|---|
public RuleManagementServiceImpl()
| Method Detail |
|---|
public ReferenceObjectBindingBoService getReferenceObjectBindingBoService()
ReferenceObjectBindingBoService
ReferenceObjectBindingBoServicepublic void setReferenceObjectBindingBoService(ReferenceObjectBindingBoService referenceObjectBindingBoService)
ReferenceObjectBindingBoService
referenceObjectBindingBoService - the ReferenceObjectBindingBoService to setpublic AgendaBoService getAgendaBoService()
AgendaBoService
AgendaBoServicepublic void setAgendaBoService(AgendaBoService agendaBoService)
AgendaBoService
agendaBoService - the AgendaBoService to setpublic RuleBoService getRuleBoService()
RuleBoService
RuleBoServicepublic void setRuleBoService(RuleBoService ruleBoService)
RuleBoService
ruleBoService - the RuleBoService to setpublic PropositionBoService getPropositionBoService()
PropositionBoService
PropositionBoServicepublic void setPropositionBoService(PropositionBoService propositionBoService)
PropositionBoService
propositionBoService - the PropositionBoService to setpublic NaturalLanguageUsageBoService getNaturalLanguageUsageBoService()
NaturalLanguageUsageBoService
NaturalLanguageUsageBoServicepublic void setNaturalLanguageUsageBoService(NaturalLanguageUsageBoService naturalLanguageUsageBoService)
NaturalLanguageUsageBoService
naturalLanguageUsageBoService - the NaturalLanguageUsageBoService to setpublic NaturalLanguageTemplateBoService getNaturalLanguageTemplateBoService()
NaturalLanguageTemplateBoService
NaturalLanguageTemplateBoServicepublic void setNaturalLanguageTemplateBoService(NaturalLanguageTemplateBoService naturalLanguageTemplateBoService)
NaturalLanguageTemplateBoService
naturalLanguageTemplateBoService - the NaturalLanguageTemplateBoService to setpublic ContextBoService getContextBoService()
ContextBoService
ContextBoServicepublic void setContextBoService(ContextBoService contextBoService)
ContextBoService
contextBoService - the ContextBoService to setpublic ActionBoService getActionBoService()
ActionBoService
ActionBoServicepublic void setActionBoService(ActionBoService actionBoService)
ActionBoService
actionBoService - the ActionBoService to setpublic NaturalLanguageTemplaterContract getTemplater()
NaturalLanguageTemplaterContract
NaturalLanguageTemplaterContractpublic void setTemplater(NaturalLanguageTemplaterContract templater)
NaturalLanguageTemplaterContract
templater - the NaturalLanguageTemplaterContract to setpublic TermRepositoryService getTermRepositoryService()
TermRepositoryService
TermRepositoryServicepublic void setTermRepositoryService(TermRepositoryService termRepositoryService)
TermRepositoryService
termRepositoryService - the TermRepositoryService to setpublic SequenceAccessorService getSequenceAccessorService()
SequenceAccessorService
SequenceAccessorServicepublic void setSequenceAccessorService(SequenceAccessorService sequenceAccessorService)
SequenceAccessorService
sequenceAccessorService - the SequenceAccessorService to setpublic TranslateBusinessMethods getTranslateBusinessMethods()
TranslateBusinessMethods
TranslateBusinessMethodspublic void setTranslationBusinessMethods(TranslateBusinessMethods translationBusinessMethods)
TranslateBusinessMethods
translationBusinessMethods - the TranslateBusinessMethods to set
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> findReferenceObjectBindingsByReferenceObject(String referenceObjectReferenceDiscriminatorType,
String referenceObjectId)
throws RiceIllegalArgumentException
RuleManagementService
findReferenceObjectBindingsByReferenceObject in interface RuleManagementServicereferenceObjectReferenceDiscriminatorType - reference object typereferenceObjectId - reference object id
RiceIllegalArgumentException - if the given referenceObjectKrmsDiscriminatorType or id 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 getAgendaByNameAndContextId(String name,
String contextId)
RuleManagementService
getAgendaByNameAndContextId in interface RuleManagementServicename - the name of the Agenda to retrieve.contextId - the id of the context that the agenda belongs to.
AgendaDefinition identified by the given name and namespace.
A null reference is returned if an invalid or non-existent name and
namespace combination is supplied.
public AgendaDefinition findCreateAgenda(AgendaDefinition agendaDefinition)
throws RiceIllegalArgumentException
RuleManagementService
findCreateAgenda 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 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 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<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 getRuleByNameAndNamespace(String name,
String namespace)
RuleManagementService
getRuleByNameAndNamespace in interface RuleManagementServicename - 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.
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 ActionDefinition createAction(ActionDefinition actionDefinition)
throws RiceIllegalArgumentException
RuleManagementService
createAction in interface RuleManagementServiceactionDefinition - data for the new Action to be created
RiceIllegalArgumentException - if the given actionDefinition is null
or invalid
public void updateAction(ActionDefinition actionDefinition)
throws RiceIllegalArgumentException
RuleManagementService
updateAction in interface RuleManagementServiceactionDefinition - updated Action information, object specified by the
id
RiceIllegalArgumentException - if the given actionDefinition is null
or invalid
public void deleteAction(String id)
throws RiceIllegalArgumentException
RuleManagementService
deleteAction in interface RuleManagementServiceid - identifier of the Action to be deleted
RiceIllegalArgumentException - if the given id is null or invalidpublic ActionDefinition getAction(String actionId)
RuleManagementService
getAction in interface RuleManagementServiceactionId - the id of the action to retrieve
public List<ActionDefinition> getActions(List<String> actionIds)
RuleManagementServiceThe list which is returned from this operation may not be the same size as the list which is passed to this method. If a action doesn't exist for a given action 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.
getActions in interface RuleManagementServiceactionIds - the list of action ids for which to retrieve the actions
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 deleteNaturalLanguageUsage(String naturalLanguageUsageId)
throws RiceIllegalArgumentException
RuleManagementService
deleteNaturalLanguageUsage in interface RuleManagementServicenaturalLanguageUsageId - identifier of the NaturalLanguageUsage to be deleted
RiceIllegalArgumentException - if the given naturalLanguageUsageId is null or invalid
public List<NaturalLanguageUsage> getNaturalLanguageUsagesByNamespace(String namespace)
throws RiceIllegalArgumentException
RuleManagementService
getNaturalLanguageUsagesByNamespace in interface RuleManagementServicenamespace - namespace to search on.
RiceIllegalArgumentException
public NaturalLanguageUsage getNaturalLanguageUsageByNameAndNamespace(String name,
String namespace)
throws RiceIllegalArgumentException
RuleManagementService
getNaturalLanguageUsageByNameAndNamespace in interface RuleManagementServicename - the name of the natural language usage to retrieve.namespace - the namespace that the natural language usage is under.
NaturalLanguageUsage identified by the given name and
namespace. A null reference is returned if an invalid or non-existent
name and namespace combination is supplied.
RiceIllegalArgumentException - if the either the name or the
namespace is null or blank.
public String translateNaturalLanguageForObject(String naturalLanguageUsageId,
String typeId,
String krmsObjectId,
String languageCode)
throws RiceIllegalArgumentException
RuleManagementService
translateNaturalLanguageForObject in interface RuleManagementServicetranslateNaturalLanguageForObject in interface TranslateBusinessMethodsnaturalLanguageUsageId - 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
invalid
public String translateNaturalLanguageForProposition(String naturalLanguageUsageId,
PropositionDefinition proposition,
String languageCode)
throws RiceIllegalArgumentException
RuleManagementService
translateNaturalLanguageForProposition in interface RuleManagementServicetranslateNaturalLanguageForProposition in interface TranslateBusinessMethodsRiceIllegalArgumentException
public NaturalLanguageTree translateNaturalLanguageTreeForProposition(String naturalLanguageUsageId,
PropositionDefinition propositionDefinintion,
String languageCode)
throws RiceIllegalArgumentException
RuleManagementService
translateNaturalLanguageTreeForProposition in interface RuleManagementServicetranslateNaturalLanguageTreeForProposition in interface TranslateBusinessMethodsnaturalLanguageUsageId - Natural language usage informationpropositionDefinintion - proposition to be translatedlanguageCode - desired
RiceIllegalArgumentException - if the given naturalLanguageUsageId,
proposition, or language is null or invalid
public ContextDefinition createContext(ContextDefinition contextDefinition)
throws RiceIllegalArgumentException
RuleManagementService
createContext in interface RuleManagementServicecontextDefinition - data for the new Context to be created
RiceIllegalArgumentException - if the given contextDefinition is
null or invalid or already in use.
public ContextDefinition findCreateContext(ContextDefinition contextDefinition)
throws RiceIllegalArgumentException
RuleManagementService
findCreateContext in interface RuleManagementServicecontextDefinition - data for the new Context to be created
RiceIllegalArgumentException - if the given contextDefinition is
null or invalid
public void updateContext(ContextDefinition contextDefinition)
throws RiceIllegalArgumentException
RuleManagementService
updateContext in interface RuleManagementServicecontextDefinition - DTO with updated info and identifier of the
object to be updated
RiceIllegalArgumentException - if the given contextDefinition is
null or invalid
public void deleteContext(String id)
throws RiceIllegalArgumentException
RuleManagementService
deleteContext in interface RuleManagementServiceid - identifier of the object to be deleted
RiceIllegalArgumentException - if the given id is null or invalid
public ContextDefinition getContext(String id)
throws RiceIllegalArgumentException
RuleManagementService
getContext in interface RuleManagementServiceid - identifier for the Context
RiceIllegalArgumentException - if the given id is null or invalid
public ContextDefinition getContextByNameAndNamespace(String name,
String namespace)
throws RiceIllegalArgumentException
RuleManagementService
getContextByNameAndNamespace in interface RuleManagementServicename - the name of the Context to retrieve.namespace - the namespace that the context is under.
ContextDefinition identified by the given name and
namespace. A null reference is returned if an invalid or non-existent
name and namespace combination is supplied.
RiceIllegalArgumentException - if the either the name or the
namespace is null or blank.
public NaturalLanguageTemplate createNaturalLanguageTemplate(NaturalLanguageTemplate naturalLanguageTemplate)
throws RiceIllegalArgumentException
RuleManagementServiceNaturalLanguageTemplate exactly like the
parameter passed in except the id will be assigned and create date/user
will be set.
createNaturalLanguageTemplate in interface RuleManagementServicenaturalLanguageTemplate - The NaturalLanguageTemplate to create.
NaturalLanguageTemplate exactly like the parameter
passed in.
RiceIllegalArgumentException - if the NaturalLanguageTemplate is null.
public NaturalLanguageTemplate getNaturalLanguageTemplate(String naturalLanguageTemplateId)
throws RiceIllegalArgumentException
RuleManagementService
getNaturalLanguageTemplate in interface RuleManagementServicenaturalLanguageTemplateId - to retrieve.
NaturalLanguageTemplate identified by the given id.
RiceIllegalArgumentException
public void updateNaturalLanguageTemplate(NaturalLanguageTemplate naturalLanguageTemplate)
throws RiceIllegalArgumentException
RuleManagementServiceNaturalLanguageTemplate.
updateNaturalLanguageTemplate in interface RuleManagementServicenaturalLanguageTemplate - The NaturalLanguageTemplate to update.
RiceIllegalArgumentException - if the NaturalLanguageTemplate is null.
exists in the system.
public void deleteNaturalLanguageTemplate(String naturalLanguageTemplateId)
throws RiceIllegalArgumentException
RuleManagementServiceNaturalLanguageTemplate with the given id.
deleteNaturalLanguageTemplate in interface RuleManagementServicenaturalLanguageTemplateId - to delete.
RiceIllegalArgumentException - if the NaturalLanguageTemplate is null.
public List<NaturalLanguageTemplate> findNaturalLanguageTemplatesByLanguageCode(String languageCode)
throws RiceIllegalArgumentException
RuleManagementService
findNaturalLanguageTemplatesByLanguageCode in interface RuleManagementServicelanguageCode - language on which to search
RiceIllegalArgumentException
public NaturalLanguageTemplate findNaturalLanguageTemplateByLanguageCodeTypeIdAndNluId(String languageCode,
String typeId,
String naturalLanguageUsageId)
throws RiceIllegalArgumentException
findNaturalLanguageTemplateByLanguageCodeTypeIdAndNluId in interface RuleManagementServiceRiceIllegalArgumentException
public List<NaturalLanguageTemplate> findNaturalLanguageTemplatesByNaturalLanguageUsage(String naturalLanguageUsageId)
throws RiceIllegalArgumentException
RuleManagementService
findNaturalLanguageTemplatesByNaturalLanguageUsage in interface RuleManagementServicenaturalLanguageUsageId - the usage on which to search
RiceIllegalArgumentException
public List<NaturalLanguageTemplate> findNaturalLanguageTemplatesByType(String typeId)
throws RiceIllegalArgumentException
RuleManagementService
findNaturalLanguageTemplatesByType in interface RuleManagementServicetypeId - on which to search
RiceIllegalArgumentException
public List<NaturalLanguageTemplate> findNaturalLanguageTemplatesByTemplate(String template)
throws RiceIllegalArgumentException
RuleManagementService
findNaturalLanguageTemplatesByTemplate in interface RuleManagementServicetemplate - text to match exactly
RiceIllegalArgumentException
public List<String> findContextIds(QueryByCriteria queryByCriteria)
throws RiceIllegalArgumentException
RuleManagementServiceThis method returns it's results as a List of Context ids that match the given search criteria.
findContextIds in interface RuleManagementServicequeryByCriteria - the criteria. Cannot be null.
RiceIllegalArgumentException - if the queryByCriteria is null
public List<String> findAgendaIds(QueryByCriteria queryByCriteria)
throws RiceIllegalArgumentException
RuleManagementServiceThis method returns it's results as a List of Agenda ids that match the given search criteria.
findAgendaIds in interface RuleManagementServicequeryByCriteria - the criteria. Cannot be null.
RiceIllegalArgumentException - if the queryByCriteria is null
public List<String> findRuleIds(QueryByCriteria queryByCriteria)
throws RiceIllegalArgumentException
RuleManagementServiceThis method returns it's results as a List of Rule ids that match the given search criteria.
findRuleIds in interface RuleManagementServicequeryByCriteria - the criteria. Cannot be null.
RiceIllegalArgumentException - if the queryByCriteria is null
public List<String> findPropositionIds(QueryByCriteria queryByCriteria)
throws RiceIllegalArgumentException
RuleManagementServiceThis method returns it's results as a List of Proposition ids that match the given search criteria.
findPropositionIds in interface RuleManagementServicequeryByCriteria - the criteria. Cannot be null.
RiceIllegalArgumentException - if the queryByCriteria is null
public List<String> findActionIds(QueryByCriteria queryByCriteria)
throws RiceIllegalArgumentException
RuleManagementServiceThis method returns it's results as a List of Action ids that match the given search criteria.
findActionIds in interface RuleManagementServicequeryByCriteria - the criteria. Cannot be null.
RiceIllegalArgumentException - if the queryByCriteria is nullpublic 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 | |||||||||