protected void updateSelectedLunWarning(LunModel lunModel) { LUNs lun = lunModel.getEntity(); String warning = constants.empty(); // Adding 'GrayedOutReasons' if (lun.getStorageDomainId() != null) { warning = messages.lunAlreadyPartOfStorageDomainWarning(lun.getStorageDomainName()); } else if (lun.getDiskId() != null) { warning = messages.lunUsedByDiskWarning(lun.getDiskAlias()); } model.setSelectedLunWarning(warning); }
@Override public boolean Match(LunModel source) { return StringHelper.stringsEqual(source.getLunId(), lun.getLunId()); }