public class KSRuleManagementServiceImpl extends RuleManagementServiceImpl implements RuleManagementService
RuleManagementService
operations facilitate management of rules and
associated information.dataObjectService
Constructor and Description |
---|
KSRuleManagementServiceImpl() |
Modifier and Type | Method and Description |
---|---|
AgendaItemDefinition |
createAgendaItem(AgendaItemDefinition agendaItemDefinition)
Create AgendaItem
|
List<ReferenceObjectBinding> |
findReferenceObjectBindingsByReferenceObjectIds(String referenceObjectReferenceDiscriminatorType,
List<String> referenceObjectIds)
Retrieves list of ReferenceObjectBinding objects for the given obj
discriminator type and reference object ids
|
AgendaBoService |
getAgendaBoService()
get the
AgendaBoService |
NaturalLanguageTemplaterContract |
getTemplater()
get the
NaturalLanguageTemplaterContract |
TranslateBusinessMethods |
getTranslateBusinessMethods()
get the
TranslateBusinessMethods |
void |
setAgendaBoService(AgendaBoService agendaBoService)
set the
AgendaBoService |
void |
setTemplater(NaturalLanguageTemplaterContract templater)
set the
NaturalLanguageTemplaterContract |
List<NaturalLanguage> |
translateNaturalLanguageForObjects(String naturalLanguageUsageId,
String typeId,
List<String> krmsObjectIds,
String languageCode)
Translates and retrieves a NaturalLanguage for a list of KRMS objects (e.g,
propositions or agendas), NaturalLanguage usage type (context) and language
into natural language
|
void |
updateAgendaItem(AgendaItemDefinition agendaItemDefinition)
Update an AgendaItem
|
createAction, createAgenda, createContext, createNaturalLanguageTemplate, createNaturalLanguageUsage, createProposition, createReferenceObjectBinding, createRule, deleteAction, deleteAgenda, deleteAgendaItem, deleteContext, deleteNaturalLanguageTemplate, deleteNaturalLanguageUsage, deleteProposition, deleteReferenceObjectBinding, deleteRule, findActionIds, findAgendaIds, findContextIds, findCreateAgenda, findCreateContext, findNaturalLanguageTemplateByLanguageCodeTypeIdAndNluId, findNaturalLanguageTemplatesByLanguageCode, findNaturalLanguageTemplatesByNaturalLanguageUsage, findNaturalLanguageTemplatesByTemplate, findNaturalLanguageTemplatesByType, findPropositionIds, findReferenceObjectBindingIds, findReferenceObjectBindingsByKrmsDiscriminatorType, findReferenceObjectBindingsByKrmsObject, findReferenceObjectBindingsByReferenceDiscriminatorType, findReferenceObjectBindingsByReferenceObject, findRuleIds, getAction, getActionBoService, getActions, getAgenda, getAgendaByNameAndContextId, getAgendaItem, getAgendaItemsByContext, getAgendaItemsByType, getAgendaItemsByTypeAndContext, getAgendasByContext, getAgendasByType, getAgendasByTypeAndContext, getContext, getContextBoService, getContextByNameAndNamespace, getDataSource, getNaturalLanguageTemplate, getNaturalLanguageTemplateBoService, getNaturalLanguageUsage, getNaturalLanguageUsageBoService, getNaturalLanguageUsageByNameAndNamespace, getNaturalLanguageUsagesByNamespace, getProposition, getPropositionBoService, getPropositionsByRule, getPropositionsByType, getReferenceObjectBinding, getReferenceObjectBindingBoService, getReferenceObjectBindings, getRuleBoService, getRuleByNameAndNamespace, getTermRepositoryService, setActionBoService, setContextBoService, setDataObjectService, setDataSource, setNaturalLanguageTemplateBoService, setNaturalLanguageUsageBoService, setPropositionBoService, setReferenceObjectBindingBoService, setRuleBoService, setTermRepositoryService, setTranslationBusinessMethods, translateNaturalLanguageForObject, translateNaturalLanguageForProposition, translateNaturalLanguageTreeForProposition, updateAction, updateAgenda, updateContext, updateNaturalLanguageTemplate, updateNaturalLanguageUsage, updateProposition, updateReferenceObjectBinding, updateRule
getAgendaTree, getAgendaTrees, getDataObjectService, getRule, getRules, selectContext
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createAction, createAgenda, createContext, createNaturalLanguageTemplate, createNaturalLanguageUsage, createProposition, createReferenceObjectBinding, createRule, deleteAction, deleteAgenda, deleteAgendaItem, deleteContext, deleteNaturalLanguageTemplate, deleteNaturalLanguageUsage, deleteProposition, deleteReferenceObjectBinding, deleteRule, findActionIds, findAgendaIds, findContextIds, findCreateAgenda, findCreateContext, findNaturalLanguageTemplateByLanguageCodeTypeIdAndNluId, findNaturalLanguageTemplatesByLanguageCode, findNaturalLanguageTemplatesByNaturalLanguageUsage, findNaturalLanguageTemplatesByTemplate, findNaturalLanguageTemplatesByType, findPropositionIds, findReferenceObjectBindingIds, findReferenceObjectBindingsByKrmsDiscriminatorType, findReferenceObjectBindingsByKrmsObject, findReferenceObjectBindingsByReferenceDiscriminatorType, findReferenceObjectBindingsByReferenceObject, findRuleIds, getAction, getActions, getAgenda, getAgendaByNameAndContextId, getAgendaItem, getAgendaItemsByContext, getAgendaItemsByType, getAgendaItemsByTypeAndContext, getAgendasByContext, getAgendasByType, getAgendasByTypeAndContext, getAgendaTree, getAgendaTrees, getContext, getContextByNameAndNamespace, getNaturalLanguageTemplate, getNaturalLanguageUsage, getNaturalLanguageUsageByNameAndNamespace, getNaturalLanguageUsagesByNamespace, getProposition, getPropositionsByRule, getPropositionsByType, getReferenceObjectBinding, getReferenceObjectBindings, getRule, getRuleByNameAndNamespace, getRules, selectContext, translateNaturalLanguageForObject, translateNaturalLanguageForProposition, translateNaturalLanguageTreeForProposition, updateAction, updateAgenda, updateContext, updateNaturalLanguageTemplate, updateNaturalLanguageUsage, updateProposition, updateReferenceObjectBinding, updateRule
public KSRuleManagementServiceImpl()
public List<ReferenceObjectBinding> findReferenceObjectBindingsByReferenceObjectIds(String referenceObjectReferenceDiscriminatorType, List<String> referenceObjectIds) throws RiceIllegalArgumentException
RuleManagementService
findReferenceObjectBindingsByReferenceObjectIds
in interface RuleManagementService
referenceObjectReferenceDiscriminatorType
- reference object typereferenceObjectIds
- reference object idsRiceIllegalArgumentException
- if the given referenceObjectKrmsDiscriminatorType or id list is
blank or invalidpublic List<NaturalLanguage> translateNaturalLanguageForObjects(String naturalLanguageUsageId, String typeId, List<String> krmsObjectIds, String languageCode) throws RiceIllegalArgumentException
RuleManagementService
translateNaturalLanguageForObjects
in interface RuleManagementService
naturalLanguageUsageId
- Natural language usage informationtypeId
- KRMS object type id (for example, could refer to agenda
or proposition)krmsObjectIds
- KRMS object identifierlanguageCode
- desiredRiceIllegalArgumentException
- if the given naturalLanguageUsageId, typeId,
krmsObjectId or language is null or
invalidpublic AgendaItemDefinition createAgendaItem(AgendaItemDefinition agendaItemDefinition) throws RiceIllegalArgumentException
RuleManagementService
createAgendaItem
in interface RuleManagementService
createAgendaItem
in class RuleManagementServiceImpl
agendaItemDefinition
- data for the new AgendaItem to be createdRiceIllegalArgumentException
- if the given agendaItemDefinition is
null or invalidpublic void updateAgendaItem(AgendaItemDefinition agendaItemDefinition) throws RiceIllegalArgumentException
RuleManagementService
updateAgendaItem
in interface RuleManagementService
updateAgendaItem
in class RuleManagementServiceImpl
agendaItemDefinition
- updated data for the AgendaItem, with id of the object to be updatedRiceIllegalArgumentException
- if the given agendaItemDefinition
is null or invalidpublic NaturalLanguageTemplaterContract getTemplater()
NaturalLanguageTemplaterContract
getTemplater
in class RuleManagementServiceImpl
NaturalLanguageTemplaterContract
public void setTemplater(NaturalLanguageTemplaterContract templater)
NaturalLanguageTemplaterContract
setTemplater
in class RuleManagementServiceImpl
templater
- the NaturalLanguageTemplaterContract
to setpublic TranslateBusinessMethods getTranslateBusinessMethods()
TranslateBusinessMethods
getTranslateBusinessMethods
in class RuleManagementServiceImpl
TranslateBusinessMethods
public AgendaBoService getAgendaBoService()
AgendaBoService
getAgendaBoService
in class RuleManagementServiceImpl
AgendaBoService
public void setAgendaBoService(AgendaBoService agendaBoService)
AgendaBoService
setAgendaBoService
in class RuleManagementServiceImpl
agendaBoService
- the AgendaBoService
to setCopyright © 2004–2014 The Kuali Foundation. All rights reserved.