001    /**
002     * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
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 hostName, String[] ipAddresses,
029                    String[] macAddresses) {
030    
031                    _description = description;
032                    _expirationDate = expirationDate;
033                    _hostName = hostName;
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 getHostName() {
055                    return _hostName;
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 _hostName;
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    }