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