Class LookWebDelegate
- java.lang.Object
-
- org.silverpeas.core.webapi.look.delegate.LookWebDelegate
-
public class LookWebDelegate extends Object
- Author:
- Yohann Chastagnier
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addToUserFavorites(SpaceInstLight space)
Adds a space to user favoritesString
getCSS(SpaceInstLight space)
Gets the right URL CSSLookHelper
getHelper()
Gets the look helperstatic LookWebDelegate
getInstance(User user, UserPreferences userPreference, javax.servlet.http.HttpServletRequest request)
Easy way to instance the look service providerString
getLook(SpaceInstLight space)
Gets the right look.String
getUserFavorite(SpaceInstLight space, boolean forceGettingFavorite)
Gets the favorite value for the given spaceString
getWallpaper(SpaceInstLight space)
Gets the right URL wallpapervoid
removeFromUserFavorites(SpaceInstLight space)
Removess a space from user favorites
-
-
-
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:
-
getCSS
public String getCSS(SpaceInstLight space)
Gets the right URL CSS- 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:
-
-