public class QuickFavoritesUtil extends Object
| Constructor and Description |
|---|
QuickFavoritesUtil() |
| Modifier and Type | Method and Description |
|---|---|
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) |
public static Boolean determineIfFavoriteResource(javax.servlet.http.HttpServletRequest request)
request - true if the resource in the request is a user's favoritepublic static Boolean determineIfFavoriteResource(int resourceId)
public static Boolean determineIfFavoriteGroup(javax.servlet.http.HttpServletRequest request, int groupId)
Copyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.