Details
-
New Feature
-
Resolution: Unresolved
-
Minor
-
None
-
None
-
None
-
Medium
-
Description
Add an API for performing sanity checks and presenting potential problems to administrator users.
The dialog box (see the mockup figure) will appear immediately when a user with admin rights loggs in and if there is anything to report that have not explicitly been ignored or if a new item appears when the admin user is logged in.
The API could look something like this:
public abstract class AdminAlertItem { /** Message key for localized description. */ private final String descriptionKey; /** Message key for localized recommended action. */ private final String recommendedAction; /** Categorization of this alert item. */ private final String category; /** Whether the validation should be run regularily or only at application startup. */ private boolean runRegularily; public abstract void checkAlertCondition(); // Constructor, getters etc. }
And then we add a component 'AdminAlertService' where such items can be registered.