/webportal/src/main/java/au/org/emii/portal/motd/MOTD.java

http://alageospatialportal.googlecode.com/ · Java · 38 lines · 6 code · 6 blank · 26 comment · 0 complexity · 93d976fcfcdc0b6a8f1b78218c8754ec MD5 · raw file

  1. /*
  2. * To change this template, choose Tools | Templates
  3. * and open the template in the editor.
  4. */
  5. package au.org.emii.portal.motd;
  6. /**
  7. *
  8. * @author geoff
  9. */
  10. public interface MOTD {
  11. /**
  12. * Return a value from the motd language pack
  13. *
  14. * @param key
  15. * @return
  16. */
  17. String getMotd(String key);
  18. /**
  19. * Check if the motd has been enabled
  20. *
  21. * @return
  22. */
  23. boolean isMotdEnabled();
  24. /**
  25. * Save the passed in parameters to the MOTD file
  26. * @param enabled whether this message is enabled or not
  27. * @param title title to display for motd
  28. * @param message message to display for motd
  29. * @return true if save was successful otherwise false
  30. */
  31. boolean updateMotd(boolean enabled, String title, String message, String portalUsername);
  32. }