Class AbstractNotificationsSettingsPage

  • Direct Known Subclasses:
    NotificationsAdministrationPage, NotificationsUserProfilePage

    public abstract class AbstractNotificationsSettingsPage
    extends ViewPage
    Represents a page for notification settings. This kind of page can be seen in user profile or in global administration.
    Since:
    13.2RC1
    Version:
    $Id: 4420f17225ebb52f9767c26788bd391f012301b2 $
    • Field Detail

      • notificationSystemFilterPreferencesLivetable

        protected org.openqa.selenium.WebElement notificationSystemFilterPreferencesLivetable
      • notificationCustomFilterPreferencesLivetable

        protected org.openqa.selenium.WebElement notificationCustomFilterPreferencesLivetable
    • Constructor Detail

      • AbstractNotificationsSettingsPage

        public AbstractNotificationsSettingsPage()
    • Method Detail

      • waitUntilPreferencesAreLoaded

        protected void waitUntilPreferencesAreLoaded()
        Ensure to wait until the preferences switches are loaded.
      • initializeApplications

        protected void initializeApplications()
        Initialize the page with applications informations.
      • getApplicationPreferences

        public Map<String,​ApplicationPreferences> getApplicationPreferences()
        Returns:
        a map of the preferences for each application
        Since:
        9.7RC1
      • getApplication

        public ApplicationPreferences getApplication​(String applicationId)
                                              throws Exception
        Parameters:
        applicationId - id of the application
        Returns:
        the preferences for the given application
        Throws:
        Exception - if the application cannot be found
        Since:
        9.7RC1
      • getEventType

        public EventTypePreferences getEventType​(String applicationId,
                                                 String eventType)
                                          throws Exception
        Parameters:
        applicationId - id of the application
        eventType - name of the event type
        Returns:
        the preferences for the given event type of the given application
        Throws:
        Exception - if the event type cannot be found
        Since:
        9.7RC1
      • getApplicationState

        public BootstrapSwitch.State getApplicationState​(String applicationId,
                                                         String format)
                                                  throws Exception
        Parameters:
        applicationId - id of the application
        format - the format of the notification
        Returns:
        the state of the switch related to given application and format
        Throws:
        Exception - if the application cannot be found
        Since:
        9.7RC1
      • getEventTypeState

        public BootstrapSwitch.State getEventTypeState​(String applicationId,
                                                       String eventType,
                                                       String format)
                                                throws Exception
        Parameters:
        applicationId - id of the application
        eventType - name of the event type
        format - the format of the notification
        Returns:
        the state of the switch related to given event type and format
        Throws:
        Exception - if the event type cannot be found
        Since:
        9.7RC1
      • setApplicationState

        public void setApplicationState​(String applicationId,
                                        String format,
                                        BootstrapSwitch.State state)
                                 throws Exception
        Set the state of the given application for the given format.
        Parameters:
        applicationId - id of the application
        format - the format of the notification
        state - the state to set
        Throws:
        Exception - if the application is not found
        Since:
        9.7RC1
      • setEventTypeState

        public void setEventTypeState​(String applicationId,
                                      String eventType,
                                      String format,
                                      BootstrapSwitch.State state)
                               throws Exception
        Set the state of the event type for the given format.
        Parameters:
        applicationId - id of the application
        eventType - name of the event type
        format - the format of the notification
        state - the state to set
        Throws:
        Exception - if the event type cannot be found
        Since:
        9.7RC1
      • disableAllParameters

        public void disableAllParameters()
        Disable every notification parameters.
      • getSystemNotificationFilterPreferences

        public List<SystemNotificationFilterPreference> getSystemNotificationFilterPreferences()
        Returns:
        the system notification filter preferences.
        Since:
        13.2RC1
      • getCustomNotificationFilterPreferences

        public List<CustomNotificationFilterPreference> getCustomNotificationFilterPreferences()
        Returns:
        the custom notification filter preferences
        Since:
        13.2RC1
      • clickAddCustomFilter

        public CustomNotificationFilterModal clickAddCustomFilter()
        Open the modal to add a new custom filter.
        Returns:
        the modal to manipulate.
        Since:
        13.3RC1