001: /*
002: * Copyright 2007 The Kuali Foundation.
003: *
004: * Licensed under the Educational Community License, Version 1.0 (the "License");
005: * you may not use this file except in compliance with the License.
006: * You may obtain a copy of the License at
007: *
008: * http://www.opensource.org/licenses/ecl1.php
009: *
010: * Unless required by applicable law or agreed to in writing, software
011: * distributed under the License is distributed on an "AS IS" BASIS,
012: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013: * See the License for the specific language governing permissions and
014: * limitations under the License.
015: */
016: package org.kuali.module.cg.service;
017:
018: /**
019: * Encapsulates the result of scraping the government CFDA web-page.
020: */
021: public class CfdaUpdateResults {
022: private int numberOfRecordsRetrievedFromWebSite;
023: private int numberOfRecordsInKfsDatabase;
024: private int numberOfRecrodsNotUpdatedForHistoricalPurposes;
025: private int numberOfRecordsDeactivatedBecauseNoLongerOnWebSite;
026: private int numberOfRecordsReActivated;
027: private int numberOfRecordsNotUpdatedBecauseManual;
028: private int numberOfRecordsUpdatedBecauseAutomatic;
029: private int numberOfRecordsNewlyAddedFromWebSite;
030: private String message;
031:
032: /**
033: * @return
034: */
035: public int getNumberOfRecordsNewlyAddedFromWebSite() {
036: return numberOfRecordsNewlyAddedFromWebSite;
037: }
038:
039: /**
040: * @param numberOfRecordsNewlyAddedFromWebSite
041: */
042: public void setNumberOfRecordsNewlyAddedFromWebSite(
043: int numberOfRecordsNewlyAddedFromWebSite) {
044: this .numberOfRecordsNewlyAddedFromWebSite = numberOfRecordsNewlyAddedFromWebSite;
045: }
046:
047: /**
048: * This method...
049: *
050: * @return
051: */
052: public int getNumberOfRecordsReActivated() {
053: return numberOfRecordsReActivated;
054: }
055:
056: /**
057: * This method...
058: *
059: * @param numberOfRecordsReActivated
060: */
061: public void setNumberOfRecordsReActivated(
062: int numberOfRecordsReActivated) {
063: this .numberOfRecordsReActivated = numberOfRecordsReActivated;
064: }
065:
066: /**
067: * This method...
068: *
069: * @return
070: */
071: public int getNumberOfRecordsDeactivatedBecauseNoLongerOnWebSite() {
072: return numberOfRecordsDeactivatedBecauseNoLongerOnWebSite;
073: }
074:
075: /**
076: * This method...
077: *
078: * @param numberOfRecordsDeactivatedBecauseNoLongerOnWebSite
079: */
080: public void setNumberOfRecordsDeactivatedBecauseNoLongerOnWebSite(
081: int numberOfRecordsDeactivatedBecauseNoLongerOnWebSite) {
082: this .numberOfRecordsDeactivatedBecauseNoLongerOnWebSite = numberOfRecordsDeactivatedBecauseNoLongerOnWebSite;
083: }
084:
085: /**
086: * This method...
087: *
088: * @return
089: */
090: public int getNumberOfRecrodsNotUpdatedForHistoricalPurposes() {
091: return numberOfRecrodsNotUpdatedForHistoricalPurposes;
092: }
093:
094: /**
095: * This method...
096: *
097: * @param numberOfRecrodsNotUpdatedForHistoricalPurposes
098: */
099: public void setNumberOfRecrodsNotUpdatedForHistoricalPurposes(
100: int numberOfRecrodsNotUpdatedForHistoricalPurposes) {
101: this .numberOfRecrodsNotUpdatedForHistoricalPurposes = numberOfRecrodsNotUpdatedForHistoricalPurposes;
102: }
103:
104: /**
105: * This method...
106: *
107: * @return
108: */
109: public int getNumberOfRecordsRetrievedFromWebSite() {
110: return numberOfRecordsRetrievedFromWebSite;
111: }
112:
113: /**
114: * This method...
115: *
116: * @param numberOfRecordsRetrievedFromWebSite
117: */
118: public void setNumberOfRecordsRetrievedFromWebSite(
119: int numberOfRecordsRetrievedFromWebSite) {
120: this .numberOfRecordsRetrievedFromWebSite = numberOfRecordsRetrievedFromWebSite;
121: }
122:
123: /**
124: * This method...
125: *
126: * @return
127: */
128: public int getNumberOfRecordsInKfsDatabase() {
129: return numberOfRecordsInKfsDatabase;
130: }
131:
132: /**
133: * This method...
134: *
135: * @param numberOfRecordsInKfsDatabase
136: */
137: public void setNumberOfRecordsInKfsDatabase(
138: int numberOfRecordsInKfsDatabase) {
139: this .numberOfRecordsInKfsDatabase = numberOfRecordsInKfsDatabase;
140: }
141:
142: /**
143: * This method...
144: *
145: * @return
146: */
147: public int getNumberOfRecordsUpdatedBecauseAutomatic() {
148: return numberOfRecordsUpdatedBecauseAutomatic;
149: }
150:
151: /**
152: * This method...
153: *
154: * @param numberOfRecordsUpdatedBecauseAutomatic
155: */
156: public void setNumberOfRecordsUpdatedBecauseAutomatic(
157: int numberOfRecordsUpdatedBecauseAutomatic) {
158: this .numberOfRecordsUpdatedBecauseAutomatic = numberOfRecordsUpdatedBecauseAutomatic;
159: }
160:
161: /**
162: * This method...
163: *
164: * @return
165: */
166: public int getNumberOfRecordsNotUpdatedBecauseManual() {
167: return numberOfRecordsNotUpdatedBecauseManual;
168: }
169:
170: /**
171: * This method...
172: *
173: * @param numberOfRecordsNotUpdatedBecauseManual
174: */
175: public void setNumberOfRecordsNotUpdatedBecauseManual(
176: int numberOfRecordsNotUpdatedBecauseManual) {
177: this .numberOfRecordsNotUpdatedBecauseManual = numberOfRecordsNotUpdatedBecauseManual;
178: }
179:
180: /**
181: * This method...
182: *
183: * @return
184: */
185: public String getMessage() {
186: return message;
187: }
188:
189: /**
190: * This method...
191: *
192: * @param message
193: */
194: public void setMessage(String message) {
195: this.message = message;
196: }
197:
198: }
|