@Override
protected void onInit() {
super.onInit();
PartitionEventCriteria criteria = new PartitionEventCriteria();
criteria.addFilterId(partitionEventId);
final TopologyGWTServiceAsync service = GWTServiceLookup.getTopologyService();
service.findPartitionEventsByCriteria(criteria, new AsyncCallback<PageList<PartitionEvent>>() {
public void onSuccess(final PageList<PartitionEvent> events) {
if (events == null || events.size() != 1) {
CoreGUI.getErrorHandler().handleError(
MSG.view_adminTopology_message_fetchPEventDetailsFail(String.valueOf(partitionEventId)));
initSectionCount = SECTION_COUNT;
return;
}
prepareDetailsSection(sectionStack, events.get(0));
service.getPartitionEventDetails(partitionEventId, PageControl.getUnlimitedInstance(),
new AsyncCallback<PageList<PartitionEventDetails>>() {
public void onSuccess(PageList<PartitionEventDetails> result) {
prepareAssignmentsSection(sectionStack, result);
}