@@ -0,0 +1,604 @@
+package tw.edu.ntu.im.sdm.sdmtools.ldap_setup.ui;%0A%0Aimport com.vaadin.data.Validator;%0Aimport com.vaadin.data.validator.EmailValidator;%0A%0Apublic class NTUEmailValidator extends EmailValidator %7B%0A%0A    public NTUEmailValidator(String errorMessage) %7B%0A        super(errorMessage);%0A    %7D%0A%0A    @Override%0A    public void validate(Object value) %7B%0A        super.validate(value);%0A        if (value instanceof String) %7B%0A            if (((String) value).matches(%22%5E(%5C%5CS+)@ntu.edu.tw$%22)) %7B%0A                return;%0A            %7D%0A        %7D%0A        throw new Validator.InvalidValueException(super.getErrorMessage());%0A    %7D%0A%7D%0A

Implement NTUEmailValidator class