| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kuali.ole.ingest.ProfileBuilder
public class ProfileBuilder
ProfileBuilder is used to build the KRMS Agenda for the Profile xml which is used for Staff upload screen.
| Constructor Summary | |
|---|---|
| ProfileBuilder() | |
| Method Summary | |
|---|---|
|  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. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public ProfileBuilder()
| Method Detail | 
|---|
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 - 
URISyntaxException
IOException
public Profile buildProfile(String fileName)
                     throws URISyntaxException,
                            IOException,
                            SAXException
fileName - 
URISyntaxException
IOException
SAXException
public String persistKRMSProfileFromFileContent(String fileContent)
                                         throws IOException,
                                                URISyntaxException
fileContent - 
IOException
URISyntaxException
public String persistKRMSProfile(String profileFileName)
                          throws IOException,
                                 URISyntaxException,
                                 SAXException
profileFileName - 
IOException
URISyntaxException
SAXExceptionpublic 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 - | 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||