Skip to content

Commit

Permalink
refactored AddNamedHierarchyCommandHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
soimugeo committed Oct 30, 2024
1 parent 72e598d commit 8dcb297
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import reactor.core.publisher.Mono;

@WebProtegeHandler
public class AddNamedHierarchyCommandHandler implements CommandHandler<AddNamedHierarchyAction, AddNamedHierarchyResponse> {
public class AddNamedHierarchyCommandHandler implements CommandHandler<SetNamedHierarchiesAction, SetNamedHierarchiesResponse> {

private final ActionExecutor actionExecutor;

Expand All @@ -19,16 +19,16 @@ public AddNamedHierarchyCommandHandler(ActionExecutor actionExecutor) {
@NotNull
@Override
public String getChannelName() {
return AddNamedHierarchyAction.CHANNEL;
return SetNamedHierarchiesAction.CHANNEL;
}

@Override
public Class<AddNamedHierarchyAction> getRequestClass() {
return AddNamedHierarchyAction.class;
public Class<SetNamedHierarchiesAction> getRequestClass() {
return SetNamedHierarchiesAction.class;
}

@Override
public Mono<AddNamedHierarchyResponse> handleRequest(AddNamedHierarchyAction request, ExecutionContext executionContext) {
public Mono<SetNamedHierarchiesResponse> handleRequest(SetNamedHierarchiesAction request, ExecutionContext executionContext) {
return actionExecutor.executeRequest(request, executionContext);
}
}
Expand Down

0 comments on commit 8dcb297

Please sign in to comment.