Advertisement
Guest User

Untitled

a guest
May 27th, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.63 KB | None | 0 0
  1. package com.nordnet.backoffice.test.mock;
  2.  
  3. import java.util.Map;
  4.  
  5. import nordnet.architecture.exceptions.explicit.DataSourceException;
  6. import nordnet.architecture.exceptions.explicit.NotFoundException;
  7. import nordnet.architecture.exceptions.explicit.NotRespectedRulesException;
  8.  
  9. import org.apache.commons.logging.LogFactory;
  10.  
  11. import com.nordnet.backoffice.helpers.ejb.MailManagementEJBHelper;
  12. import com.nordnet.backoffice.mails.ejb.types.vo.UserInfos;
  13.  
  14. /**
  15. * Mail Management EJB Helper.
  16. *
  17. * @author sdospinescu
  18. *
  19. */
  20. public class MailManagementEJBHelperMock extends MailManagementEJBHelper {
  21.  
  22. /**
  23. * Default logger.
  24. */
  25. private static final org.apache.commons.logging.Log LOGGER = LogFactory.getLog(MailManagementEJBHelper.class);
  26.  
  27. /**
  28. * Send an email using mail management EJB.
  29. *
  30. * @param templateName
  31. * the name of the template to use.
  32. * @param to
  33. * the recipient of the email.
  34. * @param values
  35. * the map containing values to integrate on the mail to send.
  36. * @param userInfos
  37. * the user infos.
  38. * @throws DataSourceException
  39. * thrown if an exception occured when trying to send the email.
  40. * @throws NotRespectedRulesException
  41. * thrown if entering data are invalid.
  42. * @throws NotFoundException
  43. * thrown if no template with the <code>templateName</code> name is found.
  44. */
  45. @Override
  46. public void sendEmail(String templateName, String to, Map<String, String> values, UserInfos userInfos)
  47. throws DataSourceException, NotFoundException, NotRespectedRulesException {
  48. LOGGER.info("MOCK");
  49. }
  50.  
  51. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement