View Javadoc
1   package org.kuali.ole.select.bo;
2   
3   import org.apache.commons.lang.StringUtils;
4   import org.kuali.rice.core.api.CoreApiServiceLocator;
5   import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
6   
7   import java.sql.Timestamp;
8   
9   /**
10   * OleAgreementDocumentMetadata is the business object class for Agreement.
11   */
12  public class OleAgreementDocumentMetadata extends PersistableBusinessObjectBase {
13      private Timestamp uploadedDate;
14      private String uploadedBy;
15      private String agreementType;
16      private String agreementName;
17      private String agreementFileName;
18      private String agreementNotes;
19      private String agreementVersion;
20      private String agreementMimeType;
21      private String agreementUUID;
22      private String oleAgreementDocumentId;
23      private String oleLicenseRequestId;
24      private OleLicenseRequestBo oleLicenseRequestBo;
25      private String selected;
26  
27      /**
28       * Gets the uploadedDate attribute.
29       *
30       * @return Returns the uploadedDate
31       */
32      public Timestamp getUploadedDate() {
33          return uploadedDate;
34      }
35  
36      /**
37       * Sets the uploadedDate attribute value.
38       *
39       * @param uploadedDate The uploadedDate to set.
40       */
41      public void setUploadedDate(Timestamp uploadedDate) {
42          this.uploadedDate = uploadedDate;
43      }
44  
45      /**
46       * Gets the uploadedBy attribute.
47       *
48       * @return Returns the uploadedBy
49       */
50      public String getUploadedBy() {
51          return uploadedBy;
52      }
53  
54      /**
55       * Sets the uploadedBy attribute value.
56       *
57       * @param uploadedBy The uploadedBy to set.
58       */
59      public void setUploadedBy(String uploadedBy) {
60          this.uploadedBy = uploadedBy;
61      }
62  
63      /**
64       * Gets the agreementType attribute.
65       *
66       * @return Returns the agreementType
67       */
68      public String getAgreementType() {
69          return agreementType;
70      }
71  
72      /**
73       * Sets the agreementType attribute value.
74       *
75       * @param agreementType The agreementType to set.
76       */
77      public void setAgreementType(String agreementType) {
78          this.agreementType = agreementType;
79      }
80  
81      /**
82       * Gets the agreementName attribute.
83       *
84       * @return Returns the agreementName
85       */
86      public String getAgreementName() {
87          return agreementName;
88      }
89  
90      /**
91       * Sets the agreementName attribute value.
92       *
93       * @param agreementName The agreementName to set.
94       */
95      public void setAgreementName(String agreementName) {
96          this.agreementName = agreementName;
97      }
98  
99      /**
100      * Gets the agreementFileName attribute.
101      *
102      * @return Returns the agreementFileName
103      */
104     public String getAgreementFileName() {
105         return agreementFileName;
106     }
107 
108     /**
109      * Sets the agreementFileName attribute value.
110      *
111      * @param agreementFileName The agreementFileName to set.
112      */
113     public void setAgreementFileName(String agreementFileName) {
114         this.agreementFileName = agreementFileName;
115     }
116 
117     /**
118      * Gets the agreementNotes attribute.
119      *
120      * @return Returns the agreementNotes
121      */
122     public String getAgreementNotes() {
123         return agreementNotes;
124     }
125 
126     /**
127      * Sets the agreementNotes attribute value.
128      *
129      * @param agreementNotes The agreementNotes to set.
130      */
131     public void setAgreementNotes(String agreementNotes) {
132         this.agreementNotes = agreementNotes;
133     }
134 
135     /**
136      * Gets the agreementVersion attribute.
137      *
138      * @return Returns the agreementVersion
139      */
140     public String getAgreementVersion() {
141         return agreementVersion;
142     }
143 
144     /**
145      * Sets the agreementVersion attribute value.
146      *
147      * @param agreementVersion The agreementVersion to set.
148      */
149     public void setAgreementVersion(String agreementVersion) {
150         this.agreementVersion = agreementVersion;
151     }
152 
153     /**
154      * Gets the agreementMimeType attribute.
155      *
156      * @return Returns the agreementMimeType
157      */
158     public String getAgreementMimeType() {
159         return agreementMimeType;
160     }
161 
162     /**
163      * Sets the agreementMimeType attribute value.
164      *
165      * @param agreementMimeType The agreementMimeType to set.
166      */
167     public void setAgreementMimeType(String agreementMimeType) {
168         this.agreementMimeType = agreementMimeType;
169     }
170 
171     /**
172      * Gets the agreementUUID attribute.
173      *
174      * @return Returns the agreementUUID
175      */
176     public String getAgreementUUID() {
177         return agreementUUID;
178     }
179 
180     /**
181      * Sets the agreementUUID attribute value.
182      *
183      * @param agreementUUID The agreementUUID to set.
184      */
185     public void setAgreementUUID(String agreementUUID) {
186         this.agreementUUID = agreementUUID;
187     }
188 
189     /**
190      * Gets the oleAgreementDocumentId attribute.
191      *
192      * @return Returns the oleAgreementDocumentId
193      */
194     public String getOleAgreementDocumentId() {
195         return oleAgreementDocumentId;
196     }
197 
198     /**
199      * Sets the oleAgreementDocumentId attribute value.
200      *
201      * @param oleAgreementDocumentId The oleAgreementDocumentId to set.
202      */
203     public void setOleAgreementDocumentId(String oleAgreementDocumentId) {
204         this.oleAgreementDocumentId = oleAgreementDocumentId;
205     }
206 
207     /**
208      * Gets the oleLicenseRequestId attribute.
209      *
210      * @return Returns the oleLicenseRequestId
211      */
212     public String getOleLicenseRequestId() {
213         return oleLicenseRequestId;
214     }
215 
216     /**
217      * Sets the oleLicenseRequestId attribute value.
218      *
219      * @param oleLicenseRequestId The oleLicenseRequestId to set.
220      */
221     public void setOleLicenseRequestId(String oleLicenseRequestId) {
222         this.oleLicenseRequestId = oleLicenseRequestId;
223     }
224 
225     /**
226      * Gets the oleLicenseRequestBo attribute.
227      *
228      * @return Returns the oleLicenseRequestBo
229      */
230     public OleLicenseRequestBo getOleLicenseRequestBo() {
231         return oleLicenseRequestBo;
232     }
233 
234     /**
235      * Sets the oleLicenseRequestBo attribute value.
236      *
237      * @param oleLicenseRequestBo The oleLicenseRequestBo to set.
238      */
239     public void setOleLicenseRequestBo(OleLicenseRequestBo oleLicenseRequestBo) {
240         this.oleLicenseRequestBo = oleLicenseRequestBo;
241     }
242 
243     /**
244      * Gets the isComplete attribute.
245      *
246      * @return boolean
247      */
248     public boolean isComplete() {
249         return StringUtils.isNotBlank(agreementFileName) && StringUtils.isNotBlank(agreementMimeType);
250     }
251 
252     /**
253      * Sets the setUploadedDate attribute value.
254      */
255     public void setCurrentTimeStamp() {
256         final Timestamp now = CoreApiServiceLocator.getDateTimeService().getCurrentTimestamp();
257         this.setUploadedDate(now);
258     }
259 
260     public String getSelected() {
261         return selected;
262     }
263 
264     public void setSelected(String selected) {
265         this.selected = selected;
266     }
267 }