org.rhq.enterprise.gui.legacy.action.resource.common
Class QuickFavoritesUtil
java.lang.Object
org.rhq.enterprise.gui.legacy.action.resource.common.QuickFavoritesUtil
public class QuickFavoritesUtil
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
QuickFavoritesUtil
public QuickFavoritesUtil()
determineIfFavoriteResource
public static Boolean determineIfFavoriteResource(javax.servlet.http.HttpServletRequest request)
- This not only returns the flag to indicate if the resource found in the request is a favorite, but it also adds
an attribute "isFavorite" to the request so others can know the status later on down the request chain.
- Parameters:
request -
- Returns:
true if the resource in the request is a user's favorite
determineIfFavoriteResource
public static Boolean determineIfFavoriteResource(int resourceId)
determineIfFavoriteGroup
public static Boolean determineIfFavoriteGroup(javax.servlet.http.HttpServletRequest request,
int groupId)
isFavorite
public static Boolean isFavorite(WebUser user,
int id)
isFavoriteGroup
public static Boolean isFavoriteGroup(WebUser user,
int groupId)
Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.