Skip to content

Commit ee74d27

Browse files
committed
Add JDs
1 parent 87b845b commit ee74d27

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

project-management/src/main/java/life/qbic/projectmanagement/application/api/AsyncProjectServiceImpl.java

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,12 @@
1414
import reactor.core.scheduler.Scheduler;
1515

1616
/**
17-
* <b><class short description - 1 Line!></b>
17+
* Implementation of the {@link AsyncProjectService} interface.
18+
* <p>
19+
* This is the class that should make the actual individual service orchestration and gets all
20+
* services injected.
1821
*
19-
* <p><More detailed description - When to use, what it solves, etc.></p>
20-
*
21-
* @since <version tag>
22+
* @since 1.9.0
2223
*/
2324
@Service
2425
public class AsyncProjectServiceImpl implements AsyncProjectService {
@@ -40,7 +41,8 @@ public Mono<ProjectUpdateResponse> update(@NonNull ProjectUpdateRequest request)
4041
case ProjectDesign design:
4142
return
4243
withSecurityContext(SecurityContextHolder.getContext(),
43-
() -> updateProjectDesign(projectId, design, request.requestId())).subscribeOn(scheduler);
44+
() -> updateProjectDesign(projectId, design, request.requestId())).subscribeOn(
45+
scheduler);
4446
default:
4547
return Mono.error(new UnknownRequestException("Invalid request body"));
4648
}
@@ -59,7 +61,8 @@ private Mono<ProjectUpdateResponse> withSecurityContext(SecurityContext sctx,
5961
}).contextWrite(rcontext);
6062
}
6163

62-
private Mono<ProjectUpdateResponse> updateProjectDesign(String projectId, ProjectDesign design, String requestId) {
64+
private Mono<ProjectUpdateResponse> updateProjectDesign(String projectId, ProjectDesign design,
65+
String requestId) {
6366
return Mono.create(sink -> {
6467
try {
6568
var id = ProjectId.parse(projectId);

0 commit comments

Comments
 (0)