UADHierarchyDisplay { public long countAll(long userId) { long count = 0; for (UADDisplay<?> uadDisplay : _uadDisplays) { count += uadDisplay.count(userId); } return count; } UADHierarchyDisplay(
		UADHierarchyDeclaration uadHierarchyDeclaration); void addPortletBreadcrumbEntries(
			HttpServletRequest httpServletRequest,
			RenderResponse renderResponse, Locale locale); long countAll(long userId); String[] getColumnFieldNames(); Map<Class<?>, List<Serializable>> getContainerItemPKsMap(
		Class<?> parentContainerClass, Serializable parentContainerId,
		long userId); String getEditURL(
			LiferayPortletRequest liferayPortletRequest,
			LiferayPortletResponse liferayPortletResponse, T object); String getEntitiesTypeLabel(Locale locale); Map<String, Object> getFieldValues(T object, Locale locale); Class<?> getFirstContainerTypeClass(); String getParentContainerURL(
			ActionRequest actionRequest,
			LiferayPortletResponse liferayPortletResponse); Serializable getPrimaryKey(T object); String[] getSortingFieldNames(); Class<?> getTypeClass(T object); Class<?>[] getTypeClasses(); UADDisplay<?>[] getUADDisplays(); String getViewURL(
			LiferayPortletRequest liferayPortletRequest,
			LiferayPortletResponse liferayPortletResponse,
			String applicationKey, T object, long selectedUserId); boolean isInTrash(T object); boolean isUserOwned(T object, long userId); List<Object> search(
			Class<?> parentContainerClass, Serializable parentContainerId,
			long userId, long[] groupIds, String keywords, String orderByField,
			String orderByType, int start, int end); long searchCount(long userId, long[] groupIds, String keywords); T unwrap(Object object);  }
@Test public void testCountAll() { Assert.assertEquals(11, _uadHierarchyDisplay.countAll(_USER_ID)); Assert.assertEquals(8, _uadHierarchyDisplay.countAll(_USER_ID_OTHER)); }