Example usage for com.liferay.portal.kernel.patcher PatcherUtil getInstalledPatches

List of usage examples for com.liferay.portal.kernel.patcher PatcherUtil getInstalledPatches

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.patcher PatcherUtil getInstalledPatches.

Prototype

public static String[] getInstalledPatches() 

Source Link

Usage

From source file:com.liferay.marketplace.store.web.internal.portlet.MarketplaceStorePortlet.java

License:Open Source License

@Override
protected void processPortletParameterMap(PortletRequest portletRequest, PortletResponse portletResponse,
        Map<String, String[]> parameterMap) {

    parameterMap.put("clientBuild", new String[] { String.valueOf(MarketplaceConstants.CLIENT_BUILD) });

    if (!parameterMap.containsKey("compatibility")) {
        parameterMap.put("compatibility", new String[] { String.valueOf(ReleaseInfo.getBuildNumber()) });
    }// w  w  w.  j av a  2s . c  om

    parameterMap.put("installedPatches", PatcherUtil.getInstalledPatches());
    parameterMap.put("supportsHotDeploy",
            new String[] { String.valueOf(ServerDetector.isSupportsHotDeploy()) });
}