001    /**
002     * Copyright (c) 2000-2013 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            @Override
029            public long getAuditUserId() {
030                    return _auditUserId;
031            }
032    
033            @Override
034            public String getComment() {
035                    return _comment;
036            }
037    
038            @Override
039            public Date getCreateDate() {
040                    return _createDate;
041            }
042    
043            @Override
044            public long getPreviousRoleId() {
045                    return _previousRoleId;
046            }
047    
048            @Override
049            public String getPreviousState() {
050                    return _previousState;
051            }
052    
053            @Override
054            public long getPreviousUserId() {
055                    return _previousUserId;
056            }
057    
058            @Override
059            public long getRoleId() {
060                    return _roleId;
061            }
062    
063            @Override
064            public String getState() {
065                    return _state;
066            }
067    
068            @Override
069            public int getType() {
070                    return _type;
071            }
072    
073            @Override
074            public long getUserId() {
075                    return _userId;
076            }
077    
078            @Override
079            public long getWorkflowLogId() {
080                    return _workflowLogId;
081            }
082    
083            @Override
084            public long getWorkflowTaskId() {
085                    return _workflowTaskId;
086            }
087    
088            public void setAuditUserId(long auditUserId) {
089                    _auditUserId = auditUserId;
090            }
091    
092            public void setComment(String comment) {
093                    _comment = comment;
094            }
095    
096            public void setCreateDate(Date createDate) {
097                    _createDate = createDate;
098            }
099    
100            public void setPreviousRoleId(long previousRoleId) {
101                    _previousRoleId = previousRoleId;
102            }
103    
104            public void setPreviousState(String previousState) {
105                    _previousState = previousState;
106            }
107    
108            public void setPreviousUserId(long previousUserId) {
109                    _previousUserId = previousUserId;
110            }
111    
112            public void setRoleId(long roleId) {
113                    _roleId = roleId;
114            }
115    
116            public void setState(String state) {
117                    _state = state;
118            }
119    
120            public void setType(int type) {
121                    _type = type;
122            }
123    
124            public void setUserId(long userId) {
125                    _userId = userId;
126            }
127    
128            public void setWorkflowLogId(long workflowLogId) {
129                    _workflowLogId = workflowLogId;
130            }
131    
132            public void setWorkflowTaskId(long workflowTaskId) {
133                    _workflowTaskId = workflowTaskId;
134            }
135    
136            private long _auditUserId;
137            private String _comment;
138            private Date _createDate;
139            private long _previousRoleId;
140            private String _previousState;
141            private long _previousUserId;
142            private long _roleId;
143            private String _state;
144            private int _type;
145            private long _userId;
146            private long _workflowLogId;
147            private long _workflowTaskId;
148    
149    }