001package org.kuali.ole.service; 002 003import org.kuali.ole.deliver.bo.OleAddressBo; 004import org.kuali.ole.deliver.bo.OleEntityAddressBo; 005import org.kuali.ole.deliver.bo.OlePatronDocument; 006import org.kuali.rice.kim.impl.identity.email.EntityEmailBo; 007import org.kuali.rice.kim.impl.identity.entity.EntityBo; 008import org.kuali.rice.kim.impl.identity.phone.EntityPhoneBo; 009import org.kuali.rice.kim.impl.identity.type.EntityTypeContactInfoBo; 010 011import java.util.List; 012 013/** 014 * Created with IntelliJ IDEA. 015 * User: ? 016 * Date: 6/1/12 017 * Time: 8:28 PM 018 * To change this template use File | Settings | File Templates. 019 */ 020public interface OlePatronHelperService { 021 022 023 public boolean deletePatron(OlePatronDocument olePatronDocument); 024 025 public boolean checkAddressSource(List<OleAddressBo> oleAddresses); 026 027 public boolean checkPhoneMultipleDefault(List<EntityPhoneBo> phoneBoList); 028 029 public boolean checkAddressMultipleDefault(List<OleEntityAddressBo> addrBoList); 030 031 public boolean checkEmailMultipleDefault(List<EntityEmailBo> emailBoList); 032 033 public boolean isBorrowerTypeActive(OlePatronDocument olePatronDocument); 034 035 public List<OleAddressBo> retrieveOleAddressBo(EntityBo entityBo,OlePatronDocument olePatronDocument); 036 037 public EntityBo copyAndSaveEntityBo(OlePatronDocument patronDocument); 038 039 public EntityBo editAndSaveEntityBo(OlePatronDocument patronDocument); 040 041 public boolean validatePatron(OlePatronDocument patronDocument); 042 043 public String getPatronPreferredAddress(EntityTypeContactInfoBo entityTypeContactInfoBo) throws Exception; 044 045 public String getPatronHomePhoneNumber(EntityTypeContactInfoBo entityTypeContactInfoBo) throws Exception; 046 047 public String getPatronHomeEmailId(EntityTypeContactInfoBo entityTypeContactInfoBo) throws Exception; 048 049}