Class DashboardNoticeService

java.lang.Object
sk.iway.iwcm.components.welcome.DashboardNoticeService

@Service public class DashboardNoticeService extends Object
Builds lightweight system notices for the dashboard template.
  • Constructor Details

  • Method Details

    • load

      public List<Map<String,Object>> load(Identity user, jakarta.servlet.http.HttpServletRequest request)
      Builds applicable system notices with trusted localized HTML and fixed application actions. If an update error log exists, copies it to the protected download location used by its notice.
      Parameters:
      user - administrator whose permissions and two-factor authentication setup are checked
      request - request supplying the locale and optional Java version override for the tester account
      Returns:
      notices containing an ID, severity, icon, title, HTML body and optional action
      Throws:
      org.springframework.security.access.AccessDeniedException - if the user is missing or is not an administrator