All Downloads are FREE. Search and download functionalities are using the official Maven repository.

edu.stanford.protege.webprotege.perspective.SetPerspectiveLayoutAction Maven / Gradle / Ivy

There is a newer version: 2.0.2-WHO
Show newest version
package edu.stanford.protege.webprotege.perspective;

import com.fasterxml.jackson.annotation.JsonTypeName;
import edu.stanford.protege.webprotege.common.ChangeRequest;
import edu.stanford.protege.webprotege.common.ChangeRequestId;
import edu.stanford.protege.webprotege.common.ProjectId;
import edu.stanford.protege.webprotege.common.UserId;
import edu.stanford.protege.webprotege.dispatch.ProjectAction;

import javax.annotation.Nonnull;
import java.util.Objects;

/**
 * Matthew Horridge
 * Stanford Center for Biomedical Informatics Research
 * 28/02/16
 */
@JsonTypeName("webprotege.perspectives.SetPerspectiveLayout")
public record SetPerspectiveLayoutAction(@Nonnull ChangeRequestId changeRequestId,
                                         @Nonnull ProjectId projectId,
                                         @Nonnull UserId userId,
                                         @Nonnull PerspectiveLayout layout) implements ProjectAction, ChangeRequest {

    public static final String CHANNEL = "webprotege.perspectives.SetPerspectiveLayout";

    @Override
    public String getChannel() {
        return CHANNEL;
    }

    public SetPerspectiveLayoutAction(@Nonnull ChangeRequestId changeRequestId,
                                      @Nonnull ProjectId projectId,
                                      @Nonnull UserId userId,
                                      @Nonnull PerspectiveLayout layout) {
        this.changeRequestId = Objects.requireNonNull(changeRequestId);
        this.projectId = Objects.requireNonNull(projectId);
        this.userId = Objects.requireNonNull(userId);
        this.layout = Objects.requireNonNull(layout);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy