public Set < Long > getSelectedEntitiesByTransferable ( final TableTransferable transferable ) { final Set < Long > selectedEntities = getTableValue ( this ) ; final Set < Long > ids = new HashSet <> ( ) ; final Long transferableData = ( Long ) transferable . getData ( SPUIDefinitions . ITEMID ) ; if ( transferableData == null ) { return ids ; } if ( entityToBeDeletedIsSelectedInTable ( transferableData , selectedEntities ) ) { ids . addAll ( selectedEntities ) ; } else { ids . add ( transferableData ) ; } return ids ; }
Return the entity which should be deleted by a transferable