Example usage for com.liferay.portal.kernel.service LayoutPrototypeLocalServiceUtil searchCount

List of usage examples for com.liferay.portal.kernel.service LayoutPrototypeLocalServiceUtil searchCount

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.service LayoutPrototypeLocalServiceUtil searchCount.

Prototype

public static int searchCount(long companyId, Boolean active) 

Source Link

Usage

From source file:com.liferay.layout.prototype.web.internal.display.context.LayoutPrototypeDisplayContext.java

License:Open Source License

protected int getTotal() {
    ThemeDisplay themeDisplay = (ThemeDisplay) _request.getAttribute(WebKeys.THEME_DISPLAY);

    return LayoutPrototypeLocalServiceUtil.searchCount(themeDisplay.getCompanyId(), getActive());
}