1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portal.kernel.workflow;
16  
17  import java.io.Serializable;
18  
19  import java.util.Date;
20  
21  /**
22   * <a href="DefaultWorkflowLog.java.html"><b><i>View Source</i></b></a>
23   *
24   * @author Shuyang Zhou
25   * @author Brian Wing Shun Chan
26   * @author Marcellus Tavares
27   */
28  public class DefaultWorkflowLog implements Serializable, WorkflowLog {
29  
30      public String getComment() {
31          return _comment;
32      }
33  
34      public Date getCreateDate() {
35          return _createDate;
36      }
37  
38      public String getPreviousState() {
39          return _previousState;
40      }
41  
42      public long getPreviousUserId() {
43          return _previousUserId;
44      }
45  
46      public String getState() {
47          return _state;
48      }
49  
50      public int getType() {
51          return _type;
52      }
53  
54      public long getUserId() {
55          return _userId;
56      }
57  
58      public long getWorkflowLogId() {
59          return _workflowLogId;
60      }
61  
62      public long getWorkflowTaskId() {
63          return _workflowTaskId;
64      }
65  
66      public void setComment(String comment) {
67          _comment = comment;
68      }
69  
70      public void setCreateDate(Date createDate) {
71          _createDate = createDate;
72      }
73  
74      public void setPreviousState(String previousState) {
75          _previousState = previousState;
76      }
77  
78      public void setPreviousUserId(long previousUserId) {
79          _previousUserId = previousUserId;
80      }
81  
82      public void setState(String state) {
83          _state = state;
84      }
85  
86      public void setType(int type) {
87          _type = type;
88      }
89  
90      public void setUserId(long userId) {
91          _userId = userId;
92      }
93  
94      public void setWorkflowLogId(long workflowLogId) {
95          _workflowLogId = workflowLogId;
96      }
97  
98      public void setWorkflowTaskId(long workflowTaskId) {
99          _workflowTaskId = workflowTaskId;
100     }
101 
102     private String _comment;
103     private Date _createDate;
104     private String _previousState;
105     private long _previousUserId;
106     private String _state;
107     private int _type;
108     private long _userId;
109     private long _workflowLogId;
110     private long _workflowTaskId;
111 
112 }