001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.kernel.workflow;
016    
017    import java.io.Serializable;
018    
019    import java.util.Date;
020    
021    /**
022     * @author Shuyang Zhou
023     * @author Brian Wing Shun Chan
024     * @author Marcellus Tavares
025     */
026    public class DefaultWorkflowLog implements Serializable, WorkflowLog {
027    
028            public String getComment() {
029                    return _comment;
030            }
031    
032            public Date getCreateDate() {
033                    return _createDate;
034            }
035    
036            public long getPreviousRoleId() {
037                    return _previousRoleId;
038            }
039    
040            public String getPreviousState() {
041                    return _previousState;
042            }
043    
044            public long getPreviousUserId() {
045                    return _previousUserId;
046            }
047    
048            public long getRoleId() {
049                    return _roleId;
050            }
051    
052            public String getState() {
053                    return _state;
054            }
055    
056            public int getType() {
057                    return _type;
058            }
059    
060            public long getUserId() {
061                    return _userId;
062            }
063    
064            public long getWorkflowLogId() {
065                    return _workflowLogId;
066            }
067    
068            public long getWorkflowTaskId() {
069                    return _workflowTaskId;
070            }
071    
072            public void setComment(String comment) {
073                    _comment = comment;
074            }
075    
076            public void setCreateDate(Date createDate) {
077                    _createDate = createDate;
078            }
079    
080            public void setPreviousRoleId(long previousRoleId) {
081                    _previousRoleId = previousRoleId;
082            }
083    
084            public void setPreviousState(String previousState) {
085                    _previousState = previousState;
086            }
087    
088            public void setPreviousUserId(long previousUserId) {
089                    _previousUserId = previousUserId;
090            }
091    
092            public void setRoleId(long roleId) {
093                    _roleId = roleId;
094            }
095    
096            public void setState(String state) {
097                    _state = state;
098            }
099    
100            public void setType(int type) {
101                    _type = type;
102            }
103    
104            public void setUserId(long userId) {
105                    _userId = userId;
106            }
107    
108            public void setWorkflowLogId(long workflowLogId) {
109                    _workflowLogId = workflowLogId;
110            }
111    
112            public void setWorkflowTaskId(long workflowTaskId) {
113                    _workflowTaskId = workflowTaskId;
114            }
115    
116            private String _comment;
117            private Date _createDate;
118            private long _previousRoleId;
119            private String _previousState;
120            private long _previousUserId;
121            private String _state;
122            private int _type;
123            private long _userId;
124            private long _roleId;
125            private long _workflowLogId;
126            private long _workflowTaskId;
127    
128    }