Package sk.iway.iwcm.components.welcome
Class DashboardNoticeService
java.lang.Object
sk.iway.iwcm.components.welcome.DashboardNoticeService
Builds lightweight system notices for the dashboard template.
-
Constructor Summary
ConstructorsConstructorDescriptionDashboardNoticeService(UserDetailsRepository userDetailsRepository, AdminDeviceService adminDeviceService) -
Method Summary
-
Constructor Details
-
DashboardNoticeService
public DashboardNoticeService(UserDetailsRepository userDetailsRepository, AdminDeviceService adminDeviceService)
-
-
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 checkedrequest- 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
-