Interface I_CmsFavoriteContext

    • Method Detail

      • changeProject

        void changeProject​(CmsUUID id)
        Change the project to one with the given id.
        Parameters:
        id - the project id
      • setDialog

        void setDialog​(com.vaadin.ui.Component component)
        Sets the dialog instance.

        This must be called by the favorite dialog when it is loaded.

        Parameters:
        component - the favorite dialog
      • close

        void close()
        Closes the favorite dialog.
      • getFavoriteForCurrentLocation

        java.util.Optional<CmsFavoriteEntrygetFavoriteForCurrentLocation()
        Gets the favorite entry for the current location, as an Optional. If the result is empty, the current location can not be used as a favorite.
        Returns:
        an optional favorite entry
      • openFavorite

        void openFavorite​(CmsFavoriteEntry entry)
        Opens the favorite location.
        Parameters:
        entry - the favorite entry whose location should be opened