
edu.stanford.protege.webprotege.permissions.GetProjectPermissionsAction Maven / Gradle / Ivy
package edu.stanford.protege.webprotege.permissions;
import com.fasterxml.jackson.annotation.JsonTypeName;
import edu.stanford.protege.webprotege.common.ProjectId;
import edu.stanford.protege.webprotege.common.UserId;
import edu.stanford.protege.webprotege.dispatch.Action;
import javax.annotation.Nonnull;
import static com.google.common.base.Preconditions.checkNotNull;
/**
* Matthew Horridge
* Stanford Center for Biomedical Informatics Research
* 23/02/15
*/
@JsonTypeName("webprotege.auth.GetProjectPermissions")
public record GetProjectPermissionsAction(@Nonnull ProjectId projectId, @Nonnull UserId userId) implements Action {
public static final String CHANNEL = "webprotege.auth.GetProjectPermissions";
@Override
public String getChannel() {
return CHANNEL;
}
public GetProjectPermissionsAction(@Nonnull ProjectId projectId, @Nonnull UserId userId) {
this.projectId = checkNotNull(projectId);
this.userId = checkNotNull(userId);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy