View Javadoc

1   package org.kuali.ole.license.bo;
2   
3   import org.kuali.rice.core.api.CoreApiServiceLocator;
4   import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
5   
6   import java.sql.Timestamp;
7   
8   /**
9    * OleEventLogBo is the business object class for License Request Maintenance Document.
10   */
11  public class OleEventLogBo extends PersistableBusinessObjectBase{
12  
13      private String oleEventLogId;
14      private String eventType;
15      private Timestamp createdDate;
16      private String createdBy;
17      private String eventDescription;
18      private String oleLicenseRequestId;
19  
20      private OleLicenseRequestBo oleLicenseRequestBo = new OleLicenseRequestBo();
21  
22      /**
23       *  Gets the oleEventLogId attribute.
24       * @return  Returns the oleEventLogId
25       */
26      public String getOleEventLogId() {
27          return oleEventLogId;
28      }
29  
30      /**
31       * Sets the oleEventLogId attribute value.
32       * @param oleEventLogId The oleEventLogId to set.
33       */
34      public void setOleEventLogId(String oleEventLogId) {
35          this.oleEventLogId = oleEventLogId;
36      }
37  
38      /**
39       *  Gets the eventType attribute.
40       * @return  Returns the eventType
41       */
42      public String getEventType() {
43          return eventType;
44      }
45  
46      /**
47       * Sets the eventType attribute value.
48       * @param eventType The eventType to set.
49       */
50      public void setEventType(String eventType) {
51          this.eventType = eventType;
52      }
53  
54      /**
55       *  Gets the createdDate attribute.
56       * @return  Returns the createdDate
57       */
58      public Timestamp getCreatedDate() {
59          return createdDate;
60      }
61  
62      /**
63       * Sets the createdDate attribute value.
64       * @param createdDate The createdDate to set.
65       */
66      public void setCreatedDate(Timestamp createdDate) {
67          this.createdDate = createdDate;
68      }
69  
70      /**
71       *  Gets the createdBy attribute.
72       * @return  Returns the createdBy
73       */
74      public String getCreatedBy() {
75          return createdBy;
76      }
77  
78      /**
79       * Sets the createdBy attribute value.
80       * @param createdBy The createdBy to set.
81       */
82      public void setCreatedBy(String createdBy) {
83          this.createdBy = createdBy;
84      }
85  
86      /**
87       *  Gets the eventDescription attribute.
88       * @return  Returns the eventDescription
89       */
90      public String getEventDescription() {
91          return eventDescription;
92      }
93  
94      /**
95       * Sets the eventDescription attribute value.
96       * @param eventDescription The eventDescription to set.
97       */
98      public void setEventDescription(String eventDescription) {
99          this.eventDescription = eventDescription;
100     }
101 
102     /**
103      *  Gets the oleLicenseRequestId attribute.
104      * @return  Returns the oleLicenseRequestId
105      */
106     public String getOleLicenseRequestId() {
107         return oleLicenseRequestId;
108     }
109 
110     /**
111      * Sets the oleLicenseRequestId attribute value.
112      * @param oleLicenseRequestId The oleLicenseRequestId to set.
113      */
114     public void setOleLicenseRequestId(String oleLicenseRequestId) {
115         this.oleLicenseRequestId = oleLicenseRequestId;
116     }
117 
118     /**
119      *  Gets the oleLicenseRequestBo attribute.
120      * @return  Returns the oleLicenseRequestBo
121      */
122     public OleLicenseRequestBo getOleLicenseRequestBo() {
123         return oleLicenseRequestBo;
124     }
125 
126     /**
127      * Sets the oleLicenseRequestBo attribute value.
128      * @param oleLicenseRequestBo The oleLicenseRequestBo to set.
129      */
130     public void setOleLicenseRequestBo(OleLicenseRequestBo oleLicenseRequestBo) {
131         this.oleLicenseRequestBo = oleLicenseRequestBo;
132     }
133 
134     /**
135      * set the timestamp attribute value.
136      */
137     public void setCurrentTimeStamp() {
138        final Timestamp now = CoreApiServiceLocator.getDateTimeService().getCurrentTimestamp();
139         this.setCreatedDate(now);
140     }
141 }