fr.paris.lutece.plugins.stock.modules.billetterie.web
Class SubscriptionProductJspBean

java.lang.Object
  extended by fr.paris.lutece.portal.web.admin.AdminFeaturesPageJspBean
      extended by fr.paris.lutece.portal.web.admin.PluginAdminPageJspBean
          extended by fr.paris.lutece.plugins.stock.modules.billetterie.web.AbstractJspBean
              extended by fr.paris.lutece.plugins.stock.modules.billetterie.web.SubscriptionProductJspBean
All Implemented Interfaces:
Serializable

public class SubscriptionProductJspBean
extends AbstractJspBean

This class provides the user interface to manage form features ( manage, create, modify, remove)

Author:
jchaline
See Also:
Serialized Form

Field Summary
static org.apache.log4j.Logger LOGGER
           
static String PARAMETER_PRODUCT_ID
           
 
Fields inherited from class fr.paris.lutece.plugins.stock.modules.billetterie.web.AbstractJspBean
_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
 
Constructor Summary
SubscriptionProductJspBean()
          Instantiates a new offer jsp bean.
 
Method Summary
 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
 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
 
Methods inherited from class fr.paris.lutece.plugins.stock.modules.billetterie.web.AbstractJspBean
getAbstractDataTableManager, getDataTableToUse, getErrorOnce, getFilterToUse, getHtmlError, getMessage, getMessage, loadDataTableFromSession, manageFunctionnalException, saveDataTableInSession, validateBilletterie
 
Methods inherited from class fr.paris.lutece.portal.web.admin.PluginAdminPageJspBean
getPlugin, init
 
Methods inherited from class fr.paris.lutece.portal.web.admin.AdminFeaturesPageJspBean
getAdminPage, getFeatureIcon, getHomeUrl, getLocale, getPageTitle, getUser, populate, setFeatureIcon, setPageTitleProperty, validate, validate, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOGGER

public static final org.apache.log4j.Logger LOGGER

PARAMETER_PRODUCT_ID

public static final String PARAMETER_PRODUCT_ID
See Also:
Constant Field Values
Constructor Detail

SubscriptionProductJspBean

public SubscriptionProductJspBean()
Instantiates a new offer jsp bean.

Method Detail

doSubscribeToProduct

public String doSubscribeToProduct(javax.servlet.http.HttpServletRequest request,
                                   fr.paris.lutece.portal.service.security.LuteceUser currentUser)
Create the subscription for the user

Parameters:
request - the HTTP request
currentUser - the user who subscribe
Returns:
an error if occur, null otherwise

doUnsubscribeToProduct

public String doUnsubscribeToProduct(javax.servlet.http.HttpServletRequest request,
                                     fr.paris.lutece.portal.service.security.LuteceUser currentUser)
Create the subscription for the user

Parameters:
request - the HTTP request
currentUser - the user who subscribe
Returns:
an error if occur, null otherwise

isSubscribeToProduct

public boolean isSubscribeToProduct(javax.servlet.http.HttpServletRequest request,
                                    fr.paris.lutece.portal.service.security.LuteceUser currentUser)
Say if an user is subscribe to a product

Parameters:
request - the HTTP request
currentUser - the user
Returns:
true if the user subscribe to the product

getSubscriptionToProduct

public String getSubscriptionToProduct(javax.servlet.http.HttpServletRequest request,
                                       fr.paris.lutece.portal.service.security.LuteceUser currentUser)
Get all subscription to products for an user

Parameters:
request - the HTTP request
currentUser - the user
Returns:
a page


Copyright © 2014 Mairie de Paris. All Rights Reserved.