public class FavoriteJspBean extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
URL_JSP_DO_FAVORITE |
| Constructor and Description |
|---|
FavoriteJspBean() |
| Modifier and Type | Method and Description |
|---|---|
void |
doCancelFavorite(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Cancel the favorite value This method is called in FO by the favoriteing JSP :
jsp/site/plugins/extend/modules/favorite/DoCancelFavorite.Jsp
|
void |
doFavorite(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Update the favorite value an count.
|
static String |
getSessionKeyUrlRedirect(String strIdResource,
String strResourceType)
Get the session key of the URL to redirect the user to after he has favorited for the resource
|
public static final String URL_JSP_DO_FAVORITE
public void doFavorite(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws IOException,
fr.paris.lutece.portal.service.message.SiteMessageException,
fr.paris.lutece.portal.service.security.UserNotSignedException
request - The HTTP requestresponse - The HTTP responseIOException - the io exceptionfr.paris.lutece.portal.service.message.SiteMessageException - the site message exceptionfr.paris.lutece.portal.service.security.UserNotSignedException - If the user has not signed inpublic void doCancelFavorite(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws IOException,
fr.paris.lutece.portal.service.message.SiteMessageException
request - The HTTP requestresponse - The HTTP responseIOException - the io exceptionfr.paris.lutece.portal.service.message.SiteMessageException - the site message exceptionpublic static String getSessionKeyUrlRedirect(String strIdResource, String strResourceType)
strIdResource - The id of the resourcestrResourceType - The type of the resourceCopyright © 2021 City of Paris. All rights reserved.