View Javadoc

1   package org.kuali.ole.service;
2   
3   import org.kuali.ole.deliver.request.api.OleDeliverRequestDefinition;
4   import org.kuali.ole.myaccount.renewal.bo.OlePatronLoanDocuments;
5   import org.kuali.ole.patron.api.OleEntityAddressDefinition;
6   import org.kuali.ole.patron.api.OlePatronDefinition;
7   import org.kuali.ole.patron.api.OlePatronNotesDefinition;
8   import org.kuali.ole.patron.api.OlePatronQueryResults;
9   import org.kuali.rice.core.api.criteria.QueryByCriteria;
10  import org.kuali.rice.kim.api.identity.address.EntityAddress;
11  import org.kuali.rice.kim.api.identity.email.EntityEmail;
12  import org.kuali.rice.kim.api.identity.entity.Entity;
13  import org.kuali.rice.kim.api.identity.name.EntityName;
14  import org.kuali.rice.kim.api.identity.phone.EntityPhone;
15  import org.kuali.rice.kim.api.identity.type.EntityTypeContactInfo;
16  
17  import javax.jws.WebService;
18  import javax.jws.soap.SOAPBinding;
19  import java.util.List;
20  
21  /**
22   * Created by IntelliJ IDEA.
23   * User: pvsubrah
24   * Date: 5/9/12
25   * Time: 2:52 PM
26   * To change this template use File | Settings | File Templates.
27   */
28  @WebService(name = "olePatronService", targetNamespace = "http://service.ole.kuali.org/")
29  @SOAPBinding(style = SOAPBinding.Style.DOCUMENT, use = SOAPBinding.Use.LITERAL, parameterStyle = SOAPBinding.ParameterStyle.WRAPPED)
30  public interface OlePatronService {
31  
32      public OlePatronDefinition getPatron(String patronId);
33  
34      public OlePatronDefinition createPatron(OlePatronDefinition olePatron);
35  
36      public OlePatronDefinition updatePatron(OlePatronDefinition olePatron);
37  
38      public OlePatronDefinition inactivatePatron(String patronId);
39  
40      public void addNameToEntity(EntityName name, Entity entity);
41  
42      public EntityName updateName(EntityName name);
43  
44      public boolean inactivateName(String nameId);
45  
46      public void addEmailToEntity(List<EntityEmail> emails, EntityTypeContactInfo entityTypeContactInfo);
47  
48      public boolean updateEmail(EntityEmail entityEmail);
49  
50      public boolean inactivateEmail(String emailId);
51  
52      public void addAddressToEntity(List<OleEntityAddressDefinition> oleEntityAddress, EntityTypeContactInfo entityTypeContactInfo);
53  
54      public boolean updateAddress(EntityAddress entityAddress);
55  
56      public boolean inactivateAddress(String addressId);
57  
58      public void addPhoneToEntity(List<EntityPhone> entityPhone, EntityTypeContactInfo entityTypeContactInfo);
59  
60      public boolean updatePhone(EntityPhone entityPhone);
61  
62      public boolean inactivatePhone(String phoneId);
63  
64      public boolean addNoteToPatron(OlePatronNotesDefinition patronNote);
65  
66      public boolean updateNote(OlePatronNotesDefinition patronNote);
67  
68      public boolean inactivateNote(String patronNoteId);
69  
70      public OlePatronQueryResults getPatrons();
71  
72      public OlePatronQueryResults findPatron(QueryByCriteria queryCriteria);
73  
74      public void deletePatronBatchProgram();
75      // renewal by patron methods
76  
77      public OlePatronLoanDocuments getPatronLoanedItems(String patronBarcode);
78  
79      public List<OleDeliverRequestDefinition> getPatronRequestItems(String patronId);
80  
81      public OlePatronLoanDocuments performRenewalItems(OlePatronLoanDocuments olePatronLoanDocuments);
82  
83  }