Package edu.stanford.bmir.protege.web.shared.user

Examples of edu.stanford.bmir.protege.web.shared.user.EmailAddress


    }

    @Override
    public Optional<EmailAddress> getValue() {
        if(isWellFormed()) {
            return Optional.of(new EmailAddress(emailAddressField.getText().trim()));
        }
        else {
            return Optional.absent();
        }
    }
View Full Code Here


        Optional<EmailAddress> address;
        if(emailAddress == null) {
            address = Optional.absent();
        }
        else {
            address = Optional.of(new EmailAddress(emailAddress));
        }
        return new GetEmailAddressResult(action.getUserId(), address);
    }
View Full Code Here

        return Optional.<Focusable>of(emailField);
    }
   
    public EmailAddress getEmailAddress() {
        String emailAddress = emailField.getText().trim();
        return new EmailAddress(emailAddress);
    }
View Full Code Here

    private String getConfirmPassword() {
        return confirmPasswordField.getText().trim();
    }

    public SignupInfo getData() {
        EmailAddress emailAddress = getEmailAddress();
        HumanVerificationServiceProvider verificationServiceProvider = verificationWidget.getVerificationServiceProvider();

        return new SignupInfo(emailAddress, getUserName(), getPassword(), verificationServiceProvider);
    }
View Full Code Here

    public WebProtegeDialogValidator getValidator() {
        return this;
    }

    public ValidationState getValidationState() {
        EmailAddress emailAddress = getEmailAddress();
        if(emailAddress.isEmpty()) {
            validationMessage = "Please enter an email address";
            return ValidationState.INVALID;
        }
//        if(EMAIL_PATTERN.test(emailAddress.getEmailAddress())) {
//            validationMessage = "Please enter a valid email address";
View Full Code Here

    @Test
    public void convertShoudldReturnStringEqualToSuppliedEmailAddress() {
        EmailAddressWriteConverter converter = new EmailAddressWriteConverter();
        String suppliedAddress = "jane.doe@stanford.edu";
        EmailAddress emailAddress = new EmailAddress(suppliedAddress);
        String convertedAddress = converter.convert(emailAddress);
        assertEquals(suppliedAddress, convertedAddress);
    }
View Full Code Here

*/
@ReadingConverter
public class EmailAddressReadConverter implements Converter<String, EmailAddress> {

    public EmailAddress convert(String source) {
        return new EmailAddress(source);
    }
View Full Code Here

    @Test
    public void convertShouldReturnEmailAddressWithAddressEqualToSuppliedAddress() {
        EmailAddressReadConverter converter = new EmailAddressReadConverter();
        String suppliedAddress = "jane.doe@stanford.edu";
        EmailAddress convertedAddress = converter.convert(suppliedAddress);
        assertEquals(suppliedAddress, convertedAddress.getEmailAddress());
    }
View Full Code Here

TOP

Related Classes of edu.stanford.bmir.protege.web.shared.user.EmailAddress

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.