@Override
protected void getRecentBundleDeployments() {
final DashboardPortlet storedPortlet = this.portletWindow.getStoredPortlet();
final Configuration portletConfig = storedPortlet.getConfiguration();
final int resourceId = this.resourceId;
ResourceBundleDeploymentCriteria criteria = new ResourceBundleDeploymentCriteria();
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.addFilterResourceIds(resourceId);
criteria.addSortStatus(PageOrdering.DESC);
criteria.fetchDestination(true);
criteria.fetchBundleVersion(true);
criteria.fetchResourceDeployments(true);
GWTServiceLookup.getBundleService().findBundleDeploymentsByCriteria(criteria,
new AsyncCallback<PageList<BundleDeployment>>() {
@Override
public void onFailure(Throwable caught) {