View Javadoc

1   package org.kuali.ole.describe.bo;
2   
3   import org.kuali.ole.docstore.discovery.model.SearchCondition;
4   import org.kuali.ole.docstore.discovery.model.SearchParams;
5   import org.springframework.web.multipart.MultipartFile;
6   
7   import java.util.ArrayList;
8   import java.util.List;
9   
10  /**
11   * Created with IntelliJ IDEA.
12   * User: PJ7789
13   * Date: 14/12/12
14   * Time: 5:37 PM
15   * To change this template use File | Settings | File Templates.
16   */
17  public class ImportBibSearch {
18  
19      private String source;
20      private int    recordsInFile;
21      private int recordsImported = 0;
22      private String                            selectedFileName;
23      private List<WorkBibDocumentSearchResult> localBibDocumentSearchResults;
24      private List<WorkBibDocumentSearchResult> externalBibDocumentSearchResults;
25      private boolean                           returnCheck;
26      //    private SearchParams searchParams;
27      private WorkBibDocumentSearchResult       selectedMarc;
28      private MultipartFile                     locationFile;
29  
30  
31      /*  public ImportBibSearch() {
32          List<SearchCondition> searchConditions = getSearchParams().getSearchFieldsList();
33          if (null == searchConditions) {
34              searchConditions = new ArrayList<SearchCondition>();
35          }
36          searchConditions.add(new SearchCondition());
37          searchConditions.add(new SearchCondition());
38      }*/
39  
40      public String getSource() {
41          return source;
42      }
43  
44      public void setSource(String source) {
45          this.source = source;
46      }
47  
48      public int getRecordsInFile() {
49          return recordsInFile;
50      }
51  
52      public void setRecordsInFile(int recordsInFile) {
53          this.recordsInFile = recordsInFile;
54      }
55  
56      public int getRecordsImported() {
57          return recordsImported;
58      }
59  
60      public void setRecordsImported(int recordsImported) {
61          this.recordsImported = recordsImported;
62      }
63  
64      public String getSelectedFileName() {
65          return selectedFileName;
66      }
67  
68      public void setSelectedFileName(String selectedFileName) {
69          this.selectedFileName = selectedFileName;
70      }
71  
72      public List<WorkBibDocumentSearchResult> getLocalBibDocumentSearchResults() {
73          return localBibDocumentSearchResults;
74      }
75  
76      public void setLocalBibDocumentSearchResults(List<WorkBibDocumentSearchResult> localBibDocumentSearchResults) {
77          this.localBibDocumentSearchResults = localBibDocumentSearchResults;
78      }
79  
80      public List<WorkBibDocumentSearchResult> getExternalBibDocumentSearchResults() {
81          return externalBibDocumentSearchResults;
82      }
83  
84      public void setExternalBibDocumentSearchResults(
85              List<WorkBibDocumentSearchResult> externalBibDocumentSearchResults) {
86          this.externalBibDocumentSearchResults = externalBibDocumentSearchResults;
87      }
88  
89      public boolean isReturnCheck() {
90          return returnCheck;
91      }
92  
93      public void setReturnCheck(boolean returnCheck) {
94          this.returnCheck = returnCheck;
95      }
96  
97      /* public SearchParams getSearchParams() {
98          if (null == searchParams) {
99              searchParams = new SearchParams();
100         }
101         return searchParams;
102     }
103 
104     public void setSearchParams(SearchParams searchParams) {
105         this.searchParams = searchParams;
106     }*/
107 
108     public WorkBibDocumentSearchResult getSelectedMarc() {
109         return selectedMarc;
110     }
111 
112     public void setSelectedMarc(WorkBibDocumentSearchResult selectedMarc) {
113         this.selectedMarc = selectedMarc;
114     }
115 
116     public MultipartFile getLocationFile() {
117         return locationFile;
118     }
119 
120     public void setLocationFile(MultipartFile locationFile) {
121         this.locationFile = locationFile;
122     }
123 }