001    /**
002     * Copyright (c) 2000-2011 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 accountEntryName, String owner, String description,
026                    String productEntryName, String productId, String productVersion,
027                    String licenseEntryName, String licenseEntryType, String licenseVersion,
028                    Date startDate, Date expirationDate, int maxServers,
029                    int maxHttpSessions, long maxConcurrentUsers, long maxUsers,
030                    String hostName, String[] ipAddresses, String[] macAddresses,
031                    String[] serverIds) {
032    
033                    _accountEntryName = accountEntryName;
034                    _description = description;
035                    _expirationDate = expirationDate;
036                    _hostName = hostName;
037                    _ipAddresses = ipAddresses;
038                    _licenseEntryName = licenseEntryName;
039                    _licenseEntryType = licenseEntryType;
040                    _licenseVersion = licenseVersion;
041                    _macAddresses = macAddresses;
042                    _maxConcurrentUsers = maxConcurrentUsers;
043                    _maxHttpSessions = maxHttpSessions;
044                    _maxServers = maxServers;
045                    _maxUsers = maxUsers;
046                    _owner = owner;
047                    _productEntryName = productEntryName;
048                    _productId = productId;
049                    _productVersion = productVersion;
050                    _serverIds = serverIds;
051                    _startDate = startDate;
052            }
053    
054            public String getAccountEntryName() {
055                    return _accountEntryName;
056            }
057    
058            public String getDescription() {
059                    return _description;
060            }
061    
062            public Date getExpirationDate() {
063                    return _expirationDate;
064            }
065    
066            public String getHostName() {
067                    return _hostName;
068            }
069    
070            public String[] getIpAddresses() {
071                    return _ipAddresses;
072            }
073    
074            public String getLicenseEntryName() {
075                    return _licenseEntryName;
076            }
077    
078            public String getLicenseEntryType() {
079                    return _licenseEntryType;
080            }
081    
082            public String getLicenseVersion() {
083                    return _licenseVersion;
084            }
085    
086            public String[] getMacAddresses() {
087                    return _macAddresses;
088            }
089    
090            public long getMaxConcurrentUsers() {
091                    return _maxConcurrentUsers;
092            }
093    
094            public int getMaxHttpSessions() {
095                    return _maxHttpSessions;
096            }
097    
098            public int getMaxServers() {
099                    return _maxServers;
100            }
101    
102            public long getMaxUsers() {
103                    return _maxUsers;
104            }
105    
106            public String getOwner() {
107                    return _owner;
108            }
109    
110            public String getProductEntryName() {
111                    return _productEntryName;
112            }
113    
114            public String getProductId() {
115                    return _productId;
116            }
117    
118            public String getProductVersion() {
119                    return _productVersion;
120            }
121    
122            public String[] getServerIds() {
123                    return _serverIds;
124            }
125    
126            public Date getStartDate() {
127                    return _startDate;
128            }
129    
130            private String _accountEntryName;
131            private String _description;
132            private Date _expirationDate;
133            private String _hostName;
134            private String[] _ipAddresses;
135            private String _licenseEntryName;
136            private String _licenseEntryType;
137            private String _licenseVersion;
138            private String[] _macAddresses;
139            private long _maxConcurrentUsers;
140            private int _maxHttpSessions;
141            private int _maxServers;
142            private long _maxUsers;
143            private String _owner;
144            private String _productEntryName;
145            private String _productId;
146            private String _productVersion;
147            private String[] _serverIds;
148            private Date _startDate;
149    
150    }