public class ProfileBuilder extends Object
| Constructor and Description | 
|---|
| ProfileBuilder() | 
| 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 | addCustomFunctionToPropositionParameter(String functionId,
                                                                              org.kuali.rice.krms.impl.repository.PropositionBo proposition)This method adds the customFunction into propositionParameter to create the rule and agenda. | 
| 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. | 
| MatchBo | addMatchBo(String agendaName,
                    String termName,
                    String docType,
                    String incomingField,
                    String existingField)This method adds the agendaName,docType,incomingField,existingField into MatchBo. | 
| 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 adds the rule to agenda. | 
| org.kuali.rice.krms.impl.repository.PropositionBo | addTermToPropositionParameter(String termId,
                                                          org.kuali.rice.krms.impl.repository.PropositionBo proposition)This method adds the term to propositionParameter to create the rule and agenda. | 
| Profile | buildProfile(String fileName)This method builds the profile based on fileContent. | 
| Profile | buildProfileFromFileContent(String fileContent)This method returns Profile build from fileContent. | 
| 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 creates the agenda and persist in the database for the context. | 
| org.kuali.rice.krms.impl.repository.CategoryBo | createCategory(String namespace,
                            String categoryName)This method creates the category. | 
| org.kuali.rice.krms.impl.repository.ContextBo | createContext(String namespace,
                          String contextName)This method creates the context. | 
| org.kuali.rice.krms.impl.repository.FunctionBo | createFunction(String namespace,
                            String termName,
                            String returnType,
                            List categories)This method creates the custom function by using functionLoader. | 
| org.kuali.rice.krms.impl.repository.PropositionBo | createProposition(String categoryId,
                                  String propositionDescription,
                                  String propositionType,
                                  org.kuali.rice.krms.impl.repository.RuleBo rule)This method creates the simple or compound proposition. | 
| org.kuali.rice.krms.impl.repository.RuleBo | createRule(String namespace,
                    String ruleName)This method creates the rule for the ruleName. | 
| org.kuali.rice.krms.impl.repository.TermBo | createTerm(String name,
                    org.kuali.rice.krms.impl.repository.TermSpecificationBo termSpecificationBo)This method creates the term for each termSpecification. | 
| org.kuali.rice.krms.impl.repository.KrmsTypeBo | createTermResolverTypeService()This method creates profileTermResolverType record as type in database for creating custom action. | 
| 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 creates the term specifications . | 
| void | deleteAgenda(Profile profile)To clear Profile Data if Profile already Exists | 
| Boolean | doesProfileExist(String profileName)This method returns True/False. | 
| ProfileObjectGeneratorFromXML | getProfileObjectGeneratorFromXML()Gets the profileObjectGeneratorFromXML attribute. | 
| Object | objectExists(Class objectClass,
                        String key,
                        String value)This method returns the  object | 
| String | persist(Profile profile)This method  creates context,category,rules,preposition,term and action for creating agenda and finally persisted into database. | 
| String | persistKRMSProfile(String profileFileName)This method persists the KRMSProfile into database. | 
| String | persistKRMSProfileFromFileContent(String fileContent)This method persists the KRMSProfile got from fileContent into the database. | 
| void | registerDefaultFunctionLoader()This method creates function loader type in the database for creating custom function. | 
| 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 | registerDefaultTermResolvers(List<org.kuali.rice.krms.impl.repository.ContextBo> contextBos,
                                                        List<org.kuali.rice.krms.impl.repository.CategoryBo> categoryBos)This method creates the termResolver for ExistingField and IncomingField based on category and context. | 
| void | setProfileObjectGeneratorFromXML(ProfileObjectGeneratorFromXML profileObjectGeneratorFromXML)Sets the profileObjectGeneratorFromXML attribute value. | 
public ProfileBuilder()
public org.kuali.rice.krms.impl.repository.ContextBo createContext(String namespace, String contextName)
namespace - contextName - 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.KrmsTypeBo createTermResolverTypeService()
public org.kuali.rice.krms.impl.repository.CategoryBo createCategory(String namespace, String categoryName)
namespace - categoryName - 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.FunctionBo createFunction(String namespace, String termName, String returnType, List categories)
namespace - termName - returnType - categories - public org.kuali.rice.krms.impl.repository.PropositionBo createProposition(String categoryId, String propositionDescription, String propositionType, org.kuali.rice.krms.impl.repository.RuleBo rule)
categoryId - propositionDescription - propositionType - rule - public org.kuali.rice.krms.impl.repository.RuleBo createRule(String namespace, String ruleName)
namespace - ruleName - 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.PropositionBo addCustomFunctionToPropositionParameter(String functionId, org.kuali.rice.krms.impl.repository.PropositionBo proposition)
functionId - proposition - public org.kuali.rice.krms.impl.repository.PropositionBo addTermToPropositionParameter(String termId, org.kuali.rice.krms.impl.repository.PropositionBo proposition)
termId - proposition - 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.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.AgendaItemBo addDummyRuleForFalseAction(org.kuali.rice.krms.impl.repository.RuleBo ruleBo, org.kuali.rice.krms.impl.repository.RuleBo falseActionRuleBo)
ruleBo - falseActionRuleBo - public MatchBo addMatchBo(String agendaName, String termName, String docType, String incomingField, String existingField)
agendaName - termName - docType - incomingField - existingField - public Profile buildProfileFromFileContent(String fileContent) throws URISyntaxException, IOException
fileContent - URISyntaxExceptionIOExceptionpublic Profile buildProfile(String fileName) throws URISyntaxException, IOException, SAXException
fileName - URISyntaxExceptionIOExceptionSAXExceptionpublic String persistKRMSProfileFromFileContent(String fileContent) throws IOException, URISyntaxException
fileContent - IOExceptionURISyntaxExceptionpublic String persistKRMSProfile(String profileFileName) throws IOException, URISyntaxException, SAXException
profileFileName - IOExceptionURISyntaxExceptionSAXExceptionpublic String persist(Profile profile)
profile - public void registerDefaultFunctionLoader()
public void registerDefaultTermResolvers(List<org.kuali.rice.krms.impl.repository.ContextBo> contextBos, List<org.kuali.rice.krms.impl.repository.CategoryBo> categoryBos)
contextBos - categoryBos - public Object objectExists(Class objectClass, String key, String value)
objectClass - key - value - public void deleteAgenda(Profile profile)
profile - public Boolean doesProfileExist(String profileName)
profileName - public ProfileObjectGeneratorFromXML getProfileObjectGeneratorFromXML()
public void setProfileObjectGeneratorFromXML(ProfileObjectGeneratorFromXML profileObjectGeneratorFromXML)
profileObjectGeneratorFromXML - Copyright © 2004–2015 The Kuali Foundation. All rights reserved.