@Override public ResponseEntity<MgmtTargetAttributes> getAttributes(@PathVariable("targetId") final String targetId) { final Map<String, String> controllerAttributes = targetManagement.getControllerAttributes(targetId); if (controllerAttributes.isEmpty()) { return ResponseEntity.noContent().build(); } final MgmtTargetAttributes result = new MgmtTargetAttributes(); result.putAll(controllerAttributes); return ResponseEntity.ok(result); }
private void updateAttributesLayout(final String controllerId) { final VerticalLayout attributesLayout = getAttributesLayout(); attributesLayout.removeAllComponents(); if (controllerId == null) { return; } final Map<String, String> attributes = targetManagement.getControllerAttributes(controllerId); updateAttributesLabelsList(attributesLayout, attributes); updateAttributesUpdateComponents(attributesLayout, controllerId); }
private void updateAttributesLayout(final String controllerId) { final VerticalLayout attributesLayout = getAttributesLayout(); attributesLayout.removeAllComponents(); if (controllerId == null) { return; } final Map<String, String> attributes = targetManagement.getControllerAttributes(controllerId); updateAttributesLabelsList(attributesLayout, attributes); updateAttributesUpdateComponents(attributesLayout, controllerId); }