dataSetId);
<BUG>return CommandHelper.toStreaming(getLookupActions);
}</BUG>
@RequestMapping(value = "/api/datasets/favorite/{id}", method = POST, consumes = ALL_VALUE, produces = TEXT_PLAIN_VALUE)
@ApiOperation(value = "Set or Unset the dataset as favorite for the current user.", consumes = TEXT_PLAIN_VALUE, produces = TEXT_PLAIN_VALUE, //
<BUG>notes = "Specify if a dataset is or is not a favorite for the current user.")
public String favorite(
</BUG>
@ApiParam(value = "Id of the favorite data set ") @PathVariable(value = "id") String id,
<BUG>@RequestParam(defaultValue = "false") @ApiParam(name = "unset", value = "When true, will remove the dataset from favorites, if false (default) this will set the dataset as favorite.") boolean unset) {
if (LOG.isDebugEnabled()) {</BUG>
LOG.debug((unset ? "Unset" : "Set") + " favorite dataset #{} (pool: {})...", id, getConnectionStats());

dataSetId);
return toStreaming(getLookupActions);
}
@RequestMapping(value = "/api/datasets/favorite/{id}", method = POST, consumes = ALL_VALUE, produces = TEXT_PLAIN_VALUE)
@ApiOperation(value = "Set or Unset the dataset as favorite for the current user.", consumes = TEXT_PLAIN_VALUE, produces = TEXT_PLAIN_VALUE, //
notes = "Specify if a dataset is or is not a favorite for the current user.")
@Timed
public Callable<String> favorite(
@ApiParam(value = "Id of the favorite data set ") @PathVariable(value = "id") String id,
@RequestParam(defaultValue = "false") @ApiParam(name = "unset", value = "When true, will remove the dataset from favorites, if false (default) this will set the dataset as favorite.") boolean unset) {
return () -> {
if (LOG.isDebugEnabled()) {
LOG.debug((unset ? "Unset" : "Set") + " favorite dataset #{} (pool: {})...", id, getConnectionStats());
