public void execute(List<BlueprintDto> result) { if (result.size() > 0) { LinkedHashMap<String, String> valueMap = new LinkedHashMap<String, String>(); for (BlueprintDto blueprintDto : result) { if (blueprintDto.isActive()) { valueMap.put(blueprintDto.getId(), blueprintDto.getName()); } } blueprints.setValueMap(valueMap); } else { SC.logWarn(MESSAGES.geodeskSettingsWarnNoBlueprints()); } } });
public void execute(List<BlueprintDto> result) { if (result.size() > 0) { LinkedHashMap<String, String> valueMap = new LinkedHashMap<String, String>(); for (BlueprintDto blueprintDto : result) { if (blueprintDto.isActive()) { // only needed for superadmin as list isn't filtered there valueMap.put(blueprintDto.getId(), blueprintDto.getName()); } } blueprints.setValueMap(valueMap); blueprints.clearValue(); blueprints.setDisabled(false); } else { SC.say(MESSAGES.chooseBlueprinWarnNoBlueprints()); save.setDisabled(true); } } });
private ListGridRecord toGridRecord(BlueprintDto blueprint) { ListGridRecord record = new ListGridRecord(); record.setAttribute(FLD_ID, blueprint.getId()); record.setAttribute(FLD_NAME, blueprint.getName()); record.setAttribute(FLD_LIMIT_TO_TERRITORY, blueprint.isLimitToCreatorTerritory()); record.setAttribute(FLD_PUBLIC, blueprint.isPublic()); record.setAttribute(FLD_ACTIVE, blueprint.isActive()); record.setAttribute(FLD_GEODESKSACTIVE, blueprint.isGeodesksActive()); return record; }
public void setBlueprint(BlueprintDto blueprint) { form.clearValues(); this.blueprint = blueprint; if (blueprint != null) { blueprintName.setValue(blueprint.getName()); clientApplicationName.setValue(blueprint.getUserApplicationKey()); lastEditBy.setValue(blueprint.getLastEditBy()); lastEditDate.setValue(DATE_FORMATTER.format(blueprint.getLastEditDate())); active.setValue(blueprint.isActive()); geodesksActive.setValue(blueprint.isGeodesksActive()); publiek.setValue(blueprint.isPublic()); limitToLoketTerritory.setValue(blueprint.isLimitToCreatorTerritory()); limitToUserTerritory.setValue(blueprint.isLimitToUserTerritory()); limitToLoketTerritory.setDisabled(!blueprint.isPublic()); limitToUserTerritory.setDisabled(blueprint.isPublic()); } fireChangedHandler(); }
bp.setActive(dto.isActive()); bp.setCreationBy(dto.getCreationBy()); bp.setCreationDate(dto.getCreationDate());
bp.setActive(dto.isActive()); bp.setCreationBy(dto.getCreationBy()); bp.setCreationDate(dto.getCreationDate());