use of org.finos.waltz.model.physical_specification.ImmutablePhysicalSpecificationDeleteCommand in project waltz by khartec.
the class PhysicalSpecificationEndpoint method deleteSpecification.
private CommandResponse<PhysicalSpecificationDeleteCommand> deleteSpecification(Request request, Response response) {
requireRole(userRoleService, request, SystemRole.LOGICAL_DATA_FLOW_EDITOR);
long specId = getId(request);
String username = getUsername(request);
ImmutablePhysicalSpecificationDeleteCommand deleteCommand = ImmutablePhysicalSpecificationDeleteCommand.builder().specificationId(specId).build();
return specificationService.markRemovedIfUnused(deleteCommand, username);
}
Aggregations