Class FlashEntryEditPage


  • public class FlashEntryEditPage
    extends FlashPage
    Represents a Flash Messages entry page being edited.
    Since:
    1.1.2
    Version:
    $Id$
    • Field Detail

      • groupsElement

        protected org.openqa.selenium.WebElement groupsElement
      • wikiScopeElement

        protected org.openqa.selenium.WebElement wikiScopeElement
      • messageElement

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

      • FlashEntryEditPage

        public FlashEntryEditPage()
    • Method Detail

      • gotoPage

        public static FlashEntryEditPage gotoPage​(String page)
        Go to page
        Parameters:
        page - the page name of the flash entry page
        Returns:
        the edit page of the requested entry
      • gotoPage

        public static FlashEntryEditPage gotoPage​(String page,
                                                  String language)
        Go to page
        Parameters:
        page - the page name of the flash entry page
        language - the language in which to display the page
        Returns:
        the edit page of the requested entry
      • setDateBegin

        public void setDateBegin​(Calendar dateBegin)
        Set start date
        Parameters:
        dateBegin - the date value to set
      • setDateEnd

        public void setDateEnd​(Calendar dateEnd)
        Set end date
        Parameters:
        dateEnd - the date value to set
      • setRepeat

        public void setRepeat​(Boolean repeat)
        Set repeat
        Parameters:
        repeat - the flag for message occurrence repetition
      • getRepeatIntervalLabel

        public String getRepeatIntervalLabel()
        Get the "Repeat interval" label
        Returns:
        the repeat interval label text
      • getRepeatInterval

        public List<String> getRepeatInterval()
        Get the list of options for the repeatInterval
        Returns:
        list of values for the repeat interval (daily/weekly/monthly/yearly)
      • setRepeatInterval

        public void setRepeatInterval​(String interval)
        Set repeat interval
        Parameters:
        interval - time-frame of the recurring event (daily/weekly/monthly/yearly)
      • getRepeatFrequencyLabel

        public String getRepeatFrequencyLabel()
        Get the "Repeat frequency" label
        Returns:
        the repeat frequency label text
      • setRepeatFrequency

        public void setRepeatFrequency​(int frequency)
        Set the frequency of the event
        Parameters:
        frequency - the frequency of the recurring event (1-30)
      • getRepeatDaysLabel

        public String getRepeatDaysLabel()
        Get the "Repeat days" label
        Returns:
        the repeat days label text
      • getRepeatDays

        public List<String> getRepeatDays()
        Get the translated days of the week
        Returns:
        list of the days of the week in the current language
      • setRepeatDays

        public void setRepeatDays​(List<String> days)
        Set the days in which the event will take place
        Parameters:
        days - list of days in which the entry is displayed
      • getRepeatSummaryLabel

        public String getRepeatSummaryLabel()
        Get the "Repeat summary" label
        Returns:
        the repeat summary label text
      • setGroups

        public void setGroups​(List<String> groups)
        Set the groups the groups towards the message is aimed to
        Parameters:
        groups - the list of XWiki groups for which the entry is displayed
      • setWikiScope

        public void setWikiScope​(String wikiScope)
        Set the wiki scope the message should be displayed in.
        Parameters:
        wikiScope - "currentWiki" or "allWikis"
      • setMessage

        public void setMessage​(String message)
        Set the message to type in the Flash Message entry
        Parameters:
        message - the entry's display message
      • clickSaveAndView

        public FlashEntryViewPage clickSaveAndView()
        Click the Save & View button
        Returns:
        the resulting view page
      • clickCancel

        public FlashEntryViewPage clickCancel()
        Click the Cancel button
        Returns:
        the resulting view page