Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-7662

Admin alert dialog box

    XMLWordPrintable

Details

    • New Feature
    • Resolution: Unresolved
    • Minor
    • None
    • None
    • Administration
    • 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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            aj Andreas Jonsson
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: