public class OlePatronConverterService extends Object
| Constructor and Description | 
|---|
| OlePatronConverterService() | 
| Modifier and Type | Method and Description | 
|---|---|
| OlePatronGroup | buildPatron(String fileName)This method will get the resource file(xml file) and convert object from the xml file (used for testCase) | 
| OlePatronGroup | buildPatronFromFileContent(String fileContent)This method is for getting the object of OlePatronGroup from the ingested xml (used for testCase). | 
| protected boolean | checkAddressMultipleDefault(List<OleEntityAddressBo> addrBoList)This method is for checking the entity address has multiple defaults | 
| protected boolean | checkDuplicateBarcode(String barcode) | 
| protected boolean | checkEmailMultipleDefault(List<org.kuali.rice.kim.impl.identity.email.EntityEmailBo> emailBoList)This method is for checking the entity email address has multiple defaults | 
| protected boolean | checkMultipleDeliverAddress(List<OleEntityAddressBo> addrBoList) | 
| protected boolean | checkPhoneMultipleDefault(List<org.kuali.rice.kim.impl.identity.phone.EntityPhoneBo> phoneBoList)This method is for checking the entity phone has multiple defaults | 
| List<OlePatronDocument> | createOlePatronDocument(List<OlePatron> createPatronList,
                                              List<OlePatron> failedPatronList)This method is for creating a OlePatronDocument | 
| OlePatronRecordHandler | getOlePatronRecordHandler()Gets the instance of OlePatronRecordHandler | 
| OlePatronService | getOlePatronService()Gets the value of olePatronService which is of type OlePatronService | 
| String | getPatronAddressSource() | 
| String | getUploadProcessMessage(OlePatronIngestSummaryRecord olePatronIngestSummaryRecord)This method is for getting the uploaded process message | 
| boolean | isPatronExist(String patronId)This method will check the entity id from the database , whether it is existing or not. | 
| List<OlePatronDocument> | persistPatronFromFileContent(String fileContent,
                                                        boolean addUnMatchedPatronFlag,
                                                        String fileName,
                                                        OlePatronIngestSummaryRecord olePatronIngestSummaryRecord,
                                                        String addressSource,
                                                        String principalName)This method will get the values from the ingested xml file, check the entity id and addUnmatchedPatron (from screen) . | 
| void | setOlePatronRecordHandler(OlePatronRecordHandler olePatronRecordHandler)Sets the olePatronRecordHandler which is of type OlePatronRecordHandler | 
| void | setOlePatronService(OlePatronService olePatronService)Sets the value for olePatronService which is of type OlePatronService | 
| void | setPatronAddressSource(String patronAddressSource) | 
| List<OlePatronDocument> | updateOlePatronDocument(List<OlePatron> updatePatronList,
                                              List<OlePatron> failedPatronList)This method is for updating the OlePatronDocument | 
public OlePatronConverterService()
public String getPatronAddressSource()
public void setPatronAddressSource(String patronAddressSource)
public OlePatronService getOlePatronService()
public void setOlePatronService(OlePatronService olePatronService)
olePatronService(OlePatronService) - public List<OlePatronDocument> persistPatronFromFileContent(String fileContent, boolean addUnMatchedPatronFlag, String fileName, OlePatronIngestSummaryRecord olePatronIngestSummaryRecord, String addressSource, String principalName) throws IOException, URISyntaxException
fileContent - addUnMatchedPatronFlag - fileName - olePatronIngestSummaryRecord - IOExceptionURISyntaxExceptionpublic String getUploadProcessMessage(OlePatronIngestSummaryRecord olePatronIngestSummaryRecord)
olePatronIngestSummaryRecord - public boolean isPatronExist(String patronId)
patronId - public List<OlePatronDocument> createOlePatronDocument(List<OlePatron> createPatronList, List<OlePatron> failedPatronList)
createPatronList - failedPatronList - public List<OlePatronDocument> updateOlePatronDocument(List<OlePatron> updatePatronList, List<OlePatron> failedPatronList)
updatePatronList - failedPatronList - public OlePatronGroup buildPatronFromFileContent(String fileContent) throws URISyntaxException, IOException
fileContent - URISyntaxExceptionIOExceptionpublic OlePatronGroup buildPatron(String fileName) throws URISyntaxException, IOException, SAXException
fileName - URISyntaxExceptionIOExceptionSAXExceptionprotected boolean checkPhoneMultipleDefault(List<org.kuali.rice.kim.impl.identity.phone.EntityPhoneBo> phoneBoList)
phoneBoList - protected boolean checkAddressMultipleDefault(List<OleEntityAddressBo> addrBoList)
addrBoList - protected boolean checkMultipleDeliverAddress(List<OleEntityAddressBo> addrBoList)
protected boolean checkEmailMultipleDefault(List<org.kuali.rice.kim.impl.identity.email.EntityEmailBo> emailBoList)
emailBoList - public OlePatronRecordHandler getOlePatronRecordHandler()
public void setOlePatronRecordHandler(OlePatronRecordHandler olePatronRecordHandler)
olePatronRecordHandler(OlePatronRecordHandler) - protected boolean checkDuplicateBarcode(String barcode)
Copyright © 2004–2015 The Kuali Foundation. All rights reserved.