edu.stanford.protege.webprotege.mail.SetEmailAddressAction Maven / Gradle / Ivy
The newest version!
package edu.stanford.protege.webprotege.mail;
import com.fasterxml.jackson.annotation.JsonTypeName;
import edu.stanford.protege.webprotege.common.UserId;
import edu.stanford.protege.webprotege.dispatch.Action;
import edu.stanford.protege.webprotege.user.EmailAddress;
/**
* Author: Matthew Horridge
* Stanford University
* Bio-Medical Informatics Research Group
* Date: 06/11/2013
*
* An action that sets the email address of a user.
*
* Constructs a {@link SetEmailAddressAction} object using the specified email address.
* @param userId The {@link UserId} of the user whose email address should be set. Not {@code null}.
* @param emailAddress The email address to set. Not {@code null}.
*
*/
@JsonTypeName("webprotege.users.SetEmailAddress")
public record SetEmailAddressAction(UserId userId, EmailAddress emailAddress) implements Action {
public static final String CHANNEL = "webprotege.users.SetEmailAddress";
@Override
public String getChannel() {
return CHANNEL;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy