Class LookWebDelegate


  • public class LookWebDelegate
    extends Object
    Author:
    Yohann Chastagnier
    • Method Detail

      • getUserFavorite

        public String getUserFavorite​(SpaceInstLight space,
                                      boolean forceGettingFavorite)
        Gets the favorite value for the given space
        Parameters:
        space -
        forceGettingFavorite - forcing the user favorite space search even if the favorite feature is disabled
        Returns:
      • addToUserFavorites

        public void addToUserFavorites​(SpaceInstLight space)
        Adds a space to user favorites
        Parameters:
        space -
      • removeFromUserFavorites

        public void removeFromUserFavorites​(SpaceInstLight space)
        Removess a space from user favorites
        Parameters:
        space -
      • getLook

        public String getLook​(SpaceInstLight space)
        Gets the right look.
        Parameters:
        space -
        Returns:
        the space style according to the space hierarchy
      • getWallpaper

        public String getWallpaper​(SpaceInstLight space)
        Gets the right URL wallpaper
        Returns:
      • getInstance

        public static LookWebDelegate getInstance​(User user,
                                                  UserPreferences userPreference,
                                                  javax.servlet.http.HttpServletRequest request)
        Easy way to instance the look service provider
        Parameters:
        user -
        userPreference -
        request -
        Returns:
      • getHelper

        public LookHelper getHelper()
        Gets the look helper
        Returns: