Skip to content

Commit

Permalink
added ProjectLinearizationChangedEvent to objectMapper
Browse files Browse the repository at this point in the history
  • Loading branch information
soimugeo committed Aug 21, 2024
1 parent 21c7492 commit d98121c
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import edu.stanford.protege.webprotege.change.OntologyChangedEvent;
import edu.stanford.protege.webprotege.event.*;
import edu.stanford.protege.webprotege.frame.*;
import edu.stanford.protege.webprotege.gateway.websocket.config.events.ProjectLinearizationChangedEvent;
import edu.stanford.protege.webprotege.hierarchy.EntityHierarchyChangedEvent;
import edu.stanford.protege.webprotege.issues.CommentPostedEvent;
import edu.stanford.protege.webprotege.issues.CommentUpdatedEvent;
Expand Down Expand Up @@ -313,6 +314,7 @@ public ObjectMapper objectMapper() {
OntologyBrowserTextChangedEvent.class,
PermissionsChangedEvent.class,
ProjectChangedEvent.class,
ProjectLinearizationChangedEvent.class,
ProjectMovedToTrashEvent.class,
OntologyChangedEvent.class,
ProjectRemovedFromTrashEvent.class,
Expand Down
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;
}

}

0 comments on commit d98121c

Please sign in to comment.