use of co.cask.cdap.common.security.AuditPolicy in project cdap by caskdata.
the class MetadataHttpHandler method addDatasetTags.
@POST
@Path("/namespaces/{namespace-id}/datasets/{dataset-id}/metadata/tags")
@AuditPolicy(AuditDetail.REQUEST_BODY)
public void addDatasetTags(FullHttpRequest request, HttpResponder responder, @PathParam("namespace-id") String namespaceId, @PathParam("dataset-id") String datasetId) throws BadRequestException, NotFoundException {
DatasetId dataset = new DatasetId(namespaceId, datasetId);
metadataAdmin.addTags(dataset, readArray(request));
responder.sendString(HttpResponseStatus.OK, String.format("Added tags to dataset %s successfully.", dataset));
}
Aggregations