public class SubscriptionProductJspBean extends AbstractJspBean
| Modifier and Type | Field and Description |
|---|---|
static org.apache.log4j.Logger |
LOGGER |
static String |
PARAMETER_PRODUCT_ID |
_nItemsPerPage, ERROR_MESSAGE_KEY, ERROR_TEMPLATE, FIELD_MESSAGE_PREFIX, MARK_ASC_SORT, MARK_DATA_TABLE_MANAGER, MARK_FILTER, MARK_MESSAGE_LIST, MARK_NB_ITEMS_PER_PAGE, MARK_PAGINATOR, MARK_PLUGIN_NAME, N_DEFAULT_ITEMS_PER_PAGE, PARAMETER_FIND_BY_FILTER_NAME_METHOD, PARAMETER_TRUE, PROPERTY_DEFAULT_PAGINATION| Constructor and Description |
|---|
SubscriptionProductJspBean()
Instantiates a new offer jsp bean.
|
| Modifier and Type | Method and Description |
|---|---|
String |
doSubscribeToProduct(javax.servlet.http.HttpServletRequest request,
fr.paris.lutece.portal.service.security.LuteceUser currentUser)
Create the subscription for the user
|
String |
doUnsubscribeToProduct(javax.servlet.http.HttpServletRequest request,
fr.paris.lutece.portal.service.security.LuteceUser currentUser)
Create the subscription for the user
|
List<fr.paris.lutece.plugins.stock.business.product.Product> |
getProductsSubscribedByUser(fr.paris.lutece.portal.service.security.LuteceUser currentUser)
Get all subscription to products for an user
|
String |
getSubscriptionToProduct(javax.servlet.http.HttpServletRequest request,
fr.paris.lutece.portal.service.security.LuteceUser currentUser)
Get all subscription to products for an user
|
boolean |
isSubscribeToProduct(javax.servlet.http.HttpServletRequest request,
fr.paris.lutece.portal.service.security.LuteceUser currentUser)
Say if an user is subscribe to a product
|
getAbstractDataTableManager, getAbstractDataTableManager, getDataTableToUse, getErrorOnce, getFilterToUse, getHtmlError, getMessage, getMessage, loadDataTableFromSession, manageFunctionnalException, saveDataTableInSession, validateBilletteriegetPlugin, initgetAdminDashboardsUrl, getAdminPage, getFeatureIcon, getHomeUrl, getLocale, getPageTitle, getUser, isUserHigherThanConnectedUser, populate, populate, setFeatureGroup, setFeatureIcon, setPageTitleProperty, validate, validate, validatepublic static final org.apache.log4j.Logger LOGGER
public static final String PARAMETER_PRODUCT_ID
public SubscriptionProductJspBean()
public String doSubscribeToProduct(javax.servlet.http.HttpServletRequest request, fr.paris.lutece.portal.service.security.LuteceUser currentUser)
request - the HTTP requestcurrentUser - the user who subscribepublic String doUnsubscribeToProduct(javax.servlet.http.HttpServletRequest request, fr.paris.lutece.portal.service.security.LuteceUser currentUser)
request - the HTTP requestcurrentUser - the user who subscribepublic boolean isSubscribeToProduct(javax.servlet.http.HttpServletRequest request,
fr.paris.lutece.portal.service.security.LuteceUser currentUser)
request - the HTTP requestcurrentUser - the userpublic String getSubscriptionToProduct(javax.servlet.http.HttpServletRequest request, fr.paris.lutece.portal.service.security.LuteceUser currentUser)
request - the HTTP requestcurrentUser - the userpublic List<fr.paris.lutece.plugins.stock.business.product.Product> getProductsSubscribedByUser(fr.paris.lutece.portal.service.security.LuteceUser currentUser)
request - the HTTP requestcurrentUser - the userCopyright © 2020 City of Paris. All rights reserved.