Search in sources :

Example 1 with ImmutablePhysicalSpecificationDeleteCommand

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);
}
Also used : ImmutablePhysicalSpecificationDeleteCommand(org.finos.waltz.model.physical_specification.ImmutablePhysicalSpecificationDeleteCommand)

Aggregations

ImmutablePhysicalSpecificationDeleteCommand (org.finos.waltz.model.physical_specification.ImmutablePhysicalSpecificationDeleteCommand)1