@Override
protected void getRecentPkgHistory() {
final DashboardPortlet storedPortlet = this.portletWindow.getStoredPortlet();
final Configuration portletConfig = storedPortlet.getConfiguration();
final int resourceId = this.resourceId;
InstalledPackageHistoryCriteria criteria = new InstalledPackageHistoryCriteria();
PageControl pc = new PageControl();
//result count
String currentSetting = portletConfig.getSimpleValue(Constant.RESULT_COUNT, Constant.RESULT_COUNT_DEFAULT);
if (currentSetting.trim().isEmpty()) {
pc.setPageSize(Integer.valueOf(Constant.RESULT_COUNT_DEFAULT));
} else {
pc.setPageSize(Integer.valueOf(currentSetting));
}
criteria.setPageControl(pc);
criteria.addFilterResourceId(resourceId);
criteria.addSortStatus(PageOrdering.DESC);
GWTServiceLookup.getContentService().findInstalledPackageHistoryByCriteria(criteria,
new AsyncCallback<PageList<InstalledPackageHistory>>() {
@Override