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

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.OfferJspBean
All Implemented Interfaces:
Serializable

public class OfferJspBean
extends AbstractJspBean

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

See Also:
Serialized Form

Field Summary
static org.apache.log4j.Logger LOGGER
           
static String MACRO_COLUMN_ACTIONS_OFFER
           
static String MACRO_COLUMN_CHECKBOX_DELETE_OFFER
           
static String MACRO_COLUMN_DATES_OFFER
           
static String MACRO_COLUMN_NAME_OFFER
           
static String MACRO_COLUMN_PRODUCT_OFFER
           
static String MACRO_COLUMN_STATUT_OFFER
           
static String MARK_BASE_URL
           
static String MARK_CONTACT_LIST
           
static String MARK_CURRENT_DATE
           
static String MARK_DATA_TABLE_OFFER
          The constants for DataTableManager
static String MARK_ERRORS
           
static String MARK_FILTER_OFFER
           
static String MARK_LOCALE
           
static String MARK_OFFER
           
static String MARK_OFFER_STATUT_CANCEL
           
static String MARK_OFFER_STATUT_LOCK
           
static String MARK_PRODUCT
           
static String MARK_PURCHASE
           
static String MARK_TITLE
           
static String MARK_USER_NAME
           
static String PARAMETER_BUTTON_DELETE
           
static String PARAMETER_FILTER
           
static String PARAMETER_FILTER_DATE_BEGIN
           
static String PARAMETER_FILTER_DATE_END
           
static String PARAMETER_FILTER_ID
           
static String PARAMETER_FILTER_NAME
           
static String PARAMETER_FILTER_OFFER_TYPE
           
static String PARAMETER_FILTER_PARTNER_NAME
           
static String PARAMETER_FILTER_PARTNER_NICKNAME
           
static String PARAMETER_OFFER_DUPLICATE
           
static String PARAMETER_OFFER_GENRE_LIST
           
static String PARAMETER_OFFER_GENRE_LIST_DEFAULT
           
static String PARAMETER_OFFER_ID
           
static String PARAMETER_OFFER_ID_PRODUCT
           
static String PARAMETER_OFFER_PRODUCT_ID
           
static String PARAMETER_OFFERS_ID
           
static String PARAMETER_ORDER_ASC
           
static String PARAMETER_ORDER_BY_ID
           
static String PARAMETER_ORDER_BY_LABEL
           
static String PARAMETER_ORDER_BY_PLACE
           
static String PARAMETER_ORDER_BY_TYPE
           
static String PARAMETER_ORDER_DESC
           
static String PARAMETER_PRODUCT_ID
           
static String PARAMETER_REFRESH_CONTACT
           
static String RESOURCE_TYPE
           
static String RIGHT_MANAGE_OFFERS
           
 
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
OfferJspBean()
          Instantiates a new offer jsp bean.
 
Method Summary
protected  void buildFilter(fr.paris.lutece.plugins.stock.business.offer.OfferFilter filter, javax.servlet.http.HttpServletRequest request)
          Builds the filter.
 String doDeleteOffer(javax.servlet.http.HttpServletRequest request)
          Delete an offer
 void doExportPurchase(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 String doMasseDeleteOffer(javax.servlet.http.HttpServletRequest request)
          Delete offers on masse
 void doNotifyCreateOffer(javax.servlet.http.HttpServletRequest request, fr.paris.lutece.plugins.stock.modules.tickets.business.SeanceDTO offer)
          Send notification for user who subscribed to the product link with an offer.
 String doSaveOffer(javax.servlet.http.HttpServletRequest request)
          Save a offer
 String getDeleteOffer(javax.servlet.http.HttpServletRequest request)
          Returns the confirmation message to delete an offer
 String getManageOffers(javax.servlet.http.HttpServletRequest request)
          Get the manage offers page
 String getMasseDeleteOffer(javax.servlet.http.HttpServletRequest request)
          Returns the confirmation message to delete an offer
 String getSaveOffer(javax.servlet.http.HttpServletRequest request)
          Returns the form for offer creation and modification
 
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_OFFER_ID

public static final String PARAMETER_OFFER_ID
See Also:
Constant Field Values

PARAMETER_OFFERS_ID

public static final String PARAMETER_OFFERS_ID
See Also:
Constant Field Values

PARAMETER_OFFER_DUPLICATE

public static final String PARAMETER_OFFER_DUPLICATE
See Also:
Constant Field Values

PARAMETER_OFFER_PRODUCT_ID

public static final String PARAMETER_OFFER_PRODUCT_ID
See Also:
Constant Field Values

PARAMETER_OFFER_ID_PRODUCT

public static final String PARAMETER_OFFER_ID_PRODUCT
See Also:
Constant Field Values

PARAMETER_OFFER_GENRE_LIST

public static final String PARAMETER_OFFER_GENRE_LIST
See Also:
Constant Field Values

PARAMETER_OFFER_GENRE_LIST_DEFAULT

public static final String PARAMETER_OFFER_GENRE_LIST_DEFAULT
See Also:
Constant Field Values

PARAMETER_BUTTON_DELETE

public static final String PARAMETER_BUTTON_DELETE
See Also:
Constant Field Values

PARAMETER_FILTER_NAME

public static final String PARAMETER_FILTER_NAME
See Also:
Constant Field Values

PARAMETER_FILTER_ID

public static final String PARAMETER_FILTER_ID
See Also:
Constant Field Values

PARAMETER_FILTER_PARTNER_NAME

public static final String PARAMETER_FILTER_PARTNER_NAME
See Also:
Constant Field Values

PARAMETER_FILTER_PARTNER_NICKNAME

public static final String PARAMETER_FILTER_PARTNER_NICKNAME
See Also:
Constant Field Values

PARAMETER_FILTER_OFFER_TYPE

public static final String PARAMETER_FILTER_OFFER_TYPE
See Also:
Constant Field Values

PARAMETER_FILTER_DATE_BEGIN

public static final String PARAMETER_FILTER_DATE_BEGIN
See Also:
Constant Field Values

PARAMETER_FILTER_DATE_END

public static final String PARAMETER_FILTER_DATE_END
See Also:
Constant Field Values

PARAMETER_ORDER_BY_ID

public static final String PARAMETER_ORDER_BY_ID
See Also:
Constant Field Values

PARAMETER_ORDER_BY_LABEL

public static final String PARAMETER_ORDER_BY_LABEL
See Also:
Constant Field Values

PARAMETER_ORDER_BY_PLACE

public static final String PARAMETER_ORDER_BY_PLACE
See Also:
Constant Field Values

PARAMETER_ORDER_BY_TYPE

public static final String PARAMETER_ORDER_BY_TYPE
See Also:
Constant Field Values

PARAMETER_ORDER_ASC

public static final String PARAMETER_ORDER_ASC
See Also:
Constant Field Values

PARAMETER_ORDER_DESC

public static final String PARAMETER_ORDER_DESC
See Also:
Constant Field Values

PARAMETER_FILTER

public static final String PARAMETER_FILTER
See Also:
Constant Field Values

PARAMETER_PRODUCT_ID

public static final String PARAMETER_PRODUCT_ID
See Also:
Constant Field Values

PARAMETER_REFRESH_CONTACT

public static final String PARAMETER_REFRESH_CONTACT
See Also:
Constant Field Values

RIGHT_MANAGE_OFFERS

public static final String RIGHT_MANAGE_OFFERS
See Also:
Constant Field Values

RESOURCE_TYPE

public static final String RESOURCE_TYPE
See Also:
Constant Field Values

MARK_OFFER

public static final String MARK_OFFER
See Also:
Constant Field Values

MARK_PRODUCT

public static final String MARK_PRODUCT
See Also:
Constant Field Values

MARK_TITLE

public static final String MARK_TITLE
See Also:
Constant Field Values

MARK_LOCALE

public static final String MARK_LOCALE
See Also:
Constant Field Values

MARK_OFFER_STATUT_CANCEL

public static final String MARK_OFFER_STATUT_CANCEL
See Also:
Constant Field Values

MARK_OFFER_STATUT_LOCK

public static final String MARK_OFFER_STATUT_LOCK
See Also:
Constant Field Values

MARK_CURRENT_DATE

public static final String MARK_CURRENT_DATE
See Also:
Constant Field Values

MARK_ERRORS

public static final String MARK_ERRORS
See Also:
Constant Field Values

MARK_CONTACT_LIST

public static final String MARK_CONTACT_LIST
See Also:
Constant Field Values

MARK_PURCHASE

public static final String MARK_PURCHASE
See Also:
Constant Field Values

MARK_BASE_URL

public static final String MARK_BASE_URL
See Also:
Constant Field Values

MARK_USER_NAME

public static final String MARK_USER_NAME
See Also:
Constant Field Values

MARK_DATA_TABLE_OFFER

public static final String MARK_DATA_TABLE_OFFER
The constants for DataTableManager

See Also:
Constant Field Values

MARK_FILTER_OFFER

public static final String MARK_FILTER_OFFER
See Also:
Constant Field Values

MACRO_COLUMN_CHECKBOX_DELETE_OFFER

public static final String MACRO_COLUMN_CHECKBOX_DELETE_OFFER
See Also:
Constant Field Values

MACRO_COLUMN_PRODUCT_OFFER

public static final String MACRO_COLUMN_PRODUCT_OFFER
See Also:
Constant Field Values

MACRO_COLUMN_STATUT_OFFER

public static final String MACRO_COLUMN_STATUT_OFFER
See Also:
Constant Field Values

MACRO_COLUMN_ACTIONS_OFFER

public static final String MACRO_COLUMN_ACTIONS_OFFER
See Also:
Constant Field Values

MACRO_COLUMN_NAME_OFFER

public static final String MACRO_COLUMN_NAME_OFFER
See Also:
Constant Field Values

MACRO_COLUMN_DATES_OFFER

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

OfferJspBean

public OfferJspBean()
Instantiates a new offer jsp bean.

Method Detail

buildFilter

protected void buildFilter(fr.paris.lutece.plugins.stock.business.offer.OfferFilter filter,
                           javax.servlet.http.HttpServletRequest request)
Builds the filter.

Parameters:
filter - the filter
request - the request

getManageOffers

public String getManageOffers(javax.servlet.http.HttpServletRequest request)
Get the manage offers page

Parameters:
request - the request
Returns:
the page with offers list

getSaveOffer

public String getSaveOffer(javax.servlet.http.HttpServletRequest request)
Returns the form for offer creation and modification

Parameters:
request - The HTTP request
Returns:
HTML Form

doSaveOffer

public String doSaveOffer(javax.servlet.http.HttpServletRequest request)
Save a offer

Parameters:
request - The HTTP request
Returns:
redirection url

doNotifyCreateOffer

public void doNotifyCreateOffer(javax.servlet.http.HttpServletRequest request,
                                fr.paris.lutece.plugins.stock.modules.tickets.business.SeanceDTO offer)
Send notification for user who subscribed to the product link with an offer.

Parameters:
offer - the offer create
request - The Http request

getDeleteOffer

public String getDeleteOffer(javax.servlet.http.HttpServletRequest request)
Returns the confirmation message to delete an offer

Parameters:
request - The Http request
Returns:
the html code message

doDeleteOffer

public String doDeleteOffer(javax.servlet.http.HttpServletRequest request)
Delete an offer

Parameters:
request - The Http request
Returns:
the html code message

getMasseDeleteOffer

public String getMasseDeleteOffer(javax.servlet.http.HttpServletRequest request)
Returns the confirmation message to delete an offer

Parameters:
request - The Http request
Returns:
the html code message

doMasseDeleteOffer

public String doMasseDeleteOffer(javax.servlet.http.HttpServletRequest request)
Delete offers on masse

Parameters:
request - The Http request which contains the offer checked
Returns:
the html code message

doExportPurchase

public void doExportPurchase(javax.servlet.http.HttpServletRequest request,
                             javax.servlet.http.HttpServletResponse response)


Copyright © 2014 Mairie de Paris. All Rights Reserved.