com.liferay.portal.license.util.LicenseManagerUtil 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.util;
import com.liferay.portal.kernel.json.JSONObject;
import com.liferay.portal.kernel.security.pacl.permission.PortalRuntimePermission;
import com.liferay.portal.license.LicenseInfo;
import java.util.List;
import java.util.Map;
import java.util.Set;
/**
* @author Amos Fong
*/
public class LicenseManagerUtil {
/**
* @deprecated As of 6.2.0, replaced by {@link LicenseManager#STATE_ABSENT}
*/
public static final int STATE_ABSENT = LicenseManager.STATE_ABSENT;
/**
* @deprecated As of 6.2.0, replaced by {@link LicenseManager#STATE_EXPIRED}
*/
public static final int STATE_EXPIRED = LicenseManager.STATE_EXPIRED;
/**
* @deprecated As of 6.2.0, replaced by {@link LicenseManager#STATE_GOOD}
*/
public static final int STATE_GOOD = LicenseManager.STATE_GOOD;
/**
* @deprecated As of 6.2.0, replaced by {@link
* LicenseManager#STATE_INACTIVE}
*/
public static final int STATE_INACTIVE = LicenseManager.STATE_INACTIVE;
/**
* @deprecated As of 6.2.0, replaced by {@link LicenseManager#STATE_INVALID}
*/
public static final int STATE_INVALID = LicenseManager.STATE_INVALID;
/**
* @deprecated As of 6.2.0, replaced by {@link
* LicenseManager#STATE_OVERLOAD}
*/
public static final int STATE_OVERLOAD = LicenseManager.STATE_OVERLOAD;
public static void checkLicense(String productId) {
getLicenseManager().checkLicense(productId);
}
public static List