com.liferay.portal.license.LicenseInfo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of portal-service Show documentation
Show all versions of portal-service Show documentation
Contains interfaces for the portal services. Interfaces are only loaded by the global class loader and are shared by all plugins.
/**
* Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/
package com.liferay.portal.license;
import java.util.Date;
/**
* @author Amos Fong
*/
public class LicenseInfo {
public LicenseInfo(
String owner, String description, String productEntryName,
String productId, String productVersion, String licenseEntryType,
String licenseVersion, Date startDate, Date expirationDate,
long maxUsers, String[] hostNames, String[] ipAddresses,
String[] macAddresses) {
_description = description;
_expirationDate = expirationDate;
_hostNames = hostNames;
_ipAddresses = ipAddresses;
_licenseEntryType = licenseEntryType;
_licenseVersion = licenseVersion;
_macAddresses = macAddresses;
_maxUsers = maxUsers;
_owner = owner;
_productEntryName = productEntryName;
_productId = productId;
_productVersion = productVersion;
_startDate = startDate;
}
public String getDescription() {
return _description;
}
public Date getExpirationDate() {
return _expirationDate;
}
public String[] getHostNames() {
return _hostNames;
}
public String[] getIpAddresses() {
return _ipAddresses;
}
public String getLicenseEntryType() {
return _licenseEntryType;
}
public String getLicenseVersion() {
return _licenseVersion;
}
public String[] getMacAddresses() {
return _macAddresses;
}
public long getMaxUsers() {
return _maxUsers;
}
public String getOwner() {
return _owner;
}
public String getProductEntryName() {
return _productEntryName;
}
public String getProductId() {
return _productId;
}
public String getProductVersion() {
return _productVersion;
}
public Date getStartDate() {
return _startDate;
}
private String _description;
private Date _expirationDate;
private String[] _hostNames;
private String[] _ipAddresses;
private String _licenseEntryType;
private String _licenseVersion;
private String[] _macAddresses;
private long _maxUsers;
private String _owner;
private String _productEntryName;
private String _productId;
private String _productVersion;
private Date _startDate;
}