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.license;
016    
017    import java.util.Date;
018    
019    /**
020     * @author Amos Fong
021     */
022    public class LicenseInfo {
023    
024            public LicenseInfo(
025                    String owner, String description, String productEntryName,
026                    String productId, String productVersion, String licenseEntryType,
027                    String licenseVersion, Date startDate, Date expirationDate,
028                    long maxUsers, String[] hostNames, String[] ipAddresses,
029                    String[] macAddresses) {
030    
031                    _description = description;
032                    _expirationDate = expirationDate;
033                    _hostNames = hostNames;
034                    _ipAddresses = ipAddresses;
035                    _licenseEntryType = licenseEntryType;
036                    _licenseVersion = licenseVersion;
037                    _macAddresses = macAddresses;
038                    _maxUsers = maxUsers;
039                    _owner = owner;
040                    _productEntryName = productEntryName;
041                    _productId = productId;
042                    _productVersion = productVersion;
043                    _startDate = startDate;
044            }
045    
046            public String getDescription() {
047                    return _description;
048            }
049    
050            public Date getExpirationDate() {
051                    return _expirationDate;
052            }
053    
054            public String[] getHostNames() {
055                    return _hostNames;
056            }
057    
058            public String[] getIpAddresses() {
059                    return _ipAddresses;
060            }
061    
062            public String getLicenseEntryType() {
063                    return _licenseEntryType;
064            }
065    
066            public String getLicenseVersion() {
067                    return _licenseVersion;
068            }
069    
070            public String[] getMacAddresses() {
071                    return _macAddresses;
072            }
073    
074            public long getMaxUsers() {
075                    return _maxUsers;
076            }
077    
078            public String getOwner() {
079                    return _owner;
080            }
081    
082            public String getProductEntryName() {
083                    return _productEntryName;
084            }
085    
086            public String getProductId() {
087                    return _productId;
088            }
089    
090            public String getProductVersion() {
091                    return _productVersion;
092            }
093    
094            public Date getStartDate() {
095                    return _startDate;
096            }
097    
098            private String _description;
099            private Date _expirationDate;
100            private String[] _hostNames;
101            private String[] _ipAddresses;
102            private String _licenseEntryType;
103            private String _licenseVersion;
104            private String[] _macAddresses;
105            private long _maxUsers;
106            private String _owner;
107            private String _productEntryName;
108            private String _productId;
109            private String _productVersion;
110            private Date _startDate;
111    
112    }