View Javadoc
1   package org.kuali.ole.select.bo;
2   
3   
4   import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
5   import org.kuali.rice.krad.service.KRADServiceLocator;
6   
7   import java.util.HashMap;
8   import java.util.List;
9   import java.util.Map;
10  
11  /**
12   * Created with IntelliJ IDEA.
13   * User: vivekb
14   * Date: 12/27/13
15   * Time: 8:51 PM
16   * To change this template use File | Settings | File Templates.
17   */
18  public class OLEClaimNoticeBo extends PersistableBusinessObjectBase{
19      private String id;
20      private String nameOfTheSender;
21      private String nameOfTheVendor;
22      private String claimDate;
23      private String claimCount;
24      private String claimType;
25      private String title;
26      private String placeOfPublication;
27      private String publication;
28      private String publicationDate;
29      private String enumeration;
30      private String chronology;
31      private String vendorsLibraryAcctNum;
32      private String vendorOrderNumber;
33      private String vendorTitleNumber;
34      private String libraryPurchaseOrderNumber;
35      private String unboundLocation;
36      private String mailAddress;
37      private boolean active;
38      private String claimTypeName;
39  
40  
41      public String getClaimTypeName() {
42          if(claimType!=null){
43              Map<String,String> map = new HashMap<>();
44              map.put("oleClaimTypeCode",claimType);
45              List<OLEClaimType> oleClaimTypeList = (List<OLEClaimType>) KRADServiceLocator.getBusinessObjectService().findMatching(OLEClaimType.class, map);
46              claimTypeName = oleClaimTypeList!=null&& oleClaimTypeList.size()>0 ? oleClaimTypeList.get(0).getOleClaimTypeName() : "";
47          }
48          return claimTypeName;
49      }
50  
51      public void setClaimTypeName(String claimTypeName) {
52          this.claimTypeName = claimTypeName;
53      }
54  
55      public String getMailAddress() {
56          return mailAddress;
57      }
58  
59      public void setMailAddress(String mailAddress) {
60          this.mailAddress = mailAddress;
61      }
62  
63      public boolean isActive() {
64          return active;
65      }
66  
67      public void setActive(boolean active) {
68          this.active = active;
69      }
70  
71      public String getId() {
72          return id;
73      }
74  
75      public void setId(String id) {
76          this.id = id;
77      }
78  
79      public String getNameOfTheSender() {
80          return nameOfTheSender;
81      }
82  
83      public void setNameOfTheSender(String nameOfTheSender) {
84          this.nameOfTheSender = nameOfTheSender;
85      }
86  
87      public String getNameOfTheVendor() {
88          return nameOfTheVendor;
89      }
90  
91      public void setNameOfTheVendor(String nameOfTheVendor) {
92          this.nameOfTheVendor = nameOfTheVendor;
93      }
94  
95      public String getClaimDate() {
96          return claimDate;
97      }
98  
99      public void setClaimDate(String claimDate) {
100         this.claimDate = claimDate;
101     }
102 
103     public String getClaimCount() {
104         return claimCount;
105     }
106 
107     public void setClaimCount(String claimCount) {
108         this.claimCount = claimCount;
109     }
110 
111     public String getClaimType() {
112         return claimType;
113     }
114 
115     public void setClaimType(String claimType) {
116         this.claimType = claimType;
117     }
118 
119     public String getTitle() {
120         return title;
121     }
122 
123     public void setTitle(String title) {
124         this.title = title;
125     }
126 
127     public String getPlaceOfPublication() {
128         return placeOfPublication;
129     }
130 
131     public void setPlaceOfPublication(String placeOfPublication) {
132         this.placeOfPublication = placeOfPublication;
133     }
134 
135     public String getPublication() {
136         return publication;
137     }
138 
139     public void setPublication(String publication) {
140         this.publication = publication;
141     }
142 
143     public String getPublicationDate() {
144         return publicationDate;
145     }
146 
147     public void setPublicationDate(String publicationDate) {
148         this.publicationDate = publicationDate;
149     }
150 
151     public String getEnumeration() {
152         return enumeration;
153     }
154 
155     public void setEnumeration(String enumeration) {
156         this.enumeration = enumeration;
157     }
158 
159     public String getChronology() {
160         return chronology;
161     }
162 
163     public void setChronology(String chronology) {
164         this.chronology = chronology;
165     }
166 
167     public String getVendorsLibraryAcctNum() {
168         return vendorsLibraryAcctNum;
169     }
170 
171     public void setVendorsLibraryAcctNum(String vendorsLibraryAcctNum) {
172         this.vendorsLibraryAcctNum = vendorsLibraryAcctNum;
173     }
174 
175     public String getVendorOrderNumber() {
176         return vendorOrderNumber;
177     }
178 
179     public void setVendorOrderNumber(String vendorOrderNumber) {
180         this.vendorOrderNumber = vendorOrderNumber;
181     }
182 
183     public String getVendorTitleNumber() {
184         return vendorTitleNumber;
185     }
186 
187     public void setVendorTitleNumber(String vendorTitleNumber) {
188         this.vendorTitleNumber = vendorTitleNumber;
189     }
190 
191     public String getLibraryPurchaseOrderNumber() {
192         return libraryPurchaseOrderNumber;
193     }
194 
195     public void setLibraryPurchaseOrderNumber(String libraryPurchaseOrderNumber) {
196         this.libraryPurchaseOrderNumber = libraryPurchaseOrderNumber;
197     }
198 
199     public String getUnboundLocation() {
200         return unboundLocation;
201     }
202 
203     public void setUnboundLocation(String unboundLocation) {
204         this.unboundLocation = unboundLocation;
205     }
206 }