List of usage examples for com.liferay.portal.kernel.dao.search SearchContainer getTotal
public int getTotal()
From source file:com.liferay.journal.web.internal.display.context.JournalDisplayContext.java
License:Open Source License
public int getVersionsTotal() throws PortalException { SearchContainer articleSearch = getSearchContainer(true); return articleSearch.getTotal(); }
From source file:com.liferay.layout.admin.web.internal.display.context.LayoutPageTemplateDisplayContext.java
License:Open Source License
private boolean _hasLayoutPageTemplateCollectionsResults() throws PortalException { SearchContainer searchContainer = getLayoutPageTemplateCollectionsSearchContainer(); if (searchContainer.getTotal() > 0) { return true; }//from w ww. ja v a 2 s. com return false; }
From source file:com.liferay.layout.admin.web.internal.display.context.LayoutPageTemplateDisplayContext.java
License:Open Source License
private boolean _hasLayoutPageTemplateEntriesResults() throws PortalException { SearchContainer searchContainer = getLayoutPageTemplateEntriesSearchContainer(); if (searchContainer.getTotal() > 0) { return true; }/*from w ww . jav a 2 s. c o m*/ return false; }