org.rhq.enterprise.gui.legacy.action.resource.common
Class QuickFavoritesUtil

java.lang.Object
  extended by org.rhq.enterprise.gui.legacy.action.resource.common.QuickFavoritesUtil

public class QuickFavoritesUtil
extends Object


Constructor Summary
QuickFavoritesUtil()
           
 
Method Summary
static Boolean determineIfFavoriteGroup(javax.servlet.http.HttpServletRequest request, int groupId)
           
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.
static Boolean determineIfFavoriteResource(int resourceId)
           
static Boolean isFavorite(WebUser user, int id)
           
static Boolean isFavoriteGroup(WebUser user, int groupId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QuickFavoritesUtil

public QuickFavoritesUtil()
Method Detail

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.