use of com.enonic.xp.lib.node.mapper.ResolveSyncWorkResultMapper in project xp by enonic.
the class DiffBranchesHandler method execute.
@Override
public Object execute() {
final NodeId nodeId = getNodeId(this.nodeKey);
if (nodeId == null) {
throw new NodeNotFoundException("Node with key [" + this.nodeKey + "] not found");
}
final ResolveSyncWorkResult result = this.nodeService.resolveSyncWork(SyncWorkResolverParams.create().includeChildren(includeChildren).nodeId(nodeId).branch(targetBranch).build());
return new ResolveSyncWorkResultMapper(result);
}
Aggregations