public class OleKrmsBuilder extends Object
Constructor and Description |
---|
OleKrmsBuilder() |
Modifier and Type | Method and Description |
---|---|
org.kuali.rice.krms.impl.repository.ActionBo |
addActionToRule(String namespace,
String actionName,
String description,
String actionTypeId,
org.kuali.rice.krms.impl.repository.RuleBo ruleBo,
Integer sequenceNumber)
This method adds the action into rule to create the agenda.
|
org.kuali.rice.krms.impl.repository.PropositionBo |
addConstantToPropositionParameter(String constant,
org.kuali.rice.krms.impl.repository.PropositionBo proposition)
This method returns the PropositionBo object based on the constant and proposition parameters
Creates a new object, stores it in database and returns the object.
|
org.kuali.rice.krms.impl.repository.PropositionBo |
addCustomFunctionToPropositionParameter(String functionId,
org.kuali.rice.krms.impl.repository.PropositionBo proposition,
Integer seqNum)
This method returns the PropositionBo object based on the functionId and proposition parameters
Creates a new object, stores it in database and returns the object.
|
org.kuali.rice.krms.impl.repository.AgendaItemBo |
addDummyRuleForFalseAction(org.kuali.rice.krms.impl.repository.RuleBo ruleBo,
org.kuali.rice.krms.impl.repository.RuleBo falseActionRuleBo)
This method adds the dummy rule into database for falseAction.
|
org.kuali.rice.krms.impl.repository.PropositionBo |
addOperatorToPropositionParameter(String operator,
org.kuali.rice.krms.impl.repository.PropositionBo proposition)
This method returns the PropositionBo object based on the operator and proposition parameters
Creates a new object, stores it in database and returns the object.
|
org.kuali.rice.krms.impl.repository.AgendaBo |
addRuleToAgenda(org.kuali.rice.krms.impl.repository.AgendaBo agendaBo,
org.kuali.rice.krms.impl.repository.RuleBo ruleBo)
This method returns the agendaBo object based on the agendaBo, ruleBo and count parameters
Creates a new object, stores it in database and returns if none exists, otherwise returns the existing object.
|
org.kuali.rice.krms.impl.repository.PropositionBo |
addTermToPropositionParameter(String termId,
org.kuali.rice.krms.impl.repository.PropositionBo proposition,
Integer seqNum)
This method returns the PropositionBo object based on the termId and proposition parameters
Creates a new object, stores it in database and returns the object.
|
org.kuali.rice.krms.impl.repository.KrmsTypeBo |
createActionTypeService()
This method create Bibliographic record action as type in the database for creating custom action.
|
org.kuali.rice.krms.impl.repository.AgendaBo |
createAgenda(String agendaName,
org.kuali.rice.krms.impl.repository.ContextBo contextBo)
This method returns the agendaBo object based on the agendaName and contextBo parameters.
|
org.kuali.rice.krms.impl.repository.CategoryBo |
createCategory(String namespace,
String categoryName)
This method returns the categoryBo object based on the namespace and the categoryName parameters.
|
org.kuali.rice.krms.impl.repository.PropositionBo |
createCompoundProposition(String categoryId,
String propositionDescription,
String propositionType,
org.kuali.rice.krms.impl.repository.RuleBo rule,
String operatorCode)
This method returns the propositionBo object based on the categoryId, propositionDescription, propositionType, rule and operatorCode parameters
Creates a new object, stores it in database and returns the object.
|
org.kuali.rice.krms.impl.repository.ContextBo |
createContext(String namespace,
String contextName)
This method returns the contextBo object based on the namespace and contextName parameters.
|
org.kuali.rice.krms.impl.repository.FunctionBo |
createFunction(String namespace,
String functionName,
String returnType,
List categories,
List<String> parameterTypes)
This method returns the functionBo object based on the namespace, termName, returnType, categories and parameterType parameters
Creates a new object, stores it in database and returns if none exists, otherwise returns the existing object.
|
org.kuali.rice.krms.impl.repository.PropositionBo |
createProposition(String categoryId,
String propositionDescription,
String propositionType,
org.kuali.rice.krms.impl.repository.RuleBo rule,
Integer seqNum)
This method returns the propositionBo object based on the categoryId, propositionDescription, propositionType, rule and seqNum parameters
Creates a new object, stores it in database and returns the object.
|
org.kuali.rice.krms.impl.repository.RuleBo |
createRule(String namespace,
String ruleName)
This method returns the ruleBo object based on the name and termSpecificationBo parameters
Creates a new object, stores it in database and returns if none exists, otherwise returns the existing object.
|
org.kuali.rice.krms.impl.repository.TermBo |
createTerm(String name,
org.kuali.rice.krms.impl.repository.TermSpecificationBo termSpecificationBo)
This method returns the termBo object based on the name and termSpecificationBo parameters
Creates a new object, stores it in database and returns if none exists, otherwise returns the existing object.
|
org.kuali.rice.krms.impl.repository.TermSpecificationBo |
createTermSpecification(String namespace,
String termSpecificationName,
String type,
List<org.kuali.rice.krms.impl.repository.CategoryBo> categoryBoList,
List<org.kuali.rice.krms.impl.repository.ContextBo> contextBoList)
This method returns the termSpecificationBo object based on the namespace, termSpecificationName, type, categoryBoList and contextBoList parameters.
|
void |
deleteAgenda(OleKrmsAgenda oleAgenda)
This method deletes the term record from database.
|
Boolean |
doesKrmsExist(String agendaName)
Lookups the database based on the agendaName and returns a boolean value.
|
org.kuali.rice.krms.impl.repository.AgendaBo |
getAgendaBo()
Gets the agendaBo attribute.
|
org.kuali.rice.krms.impl.repository.CategoryBo |
getCategory()
Gets the category attribute.
|
org.kuali.rice.krms.impl.repository.ContextBo |
getContext()
Gets the context attribute.
|
OleKrmsObjectGeneratorFromXML |
getKrmsObjectGeneratorFromXML()
Gets the krmsObjectGeneratorFromXML object if exists, otherwise it creates a new object.
|
org.kuali.rice.krms.impl.repository.RuleBo |
getRuleBo()
Gets the ruleBo attribute.
|
Object |
objectExists(Class objectClass,
String key,
String value)
This method returns the Object value if it exists or else null value based on objectClass, key and value parameters.
|
String |
persist(OleKrmsAgenda oleAgenda)
This method will create context,category and rules for creating agenda and finally persists into database.
|
List<String> |
persistKrmsFromFileContent(String fileContent)
This method builds the Krms object from the fileContent parameter and the returns the list of agendaNames from the Krms object.
|
void |
registerDefaultFunctionLoader()
This method save the DefaultFunctionLoader into the database.
|
org.kuali.rice.krms.impl.repository.ContextValidActionBo |
registerDefaultServiceTypes(org.kuali.rice.krms.impl.repository.ContextBo contextBo)
This method registers the default service types in the database for the context.
|
void |
setAgendaBo(org.kuali.rice.krms.impl.repository.AgendaBo agendaBo)
Sets the agendaBo attribute value.
|
void |
setCategory(org.kuali.rice.krms.impl.repository.CategoryBo category)
Sets the category attribute value.
|
void |
setContext(org.kuali.rice.krms.impl.repository.ContextBo context)
Sets the Context attribute value.
|
void |
setKrmsObjectGeneratorFromXML(OleKrmsObjectGeneratorFromXML krmsObjectGeneratorFromXML)
Sets the krmsObjectGeneratorFromXML value.
|
void |
setRuleBo(org.kuali.rice.krms.impl.repository.RuleBo ruleBo)
Sets the ruleBo attribute value.
|
public OleKrmsBuilder()
public org.kuali.rice.krms.impl.repository.ContextBo createContext(String namespace, String contextName)
namespace
- contextName
- public Object objectExists(Class objectClass, String key, String value)
objectClass
- key
- value
- public org.kuali.rice.krms.impl.repository.CategoryBo createCategory(String namespace, String categoryName)
namespace
- categoryName
- public void registerDefaultFunctionLoader()
public org.kuali.rice.krms.impl.repository.AgendaBo createAgenda(String agendaName, org.kuali.rice.krms.impl.repository.ContextBo contextBo)
agendaName
- contextBo
- public org.kuali.rice.krms.impl.repository.TermSpecificationBo createTermSpecification(String namespace, String termSpecificationName, String type, List<org.kuali.rice.krms.impl.repository.CategoryBo> categoryBoList, List<org.kuali.rice.krms.impl.repository.ContextBo> contextBoList)
namespace
- termSpecificationName
- type
- categoryBoList
- contextBoList
- public org.kuali.rice.krms.impl.repository.TermBo createTerm(String name, org.kuali.rice.krms.impl.repository.TermSpecificationBo termSpecificationBo)
name
- termSpecificationBo
- public org.kuali.rice.krms.impl.repository.RuleBo createRule(String namespace, String ruleName)
namespace
- ruleName
- public org.kuali.rice.krms.impl.repository.AgendaBo addRuleToAgenda(org.kuali.rice.krms.impl.repository.AgendaBo agendaBo, org.kuali.rice.krms.impl.repository.RuleBo ruleBo)
agendaBo
- ruleBo
- public org.kuali.rice.krms.impl.repository.PropositionBo createProposition(String categoryId, String propositionDescription, String propositionType, org.kuali.rice.krms.impl.repository.RuleBo rule, Integer seqNum)
categoryId
- propositionDescription
- propositionType
- rule
- seqNum
- public org.kuali.rice.krms.impl.repository.PropositionBo createCompoundProposition(String categoryId, String propositionDescription, String propositionType, org.kuali.rice.krms.impl.repository.RuleBo rule, String operatorCode)
categoryId
- propositionDescription
- propositionType
- rule
- operatorCode
- public org.kuali.rice.krms.impl.repository.FunctionBo createFunction(String namespace, String functionName, String returnType, List categories, List<String> parameterTypes)
namespace
- functionName
- returnType
- categories
- parameterTypes
- public org.kuali.rice.krms.impl.repository.PropositionBo addTermToPropositionParameter(String termId, org.kuali.rice.krms.impl.repository.PropositionBo proposition, Integer seqNum)
termId
- proposition
- public org.kuali.rice.krms.impl.repository.PropositionBo addOperatorToPropositionParameter(String operator, org.kuali.rice.krms.impl.repository.PropositionBo proposition)
operator
- proposition
- public org.kuali.rice.krms.impl.repository.PropositionBo addConstantToPropositionParameter(String constant, org.kuali.rice.krms.impl.repository.PropositionBo proposition)
constant
- proposition
- public org.kuali.rice.krms.impl.repository.PropositionBo addCustomFunctionToPropositionParameter(String functionId, org.kuali.rice.krms.impl.repository.PropositionBo proposition, Integer seqNum)
functionId
- proposition
- public String persist(OleKrmsAgenda oleAgenda)
oleAgenda
- public List<String> persistKrmsFromFileContent(String fileContent) throws IOException, URISyntaxException
fileContent
- IOException
URISyntaxException
public OleKrmsObjectGeneratorFromXML getKrmsObjectGeneratorFromXML()
public void setKrmsObjectGeneratorFromXML(OleKrmsObjectGeneratorFromXML krmsObjectGeneratorFromXML)
krmsObjectGeneratorFromXML
- public Boolean doesKrmsExist(String agendaName)
agendaName
- public void deleteAgenda(OleKrmsAgenda oleAgenda)
oleAgenda
- public org.kuali.rice.krms.impl.repository.ContextValidActionBo registerDefaultServiceTypes(org.kuali.rice.krms.impl.repository.ContextBo contextBo)
contextBo
- public org.kuali.rice.krms.impl.repository.KrmsTypeBo createActionTypeService()
public org.kuali.rice.krms.impl.repository.ActionBo addActionToRule(String namespace, String actionName, String description, String actionTypeId, org.kuali.rice.krms.impl.repository.RuleBo ruleBo, Integer sequenceNumber)
namespace
- actionName
- description
- actionTypeId
- ruleBo
- sequenceNumber
- public org.kuali.rice.krms.impl.repository.AgendaItemBo addDummyRuleForFalseAction(org.kuali.rice.krms.impl.repository.RuleBo ruleBo, org.kuali.rice.krms.impl.repository.RuleBo falseActionRuleBo)
ruleBo
- falseActionRuleBo
- public org.kuali.rice.krms.impl.repository.CategoryBo getCategory()
public void setCategory(org.kuali.rice.krms.impl.repository.CategoryBo category)
category
- .The category to set.public org.kuali.rice.krms.impl.repository.ContextBo getContext()
public void setContext(org.kuali.rice.krms.impl.repository.ContextBo context)
context
- public org.kuali.rice.krms.impl.repository.AgendaBo getAgendaBo()
public void setAgendaBo(org.kuali.rice.krms.impl.repository.AgendaBo agendaBo)
agendaBo
- public org.kuali.rice.krms.impl.repository.RuleBo getRuleBo()
public void setRuleBo(org.kuali.rice.krms.impl.repository.RuleBo ruleBo)
ruleBo
- Copyright © 2004–2015 The Kuali Foundation. All rights reserved.