use of com.enonic.xp.node.BinaryAttachments in project xp by enonic.
the class ModifyNodeHandler method execute.
@Override
public Object execute() {
final Node node = getExistingNode();
final ScriptValue updatedNodeScriptValue = applyEditor(node);
final BinaryAttachments binaryAttachments = getBinaryAttachments(updatedNodeScriptValue);
final UpdateNodeParams updateNodeParams = UpdateNodeParams.create().id(node.id()).editor(createEditor(updatedNodeScriptValue)).setBinaryAttachments(binaryAttachments).build();
final Node updatedNode = this.nodeService.update(updateNodeParams);
return new NodeMapper(updatedNode, false);
}
Aggregations