View Javadoc
1   /*
2    * Copyright 2007 The Kuali Foundation
3    * 
4    * Licensed under the Educational Community License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    * 
8    * http://www.opensource.org/licenses/ecl2.php
9    * 
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package org.kuali.ole.coa.businessobject;
17  
18  /**
19   * Encapsulates the result of scraping the government CFDA web-page.
20   */
21  public class CfdaUpdateResults {
22      private int numberOfRecordsRetrievedFromWebSite;
23      private int numberOfRecordsInKfsDatabase;
24      private int numberOfRecrodsNotUpdatedForHistoricalPurposes;
25      private int numberOfRecordsDeactivatedBecauseNoLongerOnWebSite;
26      private int numberOfRecordsReActivated;
27      private int numberOfRecordsNotUpdatedBecauseManual;
28      private int numberOfRecordsUpdatedBecauseAutomatic;
29      private int numberOfRecordsNewlyAddedFromWebSite;
30      private String message;
31  
32      /**
33       * @return
34       */
35      public int getNumberOfRecordsNewlyAddedFromWebSite() {
36          return numberOfRecordsNewlyAddedFromWebSite;
37      }
38  
39      /**
40       * @param numberOfRecordsNewlyAddedFromWebSite
41       */
42      public void setNumberOfRecordsNewlyAddedFromWebSite(int numberOfRecordsNewlyAddedFromWebSite) {
43          this.numberOfRecordsNewlyAddedFromWebSite = numberOfRecordsNewlyAddedFromWebSite;
44      }
45  
46      /**
47       * This method...
48       * 
49       * @return
50       */
51      public int getNumberOfRecordsReActivated() {
52          return numberOfRecordsReActivated;
53      }
54  
55      /**
56       * This method...
57       * 
58       * @param numberOfRecordsReActivated
59       */
60      public void setNumberOfRecordsReActivated(int numberOfRecordsReActivated) {
61          this.numberOfRecordsReActivated = numberOfRecordsReActivated;
62      }
63  
64      /**
65       * This method...
66       * 
67       * @return
68       */
69      public int getNumberOfRecordsDeactivatedBecauseNoLongerOnWebSite() {
70          return numberOfRecordsDeactivatedBecauseNoLongerOnWebSite;
71      }
72  
73      /**
74       * This method...
75       * 
76       * @param numberOfRecordsDeactivatedBecauseNoLongerOnWebSite
77       */
78      public void setNumberOfRecordsDeactivatedBecauseNoLongerOnWebSite(int numberOfRecordsDeactivatedBecauseNoLongerOnWebSite) {
79          this.numberOfRecordsDeactivatedBecauseNoLongerOnWebSite = numberOfRecordsDeactivatedBecauseNoLongerOnWebSite;
80      }
81  
82      /**
83       * This method...
84       * 
85       * @return
86       */
87      public int getNumberOfRecrodsNotUpdatedForHistoricalPurposes() {
88          return numberOfRecrodsNotUpdatedForHistoricalPurposes;
89      }
90  
91      /**
92       * This method...
93       * 
94       * @param numberOfRecrodsNotUpdatedForHistoricalPurposes
95       */
96      public void setNumberOfRecrodsNotUpdatedForHistoricalPurposes(int numberOfRecrodsNotUpdatedForHistoricalPurposes) {
97          this.numberOfRecrodsNotUpdatedForHistoricalPurposes = numberOfRecrodsNotUpdatedForHistoricalPurposes;
98      }
99  
100     /**
101      * This method...
102      * 
103      * @return
104      */
105     public int getNumberOfRecordsRetrievedFromWebSite() {
106         return numberOfRecordsRetrievedFromWebSite;
107     }
108 
109     /**
110      * This method...
111      * 
112      * @param numberOfRecordsRetrievedFromWebSite
113      */
114     public void setNumberOfRecordsRetrievedFromWebSite(int numberOfRecordsRetrievedFromWebSite) {
115         this.numberOfRecordsRetrievedFromWebSite = numberOfRecordsRetrievedFromWebSite;
116     }
117 
118     /**
119      * This method...
120      * 
121      * @return
122      */
123     public int getNumberOfRecordsInKfsDatabase() {
124         return numberOfRecordsInKfsDatabase;
125     }
126 
127     /**
128      * This method...
129      * 
130      * @param numberOfRecordsInKfsDatabase
131      */
132     public void setNumberOfRecordsInKfsDatabase(int numberOfRecordsInKfsDatabase) {
133         this.numberOfRecordsInKfsDatabase = numberOfRecordsInKfsDatabase;
134     }
135 
136     /**
137      * This method...
138      * 
139      * @return
140      */
141     public int getNumberOfRecordsUpdatedBecauseAutomatic() {
142         return numberOfRecordsUpdatedBecauseAutomatic;
143     }
144 
145     /**
146      * This method...
147      * 
148      * @param numberOfRecordsUpdatedBecauseAutomatic
149      */
150     public void setNumberOfRecordsUpdatedBecauseAutomatic(int numberOfRecordsUpdatedBecauseAutomatic) {
151         this.numberOfRecordsUpdatedBecauseAutomatic = numberOfRecordsUpdatedBecauseAutomatic;
152     }
153 
154     /**
155      * This method...
156      * 
157      * @return
158      */
159     public int getNumberOfRecordsNotUpdatedBecauseManual() {
160         return numberOfRecordsNotUpdatedBecauseManual;
161     }
162 
163     /**
164      * This method...
165      * 
166      * @param numberOfRecordsNotUpdatedBecauseManual
167      */
168     public void setNumberOfRecordsNotUpdatedBecauseManual(int numberOfRecordsNotUpdatedBecauseManual) {
169         this.numberOfRecordsNotUpdatedBecauseManual = numberOfRecordsNotUpdatedBecauseManual;
170     }
171 
172     /**
173      * This method...
174      * 
175      * @return
176      */
177     public String getMessage() {
178         return message;
179     }
180 
181     /**
182      * This method...
183      * 
184      * @param message
185      */
186     public void setMessage(String message) {
187         this.message = message;
188     }
189 
190 }