if (operation == Operation.UPDATE) outcome = editor.updateProperty(key, body.value); outcome = editor.addProperty(key, body.value); final ServiceOutcome<WorkflowPropertyEditor.Result> outcome = editor.deleteProperty(key); if (outcome.isValid())
@RequiresXsrfCheck public String doRemoveMetaAttribute() throws Exception { final ServiceOutcome<?> outcome = createEditor().deleteProperty(attributeKey); if (!outcome.isValid()) { addErrorCollection(outcome.getErrorCollection()); return INPUT; } else { return getViewRedirect(); } }
@RequiresXsrfCheck public String doAddMetaAttribute() throws Exception { final ServiceOutcome<?> outcome = createEditor().addProperty(attributeKey, attributeValue); if (!outcome.isValid()) { addErrorCollection(outcome.getErrorCollection()); return INPUT; } else { return getViewRedirect(); } }