public void execute(GetClientLayersResponse result) { layerSelect.setValues(null, result.getLayers(), blueprint.getMainMapLayers(), !blueprint.isPublic()); fireChangedHandler(); }
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(); }
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 boolean onSaveClick(ClickEvent event) { if (validate()) { blueprint.setName(blueprintName.getValueAsString()); blueprint.setUserApplicationKey(clientApplicationName.getValueAsString()); blueprint.setActive(active.getValueAsBoolean()); blueprint.setGeodesksActive(geodesksActive.getValueAsBoolean()); blueprint.setPublic(publiek.getValueAsBoolean()); if (blueprint.isPublic()) { blueprint.setLimitToLoketTerritory(limitToLoketTerritory.getValueAsBoolean()); blueprint.setLimitToUserTerritory(false); } else { blueprint.setLimitToLoketTerritory(false); blueprint.setLimitToUserTerritory(limitToUserTerritory.getValueAsBoolean()); } ManagerCommandService.saveBlueprint(blueprint, SaveBlueprintRequest.SAVE_SETTINGS); form.setDisabled(true); return true; } else { return false; } }
bp.setGeodesksActive(dto.isGeodesksActive()); bp.setName(dto.getName()); bp.setPublic(dto.isPublic()); bp.setApplicationClientWidgetInfos(dto.getApplicationClientWidgetInfos()); bp.setMainMapClientWidgetInfos(dto.getMainMapClientWidgetInfos());
bp.setGeodesksActive(dto.isGeodesksActive()); bp.setName(dto.getName()); bp.setPublic(dto.isPublic()); bp.setApplicationClientWidgetInfos(dto.getApplicationClientWidgetInfos()); bp.setMainMapClientWidgetInfos(dto.getMainMapClientWidgetInfos());
publicGeodesk.setDisabled(!loket.getBlueprint().isPublic()); if (!limitToUserTerritory.isDisabled()) { limitToUserTerritory.setDisabled(loket.getBlueprint().isLimitToUserTerritory());