PageRenderTime 14ms queryTime 95ms sortTime 68ms getByIdsTime 336ms findMatchingLines 68ms

100+ results results for 'email validate lang:java' (14 ms)

Not the results you expected?
AccountUtils.java https://gitlab.com/adam.lukaitis/iosched | Java | 263 lines
                    
55            Scopes.DRIVE_APPFOLDER,
                    
56            "https://www.googleapis.com/auth/userinfo.email"};
                    
57
                    
131
                    
132    static void invalidateAuthToken(final Context context) {
                    
133        GoogleAuthUtil.invalidateToken(context, getAuthToken(context));
                    
191    public static void refreshAuthToken(Context mContext) {
                    
192        invalidateAuthToken(mContext);
                    
193        tryAuthenticateWithErrorNotification(mContext, ScheduleContract.CONTENT_AUTHORITY);
                    
                
SWORDErrorDocument.java https://github.com/hedtek/dspace_rest_integration.git | Java | 311 lines
                    
164      {
                    
165         result = validate(result, validationProperties);
                    
166      }
                    
217    */
                    
218   public SwordValidationInfo validate(Properties validationContext)
                    
219   {
                    
219   {
                    
220       return validate(null, validationContext);
                    
221   }
                    
228    */
                    
229   protected SwordValidationInfo validate(SwordValidationInfo info, Properties validationContext)
                    
230   {
                    
304	   a.setName("Lewis, Stuart");
                    
305	   a.setEmail("stuart@example.com");
                    
306	   sed.addAuthors(a);
                    
                
TestDescriptor.java https://gitlab.com/essere.lab.public/qualitas.class-corpus | Java | 528 lines
                    
52     * reporter's
                    
53     *  name (or Email address), the date of the report and of the
                    
54     * fix,
                    
166     * bug fix, including the reporter's
                    
167     *  name (or Email address), the date of the report and of the
                    
168     * fix,
                    
300        try {
                    
301            validate();
                    
302        } catch (org.exolab.castor.xml.ValidationException vex) {
                    
395     * fix, including the reporter's
                    
396     *  name (or Email address), the date of the report and of the
                    
397     * fix,
                    
520     */
                    
521    public void validate(
                    
522    )
                    
                
PaymentAtlasTask.java https://github.com/bibulous/SkyrackJbill2.2.git | Java | 312 lines
                    
93			}
                    
94			validateParameters();
                    
95
                    
140
                    
141	private void validateParameters() throws PluggableTaskException {
                    
142		ensureGetParameter(PARAMETER_MERCHANT_ACCOUNT_CODE);
                    
194			data.put("city", entity.getCity());
                    
195			data.put("email", entity.getEmail());
                    
196			data.put("customerAccountCode", userId.toString());
                    
289		try {
                    
290			validateParameters();
                    
291			Map<String, Object> data = getChargeData(payment);
                    
                
RecentMailboxManagerTest.java https://bitbucket.org/camcory/android_packages_apps_email.git | Java | 253 lines
                    
16
                    
17package com.android.email.activity;
                    
18
                    
23
                    
24import com.android.email.Controller;
                    
25import com.android.email.DBTestHelper;
                    
25import com.android.email.DBTestHelper;
                    
26import com.android.email.MockClock;
                    
27import com.android.email.provider.ContentCache;
                    
28import com.android.email.provider.ProviderTestUtils;
                    
29import com.android.emailcommon.provider.EmailContent.MailboxColumns;
                    
30import com.android.emailcommon.provider.Mailbox;
                    
39 * You can run this entire test case with:
                    
40 *   runtest -c com.android.email.activity.RecentMailboxManagerTest email
                    
41 */
                    
                
RecentMailboxManagerTest.java https://bitbucket.org/ProuDroid/packages_apps_email.git | Java | 253 lines
                    
16
                    
17package com.android.email.activity;
                    
18
                    
23
                    
24import com.android.email.Controller;
                    
25import com.android.email.DBTestHelper;
                    
25import com.android.email.DBTestHelper;
                    
26import com.android.email.MockClock;
                    
27import com.android.email.provider.ContentCache;
                    
28import com.android.email.provider.ProviderTestUtils;
                    
29import com.android.emailcommon.provider.EmailContent.MailboxColumns;
                    
30import com.android.emailcommon.provider.Mailbox;
                    
39 * You can run this entire test case with:
                    
40 *   runtest -c com.android.email.activity.RecentMailboxManagerTest email
                    
41 */
                    
                
Hudson.java https://github.com/jpederzolli/jenkins-1.git | Java | 345 lines
                    
159    public TopLevelItem getJobCaseInsensitive(String name) {
                    
160        String match = Functions.toEmailSafeString(name);
                    
161        for(TopLevelItem item : getItems()) {
                    
161        for(TopLevelItem item : getItems()) {
                    
162            if(Functions.toEmailSafeString(item.getName()).equalsIgnoreCase(match)) {
                    
163        return item;
                    
208     * <p>
                    
209     * If the text is set and the parameter "type" is set, it will validate that the value is of the
                    
210     * correct type. Supported types are "number, "number-positive" and "number-negative".
                    
                
CASFilter.java https://github.com/danielreuther/liferay-portal.git | Java | 296 lines
                    
65 * the Server name, and the Service URL and the browser is redirected to this
                    
66 * URL. If a ticket parameter was received, it will be validated.
                    
67 * </p>
                    
74 * server issues a principal of the same type that the portal instance is
                    
75 * configured to use (e.g., screen name versus email address).
                    
76 * </p>
                    
163
                    
164			httpSession.invalidate();
                    
165
                    
210		try {
                    
211			assertion = ticketValidator.validate(ticket, serviceURL);
                    
212		}
                    
222				new PortalException(
                    
223					"Unable to validate CAS ticket: " + ticket,
                    
224					ticketValidationException),
                    
                
Document.java https://github.com/digipost/digipost-api-client-java.git | Java | 238 lines
                    
46        "smsNotification",
                    
47        "emailNotification",
                    
48        "authenticationLevel",
                    
69    @XmlElement(name = "email-notification")
                    
70    public final EmailNotification emailNotification;
                    
71    @XmlElement(name = "authentication-level")
                    
104    public Document(UUID uuid, String subject, FileType fileType, String openingReceipt,
                    
105                    SmsNotification smsNotification, EmailNotification emailNotification,
                    
106                    AuthenticationLevel authenticationLevel,
                    
112    public Document(UUID uuid, String subject, FileType fileType, String openingReceipt,
                    
113                    SmsNotification smsNotification, EmailNotification emailNotification,
                    
114                    AuthenticationLevel authenticationLevel,
                    
121        this.smsNotification = smsNotification;
                    
122        this.emailNotification = emailNotification;
                    
123        this.authenticationLevel = authenticationLevel;
                    
                
IntegrationCache.java https://github.com/anhnht/exogtn.git | Java | 344 lines
                    
128
                    
129   public void invalidate(String ns)
                    
130   {
                    
139
                    
140   public void invalidateAll()
                    
141   {
                    
334
                    
335      sb.append(query.getEmail()).append(SEP)
                    
336         .append(query.getFirstName()).append(SEP)
                    
                
RecentMailboxManagerTest.java https://bitbucket.org/beginnerjyh/android_packages_apps_email.git | Java | 253 lines
                    
16
                    
17package com.android.email.activity;
                    
18
                    
23
                    
24import com.android.email.Controller;
                    
25import com.android.email.DBTestHelper;
                    
25import com.android.email.DBTestHelper;
                    
26import com.android.email.MockClock;
                    
27import com.android.email.provider.ContentCache;
                    
28import com.android.email.provider.ProviderTestUtils;
                    
29import com.android.emailcommon.provider.EmailContent.MailboxColumns;
                    
30import com.android.emailcommon.provider.Mailbox;
                    
39 * You can run this entire test case with:
                    
40 *   runtest -c com.android.email.activity.RecentMailboxManagerTest email
                    
41 */
                    
                
PayPalNotificationAction.java https://github.com/viktorkovacs/liferay-portal-trunk.git | Java | 202 lines
                    
109				request, "receiver_email");
                    
110			String payerEmail = ParamUtil.getString(request, "payer_email");
                    
111
                    
120				_log.debug("Receiver email " + receiverEmail);
                    
121				_log.debug("Payer email " + payerEmail);
                    
122			}
                    
123
                    
124			if (payPalStatus.equals("VERIFIED") && validate(request)) {
                    
125				ShoppingOrderLocalServiceUtil.completeOrder(
                    
157
                    
158		String payPalEmailAddress = shoppingPrefs.getPayPalEmailAddress();
                    
159
                    
159
                    
160		if (!payPalEmailAddress.equals(ppReceiverEmail)) {
                    
161			return false;
                    
                
MemberRequestLocalServiceImpl.java https://github.com/christine-huang/liferay-plugins.git | Java | 426 lines
                    
101		try {
                    
102			sendEmail(receiverEmailAddress, memberRequest, serviceContext);
                    
103		}
                    
129
                    
130			String emailAddress = user.getEmailAddress();
                    
131
                    
144		for (String emailAddress : emailAddresses) {
                    
145			if (!Validator.isEmailAddress(emailAddress)) {
                    
146				continue;
                    
149			addMemberRequest(
                    
150				userId, groupId, 0, emailAddress, invitedRoleId, invitedTeamId,
                    
151				serviceContext);
                    
211
                    
212		validate(memberRequest, userId);
                    
213
                    
                
MemberRequestLocalServiceImpl.java https://github.com/l15k4/liferay-plugins.git | Java | 362 lines
                    
85		try {
                    
86			sendEmail(receiverEmailAddress, memberRequest, themeDisplay);
                    
87		}
                    
106
                    
107			String emailAddress = user.getEmailAddress();
                    
108
                    
119
                    
120		for (String emailAddress : emailAddresses) {
                    
121			if (!Validator.isEmailAddress(emailAddress)) {
                    
125			addMemberRequest(
                    
126				userId, groupId, 0, emailAddress, invitedRoleId, invitedTeamId,
                    
127				themeDisplay);
                    
253
                    
254	protected void sendEmail(
                    
255			String emailAddress, MemberRequest memberRequest,
                    
                
BirtEmailServices.java https://github.com/thanhvc/ofbiz.git | Java | 255 lines
                    
18 *******************************************************************************/
                    
19package org.ofbiz.birt.email;
                    
20
                    
43import org.ofbiz.base.util.UtilMisc;
                    
44import org.ofbiz.base.util.UtilValidate;
                    
45import org.ofbiz.base.util.collections.MapStack;
                    
48import org.ofbiz.birt.container.BirtContainer;
                    
49import org.ofbiz.common.email.NotificationServices;
                    
50import org.ofbiz.entity.Delegator;
                    
59
                    
60public class BirtEmailServices {
                    
61
                    
61
                    
62    public static final String module = BirtEmailServices.class.getName();
                    
63
                    
                
MBMailingListLocalServiceImpl.java https://github.com/spreddy/liferay-portal.git | Java | 272 lines
                    
88		mailingList.setInReadInterval(inReadInterval);
                    
89		mailingList.setOutEmailAddress(outEmailAddress);
                    
90		mailingList.setOutCustom(outCustom);
                    
154		validate(
                    
155			emailAddress, inServerName, inUserName, outEmailAddress, outCustom,
                    
156			outServerName, outUserName, active);
                    
161		mailingList.setModifiedDate(serviceContext.getModifiedDate(null));
                    
162		mailingList.setEmailAddress(emailAddress);
                    
163		mailingList.setInProtocol(inUseSSL ? inProtocol + "s" : inProtocol);
                    
169		mailingList.setInReadInterval(inReadInterval);
                    
170		mailingList.setOutEmailAddress(outEmailAddress);
                    
171		mailingList.setOutCustom(outCustom);
                    
249
                    
250		if (!Validator.isEmailAddress(emailAddress)) {
                    
251			throw new MailingListEmailAddressException();
                    
                
AccountManagerHelper.java https://gitlab.com/jonnialva90/iridium-browser | Java | 381 lines
                    
46
                    
47    private static final String GOOGLEMAIL_COM = "googlemail.com";
                    
48
                    
179
                    
180        if (GOOGLEMAIL_COM.equalsIgnoreCase(parts[1])) {
                    
181            parts[1] = GMAIL_COM;
                    
349    /**
                    
350     * Invalidates the old token (if non-null/non-empty) and asynchronously generates a new one.
                    
351     *
                    
355            GetAuthTokenCallback callback) {
                    
356        invalidateAuthToken(authToken);
                    
357        AtomicInteger numTries = new AtomicInteger(0);
                    
365     */
                    
366    public void invalidateAuthToken(String authToken) {
                    
367        // Cancel operation for no USE_CREDENTIALS permission.
                    
                
OpenSSOAutoLogin.java https://github.com/danielreuther/liferay-portal.git | Java | 342 lines
                    
67 * cookie and any additional cookies. These are then extracted from the HTTP
                    
68 * request and forwarded to the OpenSSO server to validate the user's
                    
69 * authentication status.
                    
121					lastName, " with screen name ", openSSOScreenName,
                    
122					" and email address ", emailAddress));
                    
123		}
                    
165		else {
                    
166			if (Validator.isNull(emailAddress)) {
                    
167				return doHandleException(
                    
168					httpServletRequest, httpServletResponse,
                    
169					new Exception("Email address is null"));
                    
170			}
                    
200				user = _addUser(
                    
201					companyId, firstName, lastName, emailAddress, screenName,
                    
202					locale);
                    
                
TextFieldPanel.java https://github.com/DarioGT/Modelibra-Family.git | Java | 254 lines
                    
31import org.modelibra.wicket.type.DateConverter;
                    
32import org.modelibra.wicket.type.EmailConverter;
                    
33import org.modelibra.wicket.type.UrlConverter;
                    
183			} else if (propertyConfig.getPropertyClass().equals(
                    
184					PropertyClass.getEmail())) {
                    
185				textField = new TextField("propertyValue", entityModel
                    
189					public IConverter getConverter(final Class type) {
                    
190						return new EmailConverter();
                    
191					}
                    
192				};
                    
193				textField.setType(PropertyClass.getEmailClass());
                    
194			}
                    
201					.getModelConfig();
                    
202			if (modelConfig.getDomainConfig().isValidateForm()) {
                    
203				if (propertyConfig.isRequired() && propertyConfig.isUpdate()
                    
                
MBMailingListLocalServiceImpl.java https://github.com/acs/liferay-portal.git | Java | 272 lines
                    
88		mailingList.setInReadInterval(inReadInterval);
                    
89		mailingList.setOutEmailAddress(outEmailAddress);
                    
90		mailingList.setOutCustom(outCustom);
                    
154		validate(
                    
155			emailAddress, inServerName, inUserName, outEmailAddress, outCustom,
                    
156			outServerName, outUserName, active);
                    
161		mailingList.setModifiedDate(serviceContext.getModifiedDate(null));
                    
162		mailingList.setEmailAddress(emailAddress);
                    
163		mailingList.setInProtocol(inUseSSL ? inProtocol + "s" : inProtocol);
                    
169		mailingList.setInReadInterval(inReadInterval);
                    
170		mailingList.setOutEmailAddress(outEmailAddress);
                    
171		mailingList.setOutCustom(outCustom);
                    
249
                    
250		if (!Validator.isEmailAddress(emailAddress)) {
                    
251			throw new MailingListEmailAddressException();
                    
                
MBMailingListLocalServiceImpl.java https://github.com/lululiferay/liferay-portal.git | Java | 272 lines
                    
88		mailingList.setInReadInterval(inReadInterval);
                    
89		mailingList.setOutEmailAddress(outEmailAddress);
                    
90		mailingList.setOutCustom(outCustom);
                    
154		validate(
                    
155			emailAddress, inServerName, inUserName, outEmailAddress, outCustom,
                    
156			outServerName, outUserName, active);
                    
161		mailingList.setModifiedDate(serviceContext.getModifiedDate(null));
                    
162		mailingList.setEmailAddress(emailAddress);
                    
163		mailingList.setInProtocol(inUseSSL ? inProtocol + "s" : inProtocol);
                    
169		mailingList.setInReadInterval(inReadInterval);
                    
170		mailingList.setOutEmailAddress(outEmailAddress);
                    
171		mailingList.setOutCustom(outCustom);
                    
249
                    
250		if (!Validator.isEmailAddress(emailAddress)) {
                    
251			throw new MailingListEmailAddressException();
                    
                
MBMailingListLocalServiceImpl.java https://github.com/azzazzel/liferay-portal.git | Java | 272 lines
                    
88		mailingList.setInReadInterval(inReadInterval);
                    
89		mailingList.setOutEmailAddress(outEmailAddress);
                    
90		mailingList.setOutCustom(outCustom);
                    
154		validate(
                    
155			emailAddress, inServerName, inUserName, outEmailAddress, outCustom,
                    
156			outServerName, outUserName, active);
                    
161		mailingList.setModifiedDate(serviceContext.getModifiedDate(null));
                    
162		mailingList.setEmailAddress(emailAddress);
                    
163		mailingList.setInProtocol(inUseSSL ? inProtocol + "s" : inProtocol);
                    
169		mailingList.setInReadInterval(inReadInterval);
                    
170		mailingList.setOutEmailAddress(outEmailAddress);
                    
171		mailingList.setOutCustom(outCustom);
                    
249
                    
250		if (!Validator.isEmailAddress(emailAddress)) {
                    
251			throw new MailingListEmailAddressException();
                    
                
MBMailingListLocalServiceImpl.java https://github.com/kevincho/liferay-portal.git | Java | 272 lines
                    
88		mailingList.setInReadInterval(inReadInterval);
                    
89		mailingList.setOutEmailAddress(outEmailAddress);
                    
90		mailingList.setOutCustom(outCustom);
                    
154		validate(
                    
155			emailAddress, inServerName, inUserName, outEmailAddress, outCustom,
                    
156			outServerName, outUserName, active);
                    
161		mailingList.setModifiedDate(serviceContext.getModifiedDate(null));
                    
162		mailingList.setEmailAddress(emailAddress);
                    
163		mailingList.setInProtocol(inUseSSL ? inProtocol + "s" : inProtocol);
                    
169		mailingList.setInReadInterval(inReadInterval);
                    
170		mailingList.setOutEmailAddress(outEmailAddress);
                    
171		mailingList.setOutCustom(outCustom);
                    
249
                    
250		if (!Validator.isEmailAddress(emailAddress)) {
                    
251			throw new MailingListEmailAddressException();
                    
                
DAO.java https://bitbucket.org/simplexproject/simplex-development.git | Java | 353 lines
                    
121	 * @brief Deletes the user by its email.
                    
122	 * @param email
                    
123	 *            - the id of the wanted user.
                    
130	/**
                    
131	 * @brief Validate user finds the user in the databse (by it's email) and
                    
132	 *        validates. That the given password is like the one iin the
                    
140	 */
                    
141	public User validateUser(String email, String password) {
                    
142		Objectify objectify = ObjectifyService.begin();
                    
143
                    
144		if (email != null && !email.equals("") && password != null
                    
145				&& !password.equals("")) { // Checks for valid parameters, and
                    
158
                    
159		System.out.println("Failed login attempt:\n" + "email: " + email
                    
160				+ " Password:" + password);
                    
                
IntegrationCache.java https://github.com/thanhvc/exogtn.git | Java | 344 lines
                    
128
                    
129   public void invalidate(String ns)
                    
130   {
                    
139
                    
140   public void invalidateAll()
                    
141   {
                    
334
                    
335      sb.append(query.getEmail()).append(SEP)
                    
336         .append(query.getFirstName()).append(SEP)
                    
                
WebAccessor.java https://bitbucket.org/jorgenio/gvsig.git | Java | 320 lines
                    
7 *  Description :        Prompt user for proxies and passwords
                    
8 *  Author's email :     mchenryc@acm.org
                    
9 *  Author's Website :   http://www.izforge.com
                    
263    }
                    
264    proxyPanel.validate();
                    
265    
                    
                
IntegrationCache.java https://github.com/ETK/etk-model.git | Java | 344 lines
                    
128
                    
129   public void invalidate(String ns)
                    
130   {
                    
139
                    
140   public void invalidateAll()
                    
141   {
                    
334
                    
335      sb.append(query.getEmail()).append(SEP)
                    
336         .append(query.getFirstName()).append(SEP)
                    
                
IntegrationCache.java https://github.com/thanhvc/etk-model.git | Java | 344 lines
                    
128
                    
129   public void invalidate(String ns)
                    
130   {
                    
139
                    
140   public void invalidateAll()
                    
141   {
                    
334
                    
335      sb.append(query.getEmail()).append(SEP)
                    
336         .append(query.getFirstName()).append(SEP)
                    
                
MBMailingListLocalServiceImpl.java https://github.com/Alanlin/liferay-portal.git | Java | 272 lines
                    
88		mailingList.setInReadInterval(inReadInterval);
                    
89		mailingList.setOutEmailAddress(outEmailAddress);
                    
90		mailingList.setOutCustom(outCustom);
                    
154		validate(
                    
155			emailAddress, inServerName, inUserName, outEmailAddress, outCustom,
                    
156			outServerName, outUserName, active);
                    
161		mailingList.setModifiedDate(serviceContext.getModifiedDate(null));
                    
162		mailingList.setEmailAddress(emailAddress);
                    
163		mailingList.setInProtocol(inUseSSL ? inProtocol + "s" : inProtocol);
                    
169		mailingList.setInReadInterval(inReadInterval);
                    
170		mailingList.setOutEmailAddress(outEmailAddress);
                    
171		mailingList.setOutCustom(outCustom);
                    
249
                    
250		if (!Validator.isEmailAddress(emailAddress)) {
                    
251			throw new MailingListEmailAddressException();
                    
                
PinEntryViewModel.java https://gitlab.com/github-cloud-corporation/My-Wallet-V3-Android | Java | 385 lines
                    
96                if (extras.containsKey(KEY_INTENT_EMAIL)) {
                    
97                    email = extras.getString(KEY_INTENT_EMAIL);
                    
98                }
                    
104
                    
105                if (password != null && password.length() > 0 && email != null && !email.isEmpty()) {
                    
106                    // Previous page was CreateWalletFragment
                    
156                    public void onNegativeClicked() {
                    
157                        validateAndConfirmPin();
                    
158                    }
                    
160            } else {
                    
161                validateAndConfirmPin();
                    
162            }
                    
306        mPrefsUtil.setValue(PrefsUtil.KEY_EMAIL, email);
                    
307        mPayloadManager.setEmail(email);
                    
308        mPayloadManager.setTempPassword(password);
                    
                
PinEntryViewModel.java https://gitlab.com/admin-github-cloud/My-Wallet-V3-Android | Java | 385 lines
                    
96                if (extras.containsKey(KEY_INTENT_EMAIL)) {
                    
97                    email = extras.getString(KEY_INTENT_EMAIL);
                    
98                }
                    
104
                    
105                if (password != null && password.length() > 0 && email != null && !email.isEmpty()) {
                    
106                    // Previous page was CreateWalletFragment
                    
156                    public void onNegativeClicked() {
                    
157                        validateAndConfirmPin();
                    
158                    }
                    
160            } else {
                    
161                validateAndConfirmPin();
                    
162            }
                    
306        mPrefsUtil.setValue(PrefsUtil.KEY_EMAIL, email);
                    
307        mPayloadManager.setEmail(email);
                    
308        mPayloadManager.setTempPassword(password);
                    
                
PortScan.java https://github.com/huangshu91/MobiPerf.git | Java | 328 lines
                    
5 * The package is distributed under license GPLv3.
                    
6 * If you have any feedbacks or suggestions, don't hesitate to send us emails (3gtest@umich.edu).
                    
7 * The server suite source code is not included in this package, if you have specific questions related with servers, please also send us emails
                    
117				//measure latency of establishing TCP connection, is it RTT?
                    
118				//validated by trace
                    
119
                    
                
PortScan.java https://github.com/huangshu91/MobiPerf.git | Java | 328 lines
                    
5 * The package is distributed under license GPLv3.
                    
6 * If you have any feedbacks or suggestions, don't hesitate to send us emails (3gtest@umich.edu).
                    
7 * The server suite source code is not included in this package, if you have specific questions related with servers, please also send us emails
                    
117				//measure latency of establishing TCP connection, is it RTT?
                    
118				//validated by trace
                    
119
                    
                
MBMailingListLocalServiceImpl.java https://github.com/jenkins-qa/liferay-portal.git | Java | 272 lines
                    
88		mailingList.setInReadInterval(inReadInterval);
                    
89		mailingList.setOutEmailAddress(outEmailAddress);
                    
90		mailingList.setOutCustom(outCustom);
                    
154		validate(
                    
155			emailAddress, inServerName, inUserName, outEmailAddress, outCustom,
                    
156			outServerName, outUserName, active);
                    
161		mailingList.setModifiedDate(serviceContext.getModifiedDate(null));
                    
162		mailingList.setEmailAddress(emailAddress);
                    
163		mailingList.setInProtocol(inUseSSL ? inProtocol + "s" : inProtocol);
                    
169		mailingList.setInReadInterval(inReadInterval);
                    
170		mailingList.setOutEmailAddress(outEmailAddress);
                    
171		mailingList.setOutCustom(outCustom);
                    
249
                    
250		if (!Validator.isEmailAddress(emailAddress)) {
                    
251			throw new MailingListEmailAddressException();
                    
                
XmlContactEntryGDataSerializer.java https://github.com/Jib-BAOSP/platform_external_gdata.git | Java | 256 lines
                    
6import com.google.wireless.gdata.contacts.data.ContactsElement;
                    
7import com.google.wireless.gdata.contacts.data.EmailAddress;
                    
8import com.google.wireless.gdata.contacts.data.ImAddress;
                    
62    // are not currently serialized.
                    
63    Enumeration eachEmail = entry.getEmailAddresses().elements();
                    
64    while (eachEmail.hasMoreElements()) {
                    
64    while (eachEmail.hasMoreElements()) {
                    
65      serialize(serializer, (EmailAddress) eachEmail.nextElement());
                    
66    }
                    
100
                    
101  private static void serialize(XmlSerializer serializer, EmailAddress email)
                    
102      throws IOException, ParseException {
                    
104    serializer.startTag(XmlGDataParser.NAMESPACE_GD_URI, "email");
                    
105    serializeContactsElement(serializer, email, XmlContactsGDataParser.TYPE_TO_REL_EMAIL);
                    
106    serializer.attribute(null /* ns */, "address", email.getAddress());
                    
                
ConfigurationActionImpl.java https://github.com/stevenjiancao/liferay-plugins.git | Java | 326 lines
                    
216
                    
217	protected void validateFields(ActionRequest actionRequest)
                    
218		throws Exception {
                    
226		boolean sendAsEmail = GetterUtil.getBoolean(
                    
227			getParameter(actionRequest, "sendAsEmail"));
                    
228		String subject = getParameter(actionRequest, "subject");
                    
248		if (sendAsEmail) {
                    
249			String[] emailAdresses = WebFormUtil.split(
                    
250				getParameter(actionRequest, "emailAddress"));
                    
251
                    
252			for (String emailAdress : emailAdresses) {
                    
253				emailAdress = emailAdress.trim();
                    
257				}
                    
258				else if (!Validator.isEmailAddress(emailAdress)) {
                    
259					SessionErrors.add(actionRequest, "emailAddressInvalid");
                    
                
BaseCmsConfig.java https://gitlab.com/lyc/kl_search | Java | 467 lines
                    
111	private java.lang.Integer downloadTime;
                    
112	private java.lang.Boolean emailValidate;
                    
113	private java.lang.String officeHome;
                    
120	 com.jeecms.core.entity.MarkConfig m_markConfig;
                    
121	 com.jeecms.core.entity.EmailConfig m_emailConfig;
                    
122
                    
342
                    
343	public java.lang.Boolean getEmailValidate() {
                    
344		return emailValidate;
                    
346
                    
347	public void setEmailValidate(java.lang.Boolean emailValidate) {
                    
348		this.emailValidate = emailValidate;
                    
411	 */
                    
412	public void setEmailConfig (com.jeecms.core.entity.EmailConfig m_emailConfig) {
                    
413		this.m_emailConfig = m_emailConfig;
                    
                
BaseCmsConfig.java https://gitlab.com/lyc/kl_search | Java | 467 lines
                    
111	private java.lang.Integer downloadTime;
                    
112	private java.lang.Boolean emailValidate;
                    
113	private java.lang.String officeHome;
                    
120	 com.jeecms.core.entity.MarkConfig m_markConfig;
                    
121	 com.jeecms.core.entity.EmailConfig m_emailConfig;
                    
122
                    
342
                    
343	public java.lang.Boolean getEmailValidate() {
                    
344		return emailValidate;
                    
346
                    
347	public void setEmailValidate(java.lang.Boolean emailValidate) {
                    
348		this.emailValidate = emailValidate;
                    
411	 */
                    
412	public void setEmailConfig (com.jeecms.core.entity.EmailConfig m_emailConfig) {
                    
413		this.m_emailConfig = m_emailConfig;
                    
                
BaseCmsConfig.java https://gitlab.com/lyc/kl_search | Java | 467 lines
                    
111	private java.lang.Integer downloadTime;
                    
112	private java.lang.Boolean emailValidate;
                    
113	private java.lang.String officeHome;
                    
120	 com.jeecms.core.entity.MarkConfig m_markConfig;
                    
121	 com.jeecms.core.entity.EmailConfig m_emailConfig;
                    
122
                    
342
                    
343	public java.lang.Boolean getEmailValidate() {
                    
344		return emailValidate;
                    
346
                    
347	public void setEmailValidate(java.lang.Boolean emailValidate) {
                    
348		this.emailValidate = emailValidate;
                    
411	 */
                    
412	public void setEmailConfig (com.jeecms.core.entity.EmailConfig m_emailConfig) {
                    
413		this.m_emailConfig = m_emailConfig;
                    
                
BaseCmsConfig.java https://gitlab.com/lyc/kl_search | Java | 467 lines
                    
111	private java.lang.Integer downloadTime;
                    
112	private java.lang.Boolean emailValidate;
                    
113	private java.lang.String officeHome;
                    
120	 com.jeecms.core.entity.MarkConfig m_markConfig;
                    
121	 com.jeecms.core.entity.EmailConfig m_emailConfig;
                    
122
                    
342
                    
343	public java.lang.Boolean getEmailValidate() {
                    
344		return emailValidate;
                    
346
                    
347	public void setEmailValidate(java.lang.Boolean emailValidate) {
                    
348		this.emailValidate = emailValidate;
                    
411	 */
                    
412	public void setEmailConfig (com.jeecms.core.entity.EmailConfig m_emailConfig) {
                    
413		this.m_emailConfig = m_emailConfig;
                    
                
BaseCmsConfig.java https://gitlab.com/lyc/kl_search | Java | 467 lines
                    
111	private java.lang.Integer downloadTime;
                    
112	private java.lang.Boolean emailValidate;
                    
113	private java.lang.String officeHome;
                    
120	 com.jeecms.core.entity.MarkConfig m_markConfig;
                    
121	 com.jeecms.core.entity.EmailConfig m_emailConfig;
                    
122
                    
342
                    
343	public java.lang.Boolean getEmailValidate() {
                    
344		return emailValidate;
                    
346
                    
347	public void setEmailValidate(java.lang.Boolean emailValidate) {
                    
348		this.emailValidate = emailValidate;
                    
411	 */
                    
412	public void setEmailConfig (com.jeecms.core.entity.EmailConfig m_emailConfig) {
                    
413		this.m_emailConfig = m_emailConfig;
                    
                
BaseCmsConfig.java https://gitlab.com/lyc/kl_disk | Java | 467 lines
                    
111	private java.lang.Integer downloadTime;
                    
112	private java.lang.Boolean emailValidate;
                    
113	private java.lang.String officeHome;
                    
120	 com.jeecms.core.entity.MarkConfig m_markConfig;
                    
121	 com.jeecms.core.entity.EmailConfig m_emailConfig;
                    
122
                    
342
                    
343	public java.lang.Boolean getEmailValidate() {
                    
344		return emailValidate;
                    
346
                    
347	public void setEmailValidate(java.lang.Boolean emailValidate) {
                    
348		this.emailValidate = emailValidate;
                    
411	 */
                    
412	public void setEmailConfig (com.jeecms.core.entity.EmailConfig m_emailConfig) {
                    
413		this.m_emailConfig = m_emailConfig;
                    
                
BaseCmsConfig.java https://gitlab.com/lyc/kl_disk | Java | 467 lines
                    
111	private java.lang.Integer downloadTime;
                    
112	private java.lang.Boolean emailValidate;
                    
113	private java.lang.String officeHome;
                    
120	 com.jeecms.core.entity.MarkConfig m_markConfig;
                    
121	 com.jeecms.core.entity.EmailConfig m_emailConfig;
                    
122
                    
342
                    
343	public java.lang.Boolean getEmailValidate() {
                    
344		return emailValidate;
                    
346
                    
347	public void setEmailValidate(java.lang.Boolean emailValidate) {
                    
348		this.emailValidate = emailValidate;
                    
411	 */
                    
412	public void setEmailConfig (com.jeecms.core.entity.EmailConfig m_emailConfig) {
                    
413		this.m_emailConfig = m_emailConfig;
                    
                
BaseCmsConfig.java https://gitlab.com/lyc/kl_disk | Java | 467 lines
                    
111	private java.lang.Integer downloadTime;
                    
112	private java.lang.Boolean emailValidate;
                    
113	private java.lang.String officeHome;
                    
120	 com.jeecms.core.entity.MarkConfig m_markConfig;
                    
121	 com.jeecms.core.entity.EmailConfig m_emailConfig;
                    
122
                    
342
                    
343	public java.lang.Boolean getEmailValidate() {
                    
344		return emailValidate;
                    
346
                    
347	public void setEmailValidate(java.lang.Boolean emailValidate) {
                    
348		this.emailValidate = emailValidate;
                    
411	 */
                    
412	public void setEmailConfig (com.jeecms.core.entity.EmailConfig m_emailConfig) {
                    
413		this.m_emailConfig = m_emailConfig;
                    
                
BaseCmsConfig.java https://gitlab.com/lyc/kl_disk | Java | 467 lines
                    
111	private java.lang.Integer downloadTime;
                    
112	private java.lang.Boolean emailValidate;
                    
113	private java.lang.String officeHome;
                    
120	 com.jeecms.core.entity.MarkConfig m_markConfig;
                    
121	 com.jeecms.core.entity.EmailConfig m_emailConfig;
                    
122
                    
342
                    
343	public java.lang.Boolean getEmailValidate() {
                    
344		return emailValidate;
                    
346
                    
347	public void setEmailValidate(java.lang.Boolean emailValidate) {
                    
348		this.emailValidate = emailValidate;
                    
411	 */
                    
412	public void setEmailConfig (com.jeecms.core.entity.EmailConfig m_emailConfig) {
                    
413		this.m_emailConfig = m_emailConfig;
                    
                
BaseCmsConfig.java https://gitlab.com/lyc/kl_disk | Java | 467 lines
                    
111	private java.lang.Integer downloadTime;
                    
112	private java.lang.Boolean emailValidate;
                    
113	private java.lang.String officeHome;
                    
120	 com.jeecms.core.entity.MarkConfig m_markConfig;
                    
121	 com.jeecms.core.entity.EmailConfig m_emailConfig;
                    
122
                    
342
                    
343	public java.lang.Boolean getEmailValidate() {
                    
344		return emailValidate;
                    
346
                    
347	public void setEmailValidate(java.lang.Boolean emailValidate) {
                    
348		this.emailValidate = emailValidate;
                    
411	 */
                    
412	public void setEmailConfig (com.jeecms.core.entity.EmailConfig m_emailConfig) {
                    
413		this.m_emailConfig = m_emailConfig;
                    
                
BaseCmsConfig.java https://gitlab.com/lyc/kl_book | Java | 467 lines
                    
111	private java.lang.Integer downloadTime;
                    
112	private java.lang.Boolean emailValidate;
                    
113	private java.lang.String officeHome;
                    
120	 com.jeecms.core.entity.MarkConfig m_markConfig;
                    
121	 com.jeecms.core.entity.EmailConfig m_emailConfig;
                    
122
                    
342
                    
343	public java.lang.Boolean getEmailValidate() {
                    
344		return emailValidate;
                    
346
                    
347	public void setEmailValidate(java.lang.Boolean emailValidate) {
                    
348		this.emailValidate = emailValidate;
                    
411	 */
                    
412	public void setEmailConfig (com.jeecms.core.entity.EmailConfig m_emailConfig) {
                    
413		this.m_emailConfig = m_emailConfig;
                    
                
BaseCmsConfig.java https://gitlab.com/lyc/kl_book | Java | 467 lines
                    
111	private java.lang.Integer downloadTime;
                    
112	private java.lang.Boolean emailValidate;
                    
113	private java.lang.String officeHome;
                    
120	 com.jeecms.core.entity.MarkConfig m_markConfig;
                    
121	 com.jeecms.core.entity.EmailConfig m_emailConfig;
                    
122
                    
342
                    
343	public java.lang.Boolean getEmailValidate() {
                    
344		return emailValidate;
                    
346
                    
347	public void setEmailValidate(java.lang.Boolean emailValidate) {
                    
348		this.emailValidate = emailValidate;
                    
411	 */
                    
412	public void setEmailConfig (com.jeecms.core.entity.EmailConfig m_emailConfig) {
                    
413		this.m_emailConfig = m_emailConfig;
                    
                
BaseCmsConfig.java https://gitlab.com/lyc/kl | Java | 467 lines
                    
111	private java.lang.Integer downloadTime;
                    
112	private java.lang.Boolean emailValidate;
                    
113	private java.lang.String officeHome;
                    
120	 com.jeecms.core.entity.MarkConfig m_markConfig;
                    
121	 com.jeecms.core.entity.EmailConfig m_emailConfig;
                    
122
                    
342
                    
343	public java.lang.Boolean getEmailValidate() {
                    
344		return emailValidate;
                    
346
                    
347	public void setEmailValidate(java.lang.Boolean emailValidate) {
                    
348		this.emailValidate = emailValidate;
                    
411	 */
                    
412	public void setEmailConfig (com.jeecms.core.entity.EmailConfig m_emailConfig) {
                    
413		this.m_emailConfig = m_emailConfig;
                    
                
TestWebuiValidator.java https://github.com/anhnht/exogtn.git | Java | 262 lines
                    
29import org.exoplatform.webui.form.validator.DateTimeValidator;
                    
30import org.exoplatform.webui.form.validator.EmailAddressValidator;
                    
31import org.exoplatform.webui.form.validator.IdentifierValidator;
                    
50      Validator validator = new URLValidator();
                    
51      // Test ip address and invalidate subnet masks ip
                    
52      assertTrue(expected(validator, "https://192.168.1.1"));
                    
108
                    
109   public void testEmailValidator()
                    
110   {
                    
110   {
                    
111      Validator validator = new EmailAddressValidator();
                    
112      assertTrue(expected(validator, "root.gtn@exoplatform.com"));
                    
207      {
                    
208         validator.validate(uiInput);
                    
209         return true;
                    
                
JobportalForm.java https://gitlab.com/techgenius/mycampus | Java | 258 lines
                    
109
                    
110        if(!isValidEmailAddress(getText(emailIdEdt))){
                    
111            return "Enter valid mail ID";
                    
174            reqJson.put("emailAddress", dto.getEmailAddress());
                    
175            System.out.println("emailAddress" + dto.getEmailAddress());
                    
176            reqJson.put("resumeHeadline", dto.getResumeHeadline());
                    
186            reqJson.put("campus_emailid", dto.getCampus_emailid());
                    
187            System.out.println("campus_emailid" + localObject.getEmailId());
                    
188        } catch (JSONException e) {
                    
205        dto.setMobileNumber(getText(mobileNoEdt));
                    
206        dto.setEmailAddress(getText(emailIdEdt));
                    
207        dto.setPreferedLocation(getText(preferedlocation));
                    
212        dto.setKeySkills(getText(KeySkillEdt));
                    
213dto.setCampus_emailid(localObject.getEmailId());
                    
214
                    
                
JobportalForm.java https://gitlab.com/swarupa/mycampus | Java | 258 lines
                    
109
                    
110        if(!isValidEmailAddress(getText(emailIdEdt))){
                    
111            return "Enter valid mail ID";
                    
174            reqJson.put("emailAddress", dto.getEmailAddress());
                    
175            System.out.println("emailAddress" + dto.getEmailAddress());
                    
176            reqJson.put("resumeHeadline", dto.getResumeHeadline());
                    
186            reqJson.put("campus_emailid", dto.getCampus_emailid());
                    
187            System.out.println("campus_emailid" + localObject.getEmailId());
                    
188        } catch (JSONException e) {
                    
205        dto.setMobileNumber(getText(mobileNoEdt));
                    
206        dto.setEmailAddress(getText(emailIdEdt));
                    
207        dto.setPreferedLocation(getText(preferedlocation));
                    
212        dto.setKeySkills(getText(KeySkillEdt));
                    
213dto.setCampus_emailid(localObject.getEmailId());
                    
214
                    
                
LdapUserGroupConfNotConfiguredTest.java https://github.com/galak/nexus.git | Java | 168 lines
                    
75        Assert.assertEquals( "cn", dto.getUserRealNameAttribute() );
                    
76        Assert.assertEquals( "mail", dto.getEmailAddressAttribute() );
                    
77        Assert.assertNull( dto.getUserMemberOfAttribute() );
                    
82
                    
83    private void validateConfigFile( LdapUserAndGroupConfigurationDTO dto )
                    
84        throws Exception
                    
103        Assert.assertEquals( dto.getUserRealNameAttribute(), userGroupConfig.getUserRealNameAttribute() );
                    
104        Assert.assertEquals( dto.getEmailAddressAttribute(), userGroupConfig.getEmailAddressAttribute() );
                    
105        Assert.assertEquals( dto.getUserMemberOfAttribute(), userGroupConfig.getUserMemberOfAttribute() );
                    
130        userGroupConf.setUserRealNameAttribute( "cn" );
                    
131        userGroupConf.setEmailAddressAttribute( "mail" );
                    
132        userGroupConf.setGroupSubtree( false );
                    
142
                    
143        this.validateConfigFile( userGroupConf );
                    
144    }
                    
                
MBMailingListLocalServiceImpl.java https://github.com/abdlquadri/liferay-portal.git | Java | 272 lines
                    
88		mailingList.setInReadInterval(inReadInterval);
                    
89		mailingList.setOutEmailAddress(outEmailAddress);
                    
90		mailingList.setOutCustom(outCustom);
                    
154		validate(
                    
155			emailAddress, inServerName, inUserName, outEmailAddress, outCustom,
                    
156			outServerName, outUserName, active);
                    
161		mailingList.setModifiedDate(serviceContext.getModifiedDate(null));
                    
162		mailingList.setEmailAddress(emailAddress);
                    
163		mailingList.setInProtocol(inUseSSL ? inProtocol + "s" : inProtocol);
                    
169		mailingList.setInReadInterval(inReadInterval);
                    
170		mailingList.setOutEmailAddress(outEmailAddress);
                    
171		mailingList.setOutCustom(outCustom);
                    
249
                    
250		if (!Validator.isEmailAddress(emailAddress)) {
                    
251			throw new MailingListEmailAddressException();
                    
                
PaymentService.java https://gitlab.com/CORP-RESELLER/DonationWidget | Java | 327 lines
                    
69			data.put(Constants.IPN_URL, serverUrl + "/ac?method=ipnMsg");
                    
70			data.put(Constants.RECEIVEREMAIL, user.getEmailId());
                    
71			
                    
145			if ("Success".equals(decoder.get(Constants.ACK))) {
                    
146				transactionData.setEmailid(decoder.get(Constants.EMAIL));
                    
147				// PayerId of the Receiver.
                    
152				ecData.put(Constants.AMT, decoder.get(Constants.AMT));
                    
153				ecData.put(Constants.RECEIVEREMAIL, user.getEmailId());
                    
154				ecData.put(Constants.CURRENCYCODE, decoder.get(Constants.CURRENCYCODE));
                    
263				}
                    
264				senderEmail = decoder.get(ApplicationProperties.getProperty(Constants.IPN_EC_SENDEREMAIL));
                    
265				transactionType = "EC";
                    
271				transactionId = decoder.get(ApplicationProperties.getProperty(Constants.IPN_AP_TXNID));					
                    
272				senderEmail = decoder.get(ApplicationProperties.getProperty(Constants.IPN_AP_SENDEREMAIL));
                    
273				transactionType = "AP";
                    
                
MBMailingListLocalServiceImpl.java https://github.com/catherine-lui/liferay-portal.git | Java | 272 lines
                    
88		mailingList.setInReadInterval(inReadInterval);
                    
89		mailingList.setOutEmailAddress(outEmailAddress);
                    
90		mailingList.setOutCustom(outCustom);
                    
154		validate(
                    
155			emailAddress, inServerName, inUserName, outEmailAddress, outCustom,
                    
156			outServerName, outUserName, active);
                    
161		mailingList.setModifiedDate(serviceContext.getModifiedDate(null));
                    
162		mailingList.setEmailAddress(emailAddress);
                    
163		mailingList.setInProtocol(inUseSSL ? inProtocol + "s" : inProtocol);
                    
169		mailingList.setInReadInterval(inReadInterval);
                    
170		mailingList.setOutEmailAddress(outEmailAddress);
                    
171		mailingList.setOutCustom(outCustom);
                    
249
                    
250		if (!Validator.isEmailAddress(emailAddress)) {
                    
251			throw new MailingListEmailAddressException();
                    
                
PubServiceImpl.java https://gitlab.com/trungkien963/be-java | Java | 215 lines
                    
43        pubLoginResponse.setOrganizationName(wsPubLoginResponse.getOrganization_name());
                    
44        pubLoginResponse.setDeveloperEmail(wsPubLoginResponse.getDeveloper_email());
                    
45        pubLoginResponse.setTokenType(wsPubLoginResponse.getToken_type());
                    
117        pubFormDetails.setCallBackUrl(wsPubFormDetails.getCallBackUrl());
                    
118        pubFormDetails.setValidateOnly(wsPubFormDetails.getValidateOnly());
                    
119
                    
144            PubFormDistributions pubFormDistributions = new PubFormDistributions();
                    
145            pubFormDistributions.setEmail(wsPubFormPackage.getDistributions().getEmail());
                    
146            pubFormDistributions.setArchive(wsPubFormPackage.getDistributions().getArchive());
                    
                
Preferences.java https://github.com/SeyZ/eclim.git | Java | 431 lines
                    
47  public static final String USERNAME_PREFERENCE = "org.eclim.user.name";
                    
48  public static final String USEREMAIL_PREFERENCE = "org.eclim.user.email";
                    
49
                    
315    }else{
                    
316      validateValue(options.get(name), name, value);
                    
317
                    
364    if (project == null){
                    
365      validateValue(pref, name, value);
                    
366      globalPrefs.put(name, value);
                    
379      }else{
                    
380        validateValue(pref, name, value);
                    
381        projectPrefs.put(name, value);
                    
407  /**
                    
408   * Validates that the supplied value is valid for the specified
                    
409   * option/preference.
                    
                
ArztNeuKurz.java https://github.com/bomm/thera-pi-2.git | Java | 332 lines
                    
53		add(getButtonPanel(),BorderLayout.SOUTH);		
                    
54		validate();
                    
55	}
                    
150
                    
151		jpan.add(new JLabel("Email"),cc.xy(1, 24));
                    
152		tfs[11] = new JRtaTextField("NIX",true);
                    
154		tfs[11].addFocusListener(this);
                    
155		tfs[11].setName("email1");
                    
156		jpan.add(tfs[11],cc.xyw(3, 24,4));
                    
176
                    
177		jpan.getPanel().validate();
                    
178		jscr = JCompTools.getTransparentScrollPane(jpan.getPanel());
                    
179		jscr.getVerticalScrollBar().setUnitIncrement(15);
                    
180		jscr.validate();
                    
181		return jscr;
                    
                
ConfigurationActionImpl.java https://github.com/jonasyuandotcom/liferay-plugins.git | Java | 326 lines
                    
216
                    
217	protected void validateFields(ActionRequest actionRequest)
                    
218		throws Exception {
                    
226		boolean sendAsEmail = GetterUtil.getBoolean(
                    
227			getParameter(actionRequest, "sendAsEmail"));
                    
228		String subject = getParameter(actionRequest, "subject");
                    
248		if (sendAsEmail) {
                    
249			String[] emailAdresses = WebFormUtil.split(
                    
250				getParameter(actionRequest, "emailAddress"));
                    
251
                    
252			for (String emailAdress : emailAdresses) {
                    
253				emailAdress = emailAdress.trim();
                    
257				}
                    
258				else if (!Validator.isEmailAddress(emailAdress)) {
                    
259					SessionErrors.add(actionRequest, "emailAddressInvalid");
                    
                
Preferences.java https://github.com/rue/eclim.git | Java | 431 lines
                    
47  public static final String USERNAME_PREFERENCE = "org.eclim.user.name";
                    
48  public static final String USEREMAIL_PREFERENCE = "org.eclim.user.email";
                    
49
                    
315    }else{
                    
316      validateValue(options.get(name), name, value);
                    
317
                    
364    if (project == null){
                    
365      validateValue(pref, name, value);
                    
366      globalPrefs.put(name, value);
                    
379      }else{
                    
380        validateValue(pref, name, value);
                    
381        projectPrefs.put(name, value);
                    
407  /**
                    
408   * Validates that the supplied value is valid for the specified
                    
409   * option/preference.
                    
                
ChatHistory.java https://github.com/joechen2010/IM.git | Java | 236 lines
                    
163
                    
164                String email = chatSession.getVisitorsEmail();
                    
165                String sessionID = chatSession.getSessionID();
                    
172                Date startDate = chatSession.getStartDate();
                    
173                HistoryItem historyItem = new HistoryItem(nickname, startDate, email, question, duration);
                    
174                historyItem.setSessionID(sessionID);
                    
177
                    
178            list.validate();
                    
179            list.repaint();
                    
                
SudoPanel.java https://github.com/jponge/izpack-full-svn-history-copy.git | Java | 188 lines
                    
7 *  Description :        A panel doing a linux/unix/macosx 'sudo' for administrator (native (sub)) installs.
                    
8 *  Author's email :     jblok@profdata.nl
                    
9 *  Author's Website :   http://www.profdata.nl
                    
171	/**
                    
172	 *  Indicates wether the panel has been validated or not.
                    
173	 *
                    
175	 */
                    
176	public boolean isValidated()
                    
177	{
                    
                
ConfigurationActionImpl.java https://github.com/adorjan/liferay-plugins.git | Java | 326 lines
                    
216
                    
217	protected void validateFields(ActionRequest actionRequest)
                    
218		throws Exception {
                    
226		boolean sendAsEmail = GetterUtil.getBoolean(
                    
227			getParameter(actionRequest, "sendAsEmail"));
                    
228		String subject = getParameter(actionRequest, "subject");
                    
248		if (sendAsEmail) {
                    
249			String[] emailAdresses = WebFormUtil.split(
                    
250				getParameter(actionRequest, "emailAddress"));
                    
251
                    
252			for (String emailAdress : emailAdresses) {
                    
253				emailAdress = emailAdress.trim();
                    
257				}
                    
258				else if (!Validator.isEmailAddress(emailAdress)) {
                    
259					SessionErrors.add(actionRequest, "emailAddressInvalid");
                    
                
Preferences.java https://github.com/DamienCassou/eclim.git | Java | 431 lines
                    
47  public static final String USERNAME_PREFERENCE = "org.eclim.user.name";
                    
48  public static final String USEREMAIL_PREFERENCE = "org.eclim.user.email";
                    
49
                    
315    }else{
                    
316      validateValue(options.get(name), name, value);
                    
317
                    
364    if (project == null){
                    
365      validateValue(pref, name, value);
                    
366      globalPrefs.put(name, value);
                    
379      }else{
                    
380        validateValue(pref, name, value);
                    
381        projectPrefs.put(name, value);
                    
407  /**
                    
408   * Validates that the supplied value is valid for the specified
                    
409   * option/preference.
                    
                
ExchangeStore.java https://github.com/elbenj/corpmail.git | Java | 278 lines
                    
18
                    
19import com.elbenj.email.Email;
                    
20import com.elbenj.email.ExchangeUtils;
                    
25import com.elbenj.email.mail.StoreSynchronizer;
                    
26import com.elbenj.email.provider.EmailContent.Account;
                    
27import com.elbenj.email.service.EasAuthenticatorService;
                    
28import com.elbenj.email.service.EmailServiceProxy;
                    
29import com.elbenj.email.service.IEmailService;
                    
30
                    
110        android.accounts.Account systemAccount =
                    
111            new android.accounts.Account(acct.mEmailAddress, Email.EXCHANGE_ACCOUNT_MANAGER_TYPE);
                    
112        return AccountManager.get(context).removeAccount(systemAccount, null, null);
                    
243
                    
244                IEmailService svc = ExchangeUtils.getExchangeEmailService(mContext, null);
                    
245                // Use a longer timeout for the validate command.  Note that the instanceof check
                    
                
UserServlet.java https://gitlab.com/CORP-RESELLER/rest-api-sample-app-java | Java | 412 lines
                    
155		try {
                    
156			user = Dao.getUser(email);
                    
157		} catch (SQLException sqlex) {
                    
244			HttpServletResponse response) throws ServletException, IOException {
                    
245		String email = request.getParameter("user_email");
                    
246		String password = request.getParameter("user_password");
                    
288		session.setAttribute("isSessionActive", true);
                    
289		session.setAttribute("user", email);
                    
290
                    
301		// validate User
                    
302		String email = request.getParameter("user_email");
                    
303		String password = request.getParameter("user_password");
                    
333		// validate User existence
                    
334		String email = request.getParameter("user_email");
                    
335		String password = request.getParameter("user_current_password");
                    
                
MBMailingListLocalServiceImpl.java https://github.com/christine-huang/liferay-portal.git | Java | 273 lines
                    
88		mailingList.setInReadInterval(inReadInterval);
                    
89		mailingList.setOutEmailAddress(outEmailAddress);
                    
90		mailingList.setOutCustom(outCustom);
                    
154		validate(
                    
155			emailAddress, inServerName, inUserName, outEmailAddress, outCustom,
                    
156			outServerName, outUserName, active);
                    
161		mailingList.setModifiedDate(serviceContext.getModifiedDate(null));
                    
162		mailingList.setEmailAddress(emailAddress);
                    
163		mailingList.setInProtocol(inUseSSL ? inProtocol + "s" : inProtocol);
                    
169		mailingList.setInReadInterval(inReadInterval);
                    
170		mailingList.setOutEmailAddress(outEmailAddress);
                    
171		mailingList.setOutCustom(outCustom);
                    
250
                    
251		if (!Validator.isEmailAddress(emailAddress)) {
                    
252			throw new MailingListEmailAddressException();
                    
                
QuickContactBadge.java https://bitbucket.org/festevezga/xobotos.git | Java | 302 lines
                    
168     * the contact's URI is not available, as an extra query will have to be
                    
169     * performed to lookup the URI based on the email.
                    
170     *
                    
170     *
                    
171     * @param emailAddress The email address of the contact.
                    
172     * @param lazyLookup If this is true, the lookup query will not be performed
                    
175    public void assignContactFromEmail(String emailAddress, boolean lazyLookup) {
                    
176        mContactEmail = emailAddress;
                    
177        if (!lazyLookup) {
                    
178            mQueryHandler.startQuery(TOKEN_EMAIL_LOOKUP, null,
                    
179                    Uri.withAppendedPath(Email.CONTENT_LOOKUP_URI, Uri.encode(mContactEmail)),
                    
180                    EMAIL_LOOKUP_PROJECTION, null, null, null);
                    
218            mQueryHandler.startQuery(TOKEN_EMAIL_LOOKUP_AND_TRIGGER, mContactEmail,
                    
219                    Uri.withAppendedPath(Email.CONTENT_LOOKUP_URI, Uri.encode(mContactEmail)),
                    
220                    EMAIL_LOOKUP_PROJECTION, null, null, null);
                    
                
EmailRecipientUtils.java https://gitlab.com/github-cloud-corp/email-ext-plugin | Java | 189 lines
                    
44            final Set<InternetAddress> bcc = new LinkedHashSet<>();
                    
45            final String defaultSuffix = ExtendedEmailPublisher.descriptor().getDefaultSuffix();
                    
46
                    
79                    if(u != null) {
                    
80                        userEmail = getUserConfiguredEmail(u);
                    
81                        if(userEmail != null){
                    
92                if(address.getPersonal() != null) {
                    
93                    address.setPersonal(address.getPersonal(), ExtendedEmailPublisher.descriptor().getCharset());
                    
94                }
                    
99
                    
100    public static String getUserConfiguredEmail(User user) {
                    
101        String addr = null;
                    
137    public static boolean isExcludedRecipient(String userName, TaskListener listener) {
                    
138        ExtendedEmailPublisherDescriptor descriptor = Jenkins.getActiveInstance().getDescriptorByType(ExtendedEmailPublisherDescriptor.class);
                    
139        if(descriptor.getExcludedCommitters() != null) {
                    
                
MemberAct.java https://gitlab.com/MetadataDev/mcms | Java | 258 lines
                    
181	 *            新密码
                    
182	 * @param email
                    
183	 *            邮箱
                    
192	@RequestMapping(value = "/member/pwd.jspx", method = RequestMethod.POST)
                    
193	public String passwordSubmit(String origPwd, String newPwd, String email,
                    
194			String nextUrl, HttpServletRequest request,
                    
206		}
                    
207		WebErrors errors = validatePasswordSubmit(user.getId(), origPwd,
                    
208				newPwd, email, request);
                    
214		}
                    
215		cmsUserMng.updatePwdEmail(user.getId(), newPwd, email);
                    
216		return FrontUtils.showSuccess(request, model, nextUrl);
                    
243		}
                    
244		if (errors.ifNotEmail(email, "email", 100)) {
                    
245			return errors;
                    
                
TestWebuiValidator.java https://github.com/thanhvc/exogtn.git | Java | 262 lines
                    
29import org.exoplatform.webui.form.validator.DateTimeValidator;
                    
30import org.exoplatform.webui.form.validator.EmailAddressValidator;
                    
31import org.exoplatform.webui.form.validator.IdentifierValidator;
                    
50      Validator validator = new URLValidator();
                    
51      // Test ip address and invalidate subnet masks ip
                    
52      assertTrue(expected(validator, "https://192.168.1.1"));
                    
108
                    
109   public void testEmailValidator()
                    
110   {
                    
110   {
                    
111      Validator validator = new EmailAddressValidator();
                    
112      assertTrue(expected(validator, "root.gtn@exoplatform.com"));
                    
207      {
                    
208         validator.validate(uiInput);
                    
209         return true;
                    
                
LdapUserGroupConfNotConfiguredTest.java https://github.com/stadelma/nexus.git | Java | 168 lines
                    
75        Assert.assertEquals( "cn", dto.getUserRealNameAttribute() );
                    
76        Assert.assertEquals( "mail", dto.getEmailAddressAttribute() );
                    
77        Assert.assertNull( dto.getUserMemberOfAttribute() );
                    
82
                    
83    private void validateConfigFile( LdapUserAndGroupConfigurationDTO dto )
                    
84        throws Exception
                    
103        Assert.assertEquals( dto.getUserRealNameAttribute(), userGroupConfig.getUserRealNameAttribute() );
                    
104        Assert.assertEquals( dto.getEmailAddressAttribute(), userGroupConfig.getEmailAddressAttribute() );
                    
105        Assert.assertEquals( dto.getUserMemberOfAttribute(), userGroupConfig.getUserMemberOfAttribute() );
                    
130        userGroupConf.setUserRealNameAttribute( "cn" );
                    
131        userGroupConf.setEmailAddressAttribute( "mail" );
                    
132        userGroupConf.setGroupSubtree( false );
                    
142
                    
143        this.validateConfigFile( userGroupConf );
                    
144    }
                    
                
PortScan.java https://github.com/quietbamboo/MobiPerfUmich.git | Java | 328 lines
                    
5 * The package is distributed under license GPLv3.
                    
6 * If you have any feedbacks or suggestions, don't hesitate to send us emails (3gtest@umich.edu).
                    
7 * The server suite source code is not included in this package, if you have specific questions related with servers, please also send us emails
                    
117				//measure latency of establishing TCP connection, is it RTT?
                    
118				//validated by trace
                    
119
                    
                
UserInner.java git://github.com/WindowsAzure/azure-sdk-for-java.git | Java | 171 lines
                    
73    /**
                    
74     * Get the email property: Email address of the user.
                    
75     *
                    
82    /**
                    
83     * Set the email property: Email address of the user.
                    
84     *
                    
84     *
                    
85     * @param email the email value to set.
                    
86     * @return the UserInner object itself.
                    
87     */
                    
88    public UserInner withEmail(String email) {
                    
89        if (this.innerProperties() == null) {
                    
91        }
                    
92        this.innerProperties().withEmail(email);
                    
93        return this;
                    
                
TimeBasedOTPBrowserSetupMFAChecker.java https://github.com/danielreuther/liferay-portal.git | Java | 468 lines
                    
279			httpSession.setAttribute(
                    
280				MFATimeBasedOTPWebKeys.MFA_TIME_BASED_OTP_VALIDATED_AT_TIME,
                    
281				System.currentTimeMillis());
                    
282			httpSession.setAttribute(
                    
283				MFATimeBasedOTPWebKeys.MFA_TIME_BASED_OTP_VALIDATED_USER_ID,
                    
284				userId);
                    
325			sessionPhishingProtectedAttributes.add(
                    
326				MFATimeBasedOTPWebKeys.MFA_TIME_BASED_OTP_VALIDATED_AT_TIME);
                    
327			sessionPhishingProtectedAttributes.add(
                    
327			sessionPhishingProtectedAttributes.add(
                    
328				MFATimeBasedOTPWebKeys.MFA_TIME_BASED_OTP_VALIDATED_USER_ID);
                    
329
                    
355			sessionPhishingProtectedAttributes.remove(
                    
356				MFATimeBasedOTPWebKeys.MFA_TIME_BASED_OTP_VALIDATED_AT_TIME);
                    
357			sessionPhishingProtectedAttributes.remove(
                    
                
ReportFragmentRightPresenter.java https://gitlab.com/ahmadrosid/TrackinsAndroid | Java | 122 lines
                    
26 * @Author Ahmad Rosid
                    
27 * @Email ocittwo@gmail.com
                    
28 * @Github https://github.com/ar-android
                    
71
                    
72    private boolean validate() {
                    
73        boolean isValidate = true;
                    
77                if (TextUtils.isEmpty(formInputImage.getText())) {
                    
78                    isValidate = false;
                    
79                    if (!isShowEmpty) {
                    
85        }
                    
86        return isValidate;
                    
87    }
                    
113    public boolean finish() {
                    
114        return validate();
                    
115    }
                    
                
Composer.java https://gitlab.com/essere.lab.public/qualitas.class-corpus | Java | 236 lines
                    
77    private static final String UPDATE_COMMAND = "update"; // NOI18N
                    
78    private static final String VALIDATE_COMMAND = "validate"; // NOI18N
                    
79    private static final String SELF_UPDATE_COMMAND = "self-update"; // NOI18N
                    
103        String composerPath = ComposerOptions.getInstance().getComposerPath();
                    
104        String error = validate(composerPath);
                    
105        if (error != null) {
                    
111    @NbBundle.Messages("Composer.script.label=Composer")
                    
112    public static String validate(String composerPath) {
                    
113        return PhpExecutableValidator.validateCommand(composerPath, Bundle.Composer_script_label());
                    
165
                    
166    @NbBundle.Messages("Composer.run.validate=Composer (validate)")
                    
167    public Future<Integer> validate(PhpModule phpModule) {
                    
167    public Future<Integer> validate(PhpModule phpModule) {
                    
168        return runCommand(phpModule, VALIDATE_COMMAND, Bundle.Composer_run_validate());
                    
169    }
                    
                
Validator.java https://gitlab.com/pandame/moo | Java | 291 lines
                    
11{
                    
12	private static EmailValidator ev = EmailValidator.getInstance(false);
                    
13	private static UrlValidator uv = new UrlValidator();
                    
204	 * @param name Configuration item name.
                    
205	 * @param emails List of email addresses.
                    
206	 * @throws ConfigurationException When an email is invalid.
                    
207	 */
                    
208	public static void validateEmailList(final String name, final List<String> emails) throws ConfigurationException
                    
209	{
                    
210		for (String email : emails)
                    
211			validateEmail(name, email);
                    
212	}
                    
219	 */
                    
220	public static void validateEmail(final String name, final String email) throws ConfigurationException
                    
221	{
                    
                
EmailOTPBrowserMFAChecker.java https://github.com/danielreuther/liferay-portal.git | Java | 410 lines
                    
247		sessionPhishingProtectedAttributes.add(
                    
248			MFAEmailOTPWebKeys.MFA_EMAIL_OTP_VALIDATED_AT_TIME);
                    
249		sessionPhishingProtectedAttributes.add(
                    
249		sessionPhishingProtectedAttributes.add(
                    
250			MFAEmailOTPWebKeys.MFA_EMAIL_OTP_VALIDATED_USER_ID);
                    
251
                    
265		sessionPhishingProtectedAttributes.remove(
                    
266			MFAEmailOTPWebKeys.MFA_EMAIL_OTP_VALIDATED_AT_TIME);
                    
267		sessionPhishingProtectedAttributes.remove(
                    
267		sessionPhishingProtectedAttributes.remove(
                    
268			MFAEmailOTPWebKeys.MFA_EMAIL_OTP_VALIDATED_USER_ID);
                    
269
                    
343		Object mfaEmailOTPValidatedUserId = httpSession.getAttribute(
                    
344			MFAEmailOTPWebKeys.MFA_EMAIL_OTP_VALIDATED_USER_ID);
                    
345
                    
                
WidgetConfig.java https://github.com/arun11252/WebWorks.git | Java | 528 lines
                    
32	private String _author;
                    
33	private String _authorEmail;
                    
34	private String _authorURL;
                    
115
                    
116	public void validate() {
                    
117		if (_version == null || _version.length() == 0) {
                    
371
                    
372	public void setAuthorEmail(String authorEmail) {
                    
373		_authorEmail = authorEmail;
                    
375
                    
376	public String getAuthorEmail() {
                    
377		return _authorEmail;
                    
                
Validator.java https://gitlab.com/xMythycle/moo | Java | 291 lines
                    
11{
                    
12	private static EmailValidator ev = EmailValidator.getInstance(false);
                    
13	private static UrlValidator uv = new UrlValidator();
                    
204	 * @param name Configuration item name.
                    
205	 * @param emails List of email addresses.
                    
206	 * @throws ConfigurationException When an email is invalid.
                    
207	 */
                    
208	public static void validateEmailList(final String name, final List<String> emails) throws ConfigurationException
                    
209	{
                    
210		for (String email : emails)
                    
211			validateEmail(name, email);
                    
212	}
                    
219	 */
                    
220	public static void validateEmail(final String name, final String email) throws ConfigurationException
                    
221	{
                    
                
AportacionPresentarController.java https://github.com/FAP-Team/Fap-Module.git | Java | 376 lines
                    
43import controllers.gen.AportacionPresentarControllerGen;
                    
44import emails.Mails;
                    
45
                    
364		if (!Messages.hasErrors()) {
                    
365			AportacionPresentarController.formHabilitarFHValidateRules();
                    
366		}
                    
                
CmsAdminGlobalAct.java https://gitlab.com/spiderworts/ab_pc_cms | Java | 281 lines
                    
48		model.addAttribute("queryUsername", queryUsername);
                    
49		model.addAttribute("queryEmail", queryEmail);
                    
50		model.addAttribute("queryGroupId", queryGroupId);
                    
78				"queryUsername");
                    
79		String queryEmail = RequestUtils.getQueryParam(request, "queryEmail");
                    
80		CmsUser currUser = CmsUtils.getUser(request);
                    
100		model.addAttribute("queryUsername", queryUsername);
                    
101		model.addAttribute("queryEmail", queryEmail);
                    
102		model.addAttribute("queryGroupId", queryGroupId);
                    
156				"queryUsername");
                    
157		String queryEmail = RequestUtils.getQueryParam(request, "queryEmail");
                    
158		WebErrors errors = validateDelete(ids, request);
                    
195	public void checkEmail(String email, HttpServletResponse response) {
                    
196		checkEmailJson(email, response);
                    
197	}
                    
                
QuoteServices.java https://github.com/thanhvc/ofbiz.git | Java | 283 lines
                    
79        try {
                    
80            productStoreEmail = delegator.findByPrimaryKey("ProductStoreEmailSetting", UtilMisc.toMap("productStoreId", quote.get("productStoreId"), "emailType", emailType));
                    
81        } catch (GenericEntityException e) {
                    
81        } catch (GenericEntityException e) {
                    
82            Debug.logError(e, "Problem getting the ProductStoreEmailSetting for productStoreId=" + quote.get("productStoreId") + " and emailType=" + emailType, module);
                    
83        }
                    
94                    UtilMisc.toMap("productStoreId", quote.get("productStoreId"), 
                    
95                            "emailType", emailType), locale));
                    
96        }
                    
119        sendMap.put("sendTo", sendTo);
                    
120        if ((sendCc != null) && UtilValidate.isEmail(sendCc)) {
                    
121            sendMap.put("sendCc", sendCc);
                    
188
                    
189            if (UtilValidate.isNotEmpty(quoteOut) && UtilValidate.isNotEmpty(quoteOut.get("quoteId"))) {
                    
190                String quoteId = (String)quoteOut.get("quoteId");
                    
                
EntityBridge.java https://github.com/DarioGT/Modelibra-Family.git | Java | 128 lines
                    
20
                    
21	public static final String DEFAULT_EMAIL = "modelibra.swing@email.org";
                    
22
                    
50						PropertyClass.getString())) {
                    
51					if (propertyConfig.isValidateClassType()) {
                    
52						if (propertyConfig.getValidationType().equals(
                    
56						} else if (propertyConfig.getValidationType().equals(
                    
57								PropertyClass.getEmail())) {
                    
58							newEntity.setProperty(propertyConfig.getCode(),
                    
58							newEntity.setProperty(propertyConfig.getCode(),
                    
59									DEFAULT_EMAIL);
                    
60						}
                    
86					newEntity.setProperty(propertyConfig.getCode(), Transformer
                    
87							.email(DEFAULT_EMAIL));
                    
88				}
                    
                
TopicForm.java https://gitlab.com/essere.lab.public/qualitas.class-corpus | Java | 450 lines
                    
59 * Revision 1.3  2004/02/10 19:57:24  colinmacleod
                    
60 * Changed email address.
                    
61 *
                    
441     * validation errors, or <code>null</code> if there were no errors.
                    
442     * @see com.ivata.mask.web.struts.MaskForm#validate(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpSession)
                    
443     */
                    
443     */
                    
444    public ValidationErrors validate(final HttpServletRequest request,
                    
445            final HttpSession session) {
                    
447            session.getAttribute("securitySession");
                    
448        return library.validate(securitySession, topic);
                    
449    }
                    
                
PeopleImpl.java https://github.com/deas/alfresco.git | Java | 358 lines
                    
130	
                    
131	public String validatePerson(String personId)
                    
132	{
                    
132	{
                    
133		return validatePerson(personId, false);
                    
134	}
                    
135
                    
136	public String validatePerson(String personId, boolean validateIsCurrentUser)
                    
137	{
                    
308    	addToMap(properties, ContentModel.PROP_MOBILE, person.getMobile());
                    
309    	addToMap(properties, ContentModel.PROP_EMAIL, person.getEmail());
                    
310
                    
320			addToMap(properties, ContentModel.PROP_COMPANYFAX, company.getFax());
                    
321			addToMap(properties, ContentModel.PROP_COMPANYEMAIL, company.getEmail());
                    
322		}
                    
                
LComponent.java http://loon-simple.googlecode.com/svn/trunk/ | Java | 634 lines
                    
32 * @author chenpeng
                    
33 * @email?ceponline@yahoo.com.cn
                    
34 * @version 0.1.1
                    
387
                    
388		this.validatePosition();
                    
389	}
                    
401			super.setLocation(dx, dy);
                    
402			this.validatePosition();
                    
403		}
                    
412			}
                    
413			this.validateSize();
                    
414		}
                    
419			super.setLocation(dx, dy);
                    
420			this.validatePosition();
                    
421		}
                    
                
JobRepositoryTest.java https://gitlab.com/AERIUS/AERIUS | Java | 244 lines
                    
53  private static final String TEST_API_KEY = "wnaR9FavGRGv8RXCmdfXKEqeIt1DTZUS";
                    
54  private static final String TEST_EMAIL = "test@example.com";
                    
55
                    
74    final JobProgress jp = JobRepository.getProgress(getCalcConnection(), correlationIdentifier);
                    
75    validateEmptyProgress(jp);
                    
76    assertSame(JobState.INITIALIZED, jp.getState(), "State may must be initialized");
                    
88    final JobProgress jp = JobRepository.getProgress(getCalcConnection(), correlationIdentifier);
                    
89    validateEmptyProgress(jp);
                    
90    assertEquals(JobState.RUNNING, jp.getState(), "State must be initialized");
                    
224    user.setApiKey(TEST_API_KEY);
                    
225    user.setEmailAddress(TEST_EMAIL);
                    
226    ConnectUserRepository.createUser(getCalcConnection(), user);
                    
233
                    
234  private void validateEmptyProgress(final JobProgress jp) throws SQLException {
                    
235    assertNotNull(jp, "Job progress should be found");
                    
                
InputMethod.java https://github.com/OpenEtna/android_frameworks_base.git | Java | 217 lines
                    
24 * The InputMethod interface represents an input method which can generate key
                    
25 * events and text, such as digital, email addresses, CJK characters, other
                    
26 * language characters, and etc., while handling various input events, and send
                    
77     * unique token for the session it has with the system service.  It is
                    
78     * needed to identify itself with the service to validate its operations.
                    
79     * This token <strong>must not</strong> be passed to applications, since
                    
                
RequestsControllerTest.java https://bitbucket.org/genesys2/genesys2-server.git | Java | 237 lines
                    
84        RequestService.RequestInfo requestInfo = new RequestService.RequestInfo();
                    
85        requestInfo.setEmail("salexandrbasov@gmail.com");
                    
86        requestInfo.setNotes("notes");
                    
95        materialRequest = new MaterialRequest();
                    
96        materialRequest.setEmail("salexandrbasov@gmail.com");
                    
97        materialRequest.setVersion(1);
                    
178    @Test
                    
179    public void validateRequestTest() throws Exception {
                    
180        LOG.info("Start test-method validateRequestTest");
                    
183        materialRequestForTest.setSubRequests(materialSubRequestRepository.findAll());
                    
184        mockMvc.perform(post("/api/v0/requests/r/{uuid}/validate", materialRequestForTest.getUuid())
                    
185                .contentType(MediaType.APPLICATION_JSON))
                    
188
                    
189        LOG.info("Test validateRequestTest passed");
                    
190    }
                    
                
S3ClientLiveTest.java https://github.com/regularfry/jclouds.git | Java | 501 lines
                    
20
                    
21import static org.jclouds.s3.internal.StubS3AsyncClient.TEST_ACL_EMAIL;
                    
22import static org.jclouds.s3.internal.StubS3AsyncClient.TEST_ACL_ID;
                    
45import org.jclouds.s3.domain.AccessControlList.CanonicalUserGrantee;
                    
46import org.jclouds.s3.domain.AccessControlList.EmailAddressGrantee;
                    
47import org.jclouds.s3.domain.AccessControlList.GroupGranteeURI;
                    
117         addBlobToContainer(containerName, sourceKey);
                    
118         validateContent(containerName, sourceKey);
                    
119
                    
122
                    
123         validateContent(destinationContainer, destinationKey);
                    
124
                    
277
                    
278   protected S3Object validateObject(String sourceContainer, String key) throws InterruptedException,
                    
279            ExecutionException, TimeoutException, IOException {
                    
                
SamlProfileSamlNameIdBuilder.java https://github.com/frett/cas.git | Java | 345 lines
                    
80
                    
81        if (StringUtils.containsIgnoreCase(NameIDType.EMAIL, fmt)) {
                    
82            return NameIDType.EMAIL;
                    
141        val requiredNameFormat = getRequiredNameIdFormatIfAny(authnRequest);
                    
142        validateRequiredNameIdFormatIfAny(authnRequest, adaptor, supportedNameFormats, requiredNameFormat);
                    
143        val nameid = determineNameId(authnRequest, assertion, supportedNameFormats, service, adaptor);
                    
180    /**
                    
181     * Validate required name id format if any.
                    
182     *
                    
187     */
                    
188    protected void validateRequiredNameIdFormatIfAny(final RequestAbstractType authnRequest,
                    
189                                                     final SamlRegisteredServiceServiceProviderMetadataFacade adaptor,
                    
                
XMLWorkflowModelParser.java https://github.com/l15k4/liferay-plugins.git | Java | 669 lines
                    
69
                    
70	public void setValidate(boolean validate) {
                    
71		_validate = validate;
                    
74	protected Definition doParse(InputStream inputStream) throws Exception {
                    
75		Document document = SAXReaderUtil.read(inputStream, _validate);
                    
76
                    
253				"screen-name");
                    
254			String emailAddress = userAssignmentElement.elementText(
                    
255				"email-address");
                    
257			UserAssignment userAssignment = new UserAssignment(
                    
258				userId, screenName, emailAddress);
                    
259
                    
436			String screenName = userRecipientElement.elementText("screen-name");
                    
437			String emailAddress = userRecipientElement.elementText(
                    
438				"email-address");
                    
                
PutUserRequestBuilder.java https://github.com/dadoonet/elasticsearch.git | Java | 201 lines
                    
61        if (password != null) {
                    
62            Validation.Error error = Validation.Users.validatePassword(password);
                    
63            if (error != null) {
                    
85
                    
86    public PutUserRequestBuilder email(String email) {
                    
87        request.email(email);
                    
156                    }
                    
157                } else if (User.Fields.EMAIL.match(currentFieldName, parser.getDeprecationHandler())) {
                    
158                    if (token == XContentParser.Token.VALUE_STRING) {
                    
158                    if (token == XContentParser.Token.VALUE_STRING) {
                    
159                        email(parser.text());
                    
160                    } else if (token != XContentParser.Token.VALUE_NULL) {
                    
                
InvocationFactory.java https://github.com/Ricston/mule-transport-salesforce.git | Java | 201 lines
                    
27import org.mule.transport.salesforce.op.impl.GetUserInfoInvocation;
                    
28import org.mule.transport.salesforce.op.impl.InvalidateSessionsInvocation;
                    
29import org.mule.transport.salesforce.op.impl.LoginInvocation;
                    
37import org.mule.transport.salesforce.op.impl.SearchInvocation;
                    
38import org.mule.transport.salesforce.op.impl.SendEmailInvocation;
                    
39import org.mule.transport.salesforce.op.impl.SetPasswordInvocation;
                    
140        }
                    
141        else if (operation.equals(SalesforceProperties.SALESFORCE_OPERATION_INVALIDATE_SESSIONS))
                    
142        {
                    
142        {
                    
143            return new InvalidateSessionsInvocation(soapBindingPool, parameters);
                    
144
                    
190        }
                    
191        else if (operation.equals(SalesforceProperties.SALESFORCE_OPERATION_SEND_EMAIL))
                    
192        {
                    
                
ChannelsDetailActivityFragment.java https://gitlab.com/PrashamTrivedi/sharechannels-for-pushbullet | Java | 398 lines
                    
147					             contacts = info.getContacts();
                    
148					             getActivity().supportInvalidateOptionsMenu();
                    
149				             }
                    
312						             showSnackbarMessage(subscribed);
                    
313						             getActivity().supportInvalidateOptionsMenu();
                    
314					             }
                    
334			request.setTitle(info.getName());
                    
335			request.setEmail(contact.getEmail());
                    
336			request.setUrl("http://prashamtrivedi.github.io/ShareChannels/?tag=" + tag);
                    
364				             String text = "Subscription Deleted";
                    
365				             getActivity().supportInvalidateOptionsMenu();
                    
366				             showSnackbarMessage(text);
                    
                
QuickContactBadge.java https://github.com/Kali-/android_frameworks_base.git | Java | 302 lines
                    
168     * the contact's URI is not available, as an extra query will have to be
                    
169     * performed to lookup the URI based on the email.
                    
170     *
                    
170     *
                    
171     * @param emailAddress The email address of the contact.
                    
172     * @param lazyLookup If this is true, the lookup query will not be performed
                    
175    public void assignContactFromEmail(String emailAddress, boolean lazyLookup) {
                    
176        mContactEmail = emailAddress;
                    
177        if (!lazyLookup) {
                    
178            mQueryHandler.startQuery(TOKEN_EMAIL_LOOKUP, null,
                    
179                    Uri.withAppendedPath(Email.CONTENT_LOOKUP_URI, Uri.encode(mContactEmail)),
                    
180                    EMAIL_LOOKUP_PROJECTION, null, null, null);
                    
218            mQueryHandler.startQuery(TOKEN_EMAIL_LOOKUP_AND_TRIGGER, mContactEmail,
                    
219                    Uri.withAppendedPath(Email.CONTENT_LOOKUP_URI, Uri.encode(mContactEmail)),
                    
220                    EMAIL_LOOKUP_PROJECTION, null, null, null);
                    
                
SolicitudPresentarFAPController.java https://github.com/FAP-Team/Fap-Module.git | Java | 479 lines
                    
25import controllers.gen.SolicitudPresentarFAPControllerGen;
                    
26import emails.Mails;
                    
27
                    
128		if (!Messages.hasErrors()) {
                    
129			SolicitudPresentarFAPController.formFirmaFHValidateRules(firma);
                    
130		}
                    
276		if (!Messages.hasErrors()) {
                    
277			SolicitudPresentarFAPController.formFirmaPFValidateRules(firma);
                    
278		}
                    
344		if (!Messages.hasErrors()) {
                    
345			SolicitudPresentarFAPController.formFirmaRepresentanteValidateRules(firma);
                    
346		}
                    
                
PaginaVerificacionController.java https://github.com/FAP-Team/Fap-Module.git | Java | 957 lines
                    
56import controllers.gen.PaginaVerificacionControllerGen;
                    
57import emails.Mails;
                    
58import enumerado.fap.gen.EstadoNotificacionEnum;
                    
130			//dbVerificacion.uriTramite = verificacion.tramiteNombre.uri;
                    
131			PaginaVerificacionController.iniciarVerificacionValidateCopy("editar", dbVerificacion, verificacion);
                    
132		}
                    
134		if (!Messages.hasErrors()) {
                    
135			PaginaVerificacionController.iniciarVerificacionValidateRules(dbVerificacion, verificacion);
                    
136		}
                    
169		if (!Messages.hasErrors()) {
                    
170			PaginaVerificacionController.verificaTiposValidateRules();
                    
171		}
                    
198		if (!Messages.hasErrors()) {
                    
199			PaginaVerificacionController.verificaTiposNuevosDocValidateRules();
                    
200		}
                    
                
PaginaNotificarResolucionController.java https://github.com/FAP-Team/Fap-Module.git | Java | 485 lines
                    
89		if (!Messages.hasErrors()) {
                    
90			PaginaNotificarResolucionController.formGenerarOficioRemisionValidateCopy("editar", dbResolucionFAP, resolucionFAP);
                    
91		}
                    
105		if (!Messages.hasErrors()) {
                    
106			PaginaNotificarResolucionController.formGenerarOficioRemisionValidateRules(dbResolucionFAP, resolucionFAP);
                    
107		}
                    
152		if (!Messages.hasErrors()) {
                    
153			PaginaNotificarResolucionController.formVolverValidateRules();
                    
154		}
                    
178			resolucionFAP.solicitudFirmaPortafirmaOficioRemision.idSolicitante = agenteActual.usuarioldap;
                    
179			PaginaNotificarResolucionController.formEnviarOficiosRemisionPortaFirmaValidateCopy("editar", dbResolucionFAP, resolucionFAP);
                    
180
                    
206			dbResolucionFAP.solicitudFirmaPortafirmaOficioRemision.tipoDocumento = "SOL";
                    
207			dbResolucionFAP.solicitudFirmaPortafirmaOficioRemision.emailNotificacion = agenteActual.email;
                    
208			if (dbResolucionFAP.solicitudFirmaPortafirmaOficioRemision.agenteHaceSolicitud == null)
                    
                
EditarResolucionController.java https://github.com/FAP-Team/Fap-Module.git | Java | 843 lines
                    
52import controllers.gen.EditarResolucionControllerGen;
                    
53import emails.Mails;
                    
54import enumerado.fap.gen.EstadoResolucionEnum;
                    
204			if (!Messages.hasErrors()) {
                    
205				EditarResolucionController.prepararResolucionValidateRules();
                    
206			}
                    
256		if (!Messages.hasErrors()) {
                    
257			EditarResolucionController.frmCrearResolucionValidateRules();
                    
258		}
                    
336				resolucionFAP.solicitudFirmaPortafirma.idSolicitante = agenteActual.usuarioldap;
                    
337				EditarResolucionController.formSelectJefeServicioValidateCopy("editar", dbResolucionFAP, resolucionFAP);
                    
338				
                    
358		if (!Messages.hasErrors()) {
                    
359			EditarResolucionController.formSelectJefeServicioValidateRules(dbResolucionFAP, resolucionFAP);
                    
360			try {
                    
                
Contact.java https://github.com/greg-pe/android_packages_apps_Mms.git | Java | 804 lines
                    
56            }
                    
57            invalidateCache();
                    
58        }
                    
280        // care about(which probably won't happen for a long time), we probably should just
                    
281        // invalidate cache peoridically, or surgically.
                    
282        /*
                    
322
                    
323        // query params for contact lookup by email
                    
324        private static final Uri EMAIL_WITH_PRESENCE_URI = Data.CONTENT_URI;
                    
325
                    
326        private static final String EMAIL_SELECTION = "UPPER(" + Email.DATA + ")=UPPER(?) AND "
                    
327                + Data.MIMETYPE + "='" + Email.CONTENT_ITEM_TYPE + "'";
                    
337        private static final int EMAIL_ID_COLUMN = 2;
                    
338        private static final int EMAIL_CONTACT_NAME_COLUMN = 3;
                    
339
                    
                
ContactResourceV2.java https://github.com/wyona/yanel.git | Java | 515 lines
                    
219        if(request.getParameter("email") != null) {
                    
220            setParameter("email", email);
                    
221        }
                    
283
                    
284        if(!validateEmail(email)) {
                    
285            log.debug(
                    
285            log.debug(
                    
286                "Doesn't seem to be a valid email: " + email + " (according " +
                    
287                "to the following regular expression: " + getEmailRegEx() + ")");
                    
354     */
                    
355    private boolean validateEmail(String email) throws Exception {
                    
356        Pattern pattern = Pattern.compile(getEmailRegEx());
                    
375    /**
                    
376     * Get email body. Please overwrite this method in order to customize email body.
                    
377     * @param contact Contact information
                    
                
AdministrativeInfoPanel.java https://github.com/diegocarrera/isabel.git | Java | 597 lines
                    
61     * En este caso comprueba que los caracteres de los nombres son letras,
                    
62     * numeros o espacio, punto, guion, o subrayado y que los emails son formalmente
                    
63     * validos.
                    
65     */
                    
66    public boolean validateData() {
                    
67        // Compruebo los direferentes campos. O bien estan vacios o bien cumplen la
                    
86        
                    
87        if ((!getAdmin1Mail().equals("")) && (!getAdmin1Mail().matches(EMAIL_REGEX))) {
                    
88            JOptionPane.showMessageDialog(this, "Inavlid Administrative Contact 1 e-mail",
                    
92        
                    
93        if ((!getAdmin2Mail().equals("")) && (!getAdmin2Mail().matches(EMAIL_REGEX))) {
                    
94            JOptionPane.showMessageDialog(this, "Inavlid Administrative Contact 2 e-mail",
                    
110        
                    
111        if ((!getTech1Mail().equals("")) && (!getTech1Mail().matches(EMAIL_REGEX))) {
                    
112            JOptionPane.showMessageDialog(this, "Inavlid Technical Contact 1 e-mail",
                    
                
Constants.java https://github.com/diegocarrera/isabel.git | Java | 545 lines
                    
89     */
                    
90    public static final String VALIDATE_XEDL = "validate_xedl.cfg";    
                    
91    
                    
95     */
                    
96    public static final String VALIDATE_KEY = "validate_xedl";    
                    
97      
                    
101     */    
                    
102    public static final String EMAIL_CONFIG = "email.cfg";    
                    
103
                    
                
Validator.java https://github.com/spreddy/liferay-portal.git | Java | 988 lines
                    
188	/**
                    
189	 * Returns <code>true</code> if the string is an email address. The only
                    
190	 * requirements are that the string consist of two parts separated by an @
                    
193	 * @param  address the string to check
                    
194	 * @return <code>true</code> if the string is an email address;
                    
195	 *         <code>false</code> otherwise
                    
403	/**
                    
404	 * Returns <code>true</code> if the string is a valid email address.
                    
405	 *
                    
405	 *
                    
406	 * @param  emailAddress the string to check
                    
407	 * @return <code>true</code> if the string is a valid email address;
                    
409	 */
                    
410	public static boolean isEmailAddress(String emailAddress) {
                    
411		Matcher matcher = _emailAddressPattern.matcher(emailAddress);
                    
                
WikiUtil.java https://github.com/spreddy/liferay-portal.git | Java | 576 lines
                    
107
                    
108	public static String getEmailFromAddress(
                    
109			PortletPreferences preferences, long companyId)
                    
111
                    
112		return PortalUtil.getEmailFromAddress(
                    
113			preferences, companyId, PropsKeys.WIKI_EMAIL_FROM_ADDRESS);
                    
115
                    
116	public static String getEmailFromName(
                    
117			PortletPreferences preferences, long companyId)
                    
119
                    
120		return PortalUtil.getEmailFromName(
                    
121			preferences, companyId, PropsKeys.WIKI_EMAIL_FROM_NAME);
                    
123
                    
124	public static String getEmailPageAddedBody(PortletPreferences preferences) {
                    
125		String emailPageAddedBody = preferences.getValue(
                    
                
 

Source

Language