edu.stanford.protege.webprotege.project.LoadProjectAction Maven / Gradle / Ivy
package edu.stanford.protege.webprotege.project;
import com.fasterxml.jackson.annotation.JsonTypeName;
import edu.stanford.protege.webprotege.common.ProjectId;
import edu.stanford.protege.webprotege.dispatch.Action;
import static com.google.common.base.Preconditions.checkNotNull;
/**
* Author: Matthew Horridge
* Stanford University
* Bio-Medical Informatics Research Group
* Date: 05/04/2013
*/
@JsonTypeName("webprotege.projects.LoadProject")
public record LoadProjectAction(ProjectId projectId) implements Action, HasProjectId {
public static final String CHANNEL = "webprotege.projects.LoadProject";
@Override
public String getChannel() {
return CHANNEL;
}
public LoadProjectAction(ProjectId projectId) {
this.projectId = checkNotNull(projectId);
}
}