You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

INotificationManager.java 1.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. /*
  2. * Copyright 2013 gitblit.com.
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. package com.gitblit.manager;
  17. import java.util.Collection;
  18. public interface INotificationManager {
  19. /**
  20. * Notify the administrators by email.
  21. *
  22. * @param subject
  23. * @param message
  24. */
  25. void sendMailToAdministrators(String subject, String message);
  26. /**
  27. * Notify users by email of something.
  28. *
  29. * @param subject
  30. * @param message
  31. * @param toAddresses
  32. */
  33. void sendMail(String subject, String message, Collection<String> toAddresses);
  34. /**
  35. * Notify users by email of something.
  36. *
  37. * @param subject
  38. * @param message
  39. * @param toAddresses
  40. */
  41. void sendMail(String subject, String message, String... toAddresses);
  42. /**
  43. * Notify users by email of something.
  44. *
  45. * @param subject
  46. * @param message
  47. * @param toAddresses
  48. */
  49. void sendHtmlMail(String subject, String message, Collection<String> toAddresses);
  50. /**
  51. * Notify users by email of something.
  52. *
  53. * @param subject
  54. * @param message
  55. * @param toAddresses
  56. */
  57. void sendHtmlMail(String subject, String message, String... toAddresses);
  58. }