List of usage examples for com.liferay.portal.kernel.exception EmailAddressException EmailAddressException
public EmailAddressException()
From source file:com.liferay.flags.service.impl.FlagsEntryServiceImpl.java
License:Open Source License
@Override public void addEntry(String className, long classPK, String reporterEmailAddress, long reportedUserId, String contentTitle, String contentURL, String reason, ServiceContext serviceContext) throws PortalException { if (!Validator.isEmailAddress(reporterEmailAddress)) { throw new EmailAddressException(); }//from w w w .j a v a2s . c om FlagsRequest flagsRequest = new FlagsRequest(className, classPK, reporterEmailAddress, reportedUserId, contentTitle, contentURL, reason, serviceContext); MessageBusUtil.sendMessage(DestinationNames.FLAGS, flagsRequest); }