@ EventBusListenerMethod ( scope = EventScope . UI ) public void onEvent ( final PinUnpinEvent event ) { final Optional < Long > pinnedDist = managementUIState . getTargetTableFilters ( ) . getPinnedDistId ( ) ; if ( event == PinUnpinEvent . PIN_DISTRIBUTION && pinnedDist . isPresent ( ) ) { displayCountLabel ( pinnedDist . get ( ) ) ; } else { setValue ( "" ) ; displayTargetCountStatus ( ) ; } }
TenantAwareEvent Listener for Pinning Distribution .