-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added ProjectLinearizationChangedEvent to objectMapper
- Loading branch information
Showing
2 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
.../protege/webprotege/gateway/websocket/config/events/ProjectLinearizationChangedEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package edu.stanford.protege.webprotege.gateway.websocket.config.events; | ||
|
||
import com.fasterxml.jackson.annotation.JsonTypeName; | ||
import edu.stanford.protege.webprotege.common.*; | ||
import org.jetbrains.annotations.NotNull; | ||
|
||
import static edu.stanford.protege.webprotege.gateway.websocket.config.events.ProjectLinearizationChangedEvent.CHANNEL; | ||
|
||
@JsonTypeName(CHANNEL) | ||
public record ProjectLinearizationChangedEvent(EventId eventId, | ||
ProjectId projectId) implements ProjectEvent { | ||
public static final String CHANNEL = "webprotege.linearization.ProjectLinearizationChangedEvent"; | ||
|
||
public String getChannel() { | ||
return CHANNEL; | ||
} | ||
|
||
public @NotNull EventId eventId() { | ||
return this.eventId; | ||
} | ||
|
||
public @NotNull ProjectId projectId() { | ||
return this.projectId; | ||
} | ||
|
||
} |