001    /**
002     * Copyright (c) 2000-present 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.diff;
016    
017    import java.util.Date;
018    
019    /**
020     * @author Eudaldo Alonso
021     */
022    public class DiffVersion {
023    
024            public DiffVersion(long userId, double version, Date modifiedDate) {
025                    _userId = userId;
026                    _version = version;
027                    _modifiedDate = modifiedDate;
028            }
029    
030            public DiffVersion(
031                    long userId, double version, Date modifiedDate, String summary,
032                    String extraInfo) {
033    
034                    _userId = userId;
035                    _version = version;
036                    _modifiedDate = modifiedDate;
037                    _summary = summary;
038                    _extraInfo = extraInfo;
039            }
040    
041            public String getExtraInfo() {
042                    return _extraInfo;
043            }
044    
045            public Date getModifiedDate() {
046                    return _modifiedDate;
047            }
048    
049            public String getSummary() {
050                    return _summary;
051            }
052    
053            public long getUserId() {
054                    return _userId;
055            }
056    
057            public double getVersion() {
058                    return _version;
059            }
060    
061            public void setExtraInfo(String extraInfo) {
062                    _extraInfo = extraInfo;
063            }
064    
065            public void setModifiedDate(Date modifiedDate) {
066                    _modifiedDate = modifiedDate;
067            }
068    
069            public void setSummary(String summary) {
070                    _summary = summary;
071            }
072    
073            public void setUserId(long userId) {
074                    _userId = userId;
075            }
076    
077            public void setVersion(double version) {
078                    _version = version;
079            }
080    
081            private String _extraInfo;
082            private Date _modifiedDate;
083            private String _summary;
084            private long _userId;
085            private double _version;
086    
087    }