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

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

public class PurchaseJspBean
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
          The logger for this jspBean
static String MACRO_COLUMN_ACTIONS_PURCHASE
           
static String MACRO_COLUMN_AGENT_PURCHASE
           
static String MACRO_COLUMN_CHECKBOX_DELETE_PURCHASE
           
static String MACRO_COLUMN_DATE_PURCHASE
           
static String MACRO_COLUMN_NAME_PURCHASE
           
static String MACRO_COLUMN_OFFER_TYPE_PURCHASE
           
static String MARK_BASE_URL
          The constant String MARK_BASE_URL
static String MARK_CURRENT_DATE
          The constant String MARK_CURRENT_DATE
static String MARK_DATA_TABLE_PURCHASE
          The constants for DataTableManager
static String MARK_ERRORS
          The constant String MARK_ERRORS
static String MARK_FILTER_PURCHASE
           
static String MARK_LIST_OFFER_GENRE
          The constant String MARK_LIST_OFFER_GENRE
static String MARK_LOCALE
          The constant String MARK_LOCALE
static String MARK_NEW_ID_OFFER
           
static String MARK_OFFER_ID
          The constant String MARK_OFFER_ID
static String MARK_OFFERS_AVAILABLES
           
static String MARK_PURCHASE
          The constant String MARK_PURCHASE
static String MARK_PURCHASE_STATUT_CANCEL
          The constant String MARK_PURCHASE_STATUT_CANCEL
static String MARK_PURCHASSE_ID
          The constant String MARK_PURCHASSE_ID
static String MARK_QUANTITY_LIST
          The constant String MARK_QUANTITY_LIST
static String MARK_TITLE
          The constant String MARK_TITLE
static Integer NB_PLACES_MAX_INVITATION
          The constant Integer NB_PLACES_MAX_INVITATION
static Integer NB_PLACES_MAX_INVITATION_SPECTACLE
          The constant Integer NB_PLACES_MAX_INVITATION_SPECTACLE
static Integer NB_PLACES_MAX_TARIF_REDUIT
          The constant Integer NB_PLACES_MAX_TARIF_REDUIT
static String PARAMETER_BUTTON_DELETE
          The constant String PARAMETER_BUTTON_DELETE
static String PARAMETER_FILTER
          The constant String PARAMETER_FILTER
static String PARAMETER_FILTER_DATE_BEGIN
          The constant String PARAMETER_FILTER_DATE_BEGIN
static String PARAMETER_FILTER_DATE_END
          The constant String PARAMETER_FILTER_DATE_END
static String PARAMETER_FILTER_ID
          The constant String PARAMETER_FILTER_ID
static String PARAMETER_FILTER_NAME
          The constant String PARAMETER_FILTER_NAME
static String PARAMETER_FILTER_PARTNER_NAME
          The constant String PARAMETER_FILTER_PARTNER_NAME
static String PARAMETER_FILTER_PARTNER_NICKNAME
          The constant String PARAMETER_FILTER_PARTNER_NICKNAME
static String PARAMETER_FILTER_PURCHASE_TYPE
          The constant String PARAMETER_FILTER_PURCHASE_TYPE
static String PARAMETER_ORDER_ASC
          The constant String PARAMETER_ORDER_ASC
static String PARAMETER_ORDER_BY_ID
          The constant String PARAMETER_ORDER_BY_ID
static String PARAMETER_ORDER_BY_LABEL
          The constant String PARAMETER_ORDER_BY_LABEL
static String PARAMETER_ORDER_BY_PLACE
          The constant String PARAMETER_ORDER_BY_PLACE
static String PARAMETER_ORDER_BY_TYPE
          The constant String PARAMETER_ORDER_BY_TYPE
static String PARAMETER_ORDER_DESC
          The constant String PARAMETER_ORDER_DESC
static String PARAMETER_PURCHASE_DUPLICATE
          The constant String PARAMETER_PURCHASE_DUPLICATE
static String PARAMETER_PURCHASE_GENRE_LIST
          The constant String PARAMETER_PURCHASE_GENRE_LIST
static String PARAMETER_PURCHASE_GENRE_LIST_DEFAULT
          The constant String PARAMETER_PURCHASE_GENRE_LIST_DEFAULT
static String PARAMETER_PURCHASE_ID
          The constant String PARAMETER_PURCHASE_ID
static String PARAMETER_PURCHASE_PRODUCT_NAME
          The constant String PARAMETER_PURCHASE_PRODUCT_NAME
static String RESOURCE_TYPE
          The constant String RESOURCE_TYPE
static String RIGHT_MANAGE_PURCHASES
          The constant String RIGHT_MANAGE_PURCHASES
 
Fields inherited from class fr.paris.lutece.plugins.stock.modules.billetterie.web.AbstractJspBean
_nItemsPerPage, ERROR_MESSAGE_KEY, ERROR_TEMPLATE, FIELD_MESSAGE_PREFIX, 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
 
Constructor Summary
PurchaseJspBean()
          Instantiates a new purchase jsp bean.
 
Method Summary
protected  void buildFilter(fr.paris.lutece.plugins.stock.modules.tickets.business.ReservationFilter filter, javax.servlet.http.HttpServletRequest request)
          Builds the filter.
 String doDeletePurchase(javax.servlet.http.HttpServletRequest request)
          Delete an purchase
 String doNotifyPurchase(javax.servlet.http.HttpServletRequest request)
          Send booking notification.
 String doSavePurchase(javax.servlet.http.HttpServletRequest request)
          Save a purchase
 String getDeletePurchase(javax.servlet.http.HttpServletRequest request)
          Returns the confirmation message to delete an purchase
 String getManagePurchases(javax.servlet.http.HttpServletRequest request)
          Get the manage purchases page
 String getMasseDeletePurchase(javax.servlet.http.HttpServletRequest request)
          Returns the confirmation message to delete purchases
 String getNotifyPurchase(javax.servlet.http.HttpServletRequest request)
          Returns the confirmation message to notify purchaser
 String getSavePurchase(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Returns the form for purchase 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
The logger for this jspBean


RESOURCE_TYPE

public static final String RESOURCE_TYPE
The constant String RESOURCE_TYPE

See Also:
Constant Field Values

RIGHT_MANAGE_PURCHASES

public static final String RIGHT_MANAGE_PURCHASES
The constant String RIGHT_MANAGE_PURCHASES

See Also:
Constant Field Values

PARAMETER_PURCHASE_ID

public static final String PARAMETER_PURCHASE_ID
The constant String PARAMETER_PURCHASE_ID

See Also:
Constant Field Values

PARAMETER_PURCHASE_DUPLICATE

public static final String PARAMETER_PURCHASE_DUPLICATE
The constant String PARAMETER_PURCHASE_DUPLICATE

See Also:
Constant Field Values

PARAMETER_PURCHASE_PRODUCT_NAME

public static final String PARAMETER_PURCHASE_PRODUCT_NAME
The constant String PARAMETER_PURCHASE_PRODUCT_NAME

See Also:
Constant Field Values

PARAMETER_PURCHASE_GENRE_LIST

public static final String PARAMETER_PURCHASE_GENRE_LIST
The constant String PARAMETER_PURCHASE_GENRE_LIST

See Also:
Constant Field Values

PARAMETER_PURCHASE_GENRE_LIST_DEFAULT

public static final String PARAMETER_PURCHASE_GENRE_LIST_DEFAULT
The constant String PARAMETER_PURCHASE_GENRE_LIST_DEFAULT

See Also:
Constant Field Values

PARAMETER_BUTTON_DELETE

public static final String PARAMETER_BUTTON_DELETE
The constant String PARAMETER_BUTTON_DELETE

See Also:
Constant Field Values

PARAMETER_FILTER_NAME

public static final String PARAMETER_FILTER_NAME
The constant String PARAMETER_FILTER_NAME

See Also:
Constant Field Values

PARAMETER_FILTER_ID

public static final String PARAMETER_FILTER_ID
The constant String PARAMETER_FILTER_ID

See Also:
Constant Field Values

PARAMETER_FILTER_PARTNER_NAME

public static final String PARAMETER_FILTER_PARTNER_NAME
The constant String PARAMETER_FILTER_PARTNER_NAME

See Also:
Constant Field Values

PARAMETER_FILTER_PARTNER_NICKNAME

public static final String PARAMETER_FILTER_PARTNER_NICKNAME
The constant String PARAMETER_FILTER_PARTNER_NICKNAME

See Also:
Constant Field Values

PARAMETER_FILTER_PURCHASE_TYPE

public static final String PARAMETER_FILTER_PURCHASE_TYPE
The constant String PARAMETER_FILTER_PURCHASE_TYPE

See Also:
Constant Field Values

PARAMETER_FILTER_DATE_BEGIN

public static final String PARAMETER_FILTER_DATE_BEGIN
The constant String PARAMETER_FILTER_DATE_BEGIN

See Also:
Constant Field Values

PARAMETER_FILTER_DATE_END

public static final String PARAMETER_FILTER_DATE_END
The constant String PARAMETER_FILTER_DATE_END

See Also:
Constant Field Values

PARAMETER_ORDER_BY_ID

public static final String PARAMETER_ORDER_BY_ID
The constant String PARAMETER_ORDER_BY_ID

See Also:
Constant Field Values

PARAMETER_ORDER_BY_LABEL

public static final String PARAMETER_ORDER_BY_LABEL
The constant String PARAMETER_ORDER_BY_LABEL

See Also:
Constant Field Values

PARAMETER_ORDER_BY_PLACE

public static final String PARAMETER_ORDER_BY_PLACE
The constant String PARAMETER_ORDER_BY_PLACE

See Also:
Constant Field Values

PARAMETER_ORDER_BY_TYPE

public static final String PARAMETER_ORDER_BY_TYPE
The constant String PARAMETER_ORDER_BY_TYPE

See Also:
Constant Field Values

PARAMETER_ORDER_ASC

public static final String PARAMETER_ORDER_ASC
The constant String PARAMETER_ORDER_ASC

See Also:
Constant Field Values

PARAMETER_ORDER_DESC

public static final String PARAMETER_ORDER_DESC
The constant String PARAMETER_ORDER_DESC

See Also:
Constant Field Values

PARAMETER_FILTER

public static final String PARAMETER_FILTER
The constant String PARAMETER_FILTER

See Also:
Constant Field Values

MARK_DATA_TABLE_PURCHASE

public static final String MARK_DATA_TABLE_PURCHASE
The constants for DataTableManager

See Also:
Constant Field Values

MARK_FILTER_PURCHASE

public static final String MARK_FILTER_PURCHASE
See Also:
Constant Field Values

MACRO_COLUMN_ACTIONS_PURCHASE

public static final String MACRO_COLUMN_ACTIONS_PURCHASE
See Also:
Constant Field Values

MACRO_COLUMN_NAME_PURCHASE

public static final String MACRO_COLUMN_NAME_PURCHASE
See Also:
Constant Field Values

MACRO_COLUMN_DATE_PURCHASE

public static final String MACRO_COLUMN_DATE_PURCHASE
See Also:
Constant Field Values

MACRO_COLUMN_OFFER_TYPE_PURCHASE

public static final String MACRO_COLUMN_OFFER_TYPE_PURCHASE
See Also:
Constant Field Values

MACRO_COLUMN_CHECKBOX_DELETE_PURCHASE

public static final String MACRO_COLUMN_CHECKBOX_DELETE_PURCHASE
See Also:
Constant Field Values

MACRO_COLUMN_AGENT_PURCHASE

public static final String MACRO_COLUMN_AGENT_PURCHASE
See Also:
Constant Field Values

MARK_PURCHASE

public static final String MARK_PURCHASE
The constant String MARK_PURCHASE

See Also:
Constant Field Values

MARK_TITLE

public static final String MARK_TITLE
The constant String MARK_TITLE

See Also:
Constant Field Values

MARK_LOCALE

public static final String MARK_LOCALE
The constant String MARK_LOCALE

See Also:
Constant Field Values

MARK_PURCHASE_STATUT_CANCEL

public static final String MARK_PURCHASE_STATUT_CANCEL
The constant String MARK_PURCHASE_STATUT_CANCEL

See Also:
Constant Field Values

MARK_CURRENT_DATE

public static final String MARK_CURRENT_DATE
The constant String MARK_CURRENT_DATE

See Also:
Constant Field Values

MARK_LIST_OFFER_GENRE

public static final String MARK_LIST_OFFER_GENRE
The constant String MARK_LIST_OFFER_GENRE

See Also:
Constant Field Values

MARK_OFFER_ID

public static final String MARK_OFFER_ID
The constant String MARK_OFFER_ID

See Also:
Constant Field Values

MARK_PURCHASSE_ID

public static final String MARK_PURCHASSE_ID
The constant String MARK_PURCHASSE_ID

See Also:
Constant Field Values

MARK_QUANTITY_LIST

public static final String MARK_QUANTITY_LIST
The constant String MARK_QUANTITY_LIST

See Also:
Constant Field Values

MARK_ERRORS

public static final String MARK_ERRORS
The constant String MARK_ERRORS

See Also:
Constant Field Values

MARK_BASE_URL

public static final String MARK_BASE_URL
The constant String MARK_BASE_URL

See Also:
Constant Field Values

MARK_OFFERS_AVAILABLES

public static final String MARK_OFFERS_AVAILABLES
See Also:
Constant Field Values

MARK_NEW_ID_OFFER

public static final String MARK_NEW_ID_OFFER
See Also:
Constant Field Values

NB_PLACES_MAX_INVITATION

public static final Integer NB_PLACES_MAX_INVITATION
The constant Integer NB_PLACES_MAX_INVITATION


NB_PLACES_MAX_INVITATION_SPECTACLE

public static final Integer NB_PLACES_MAX_INVITATION_SPECTACLE
The constant Integer NB_PLACES_MAX_INVITATION_SPECTACLE


NB_PLACES_MAX_TARIF_REDUIT

public static final Integer NB_PLACES_MAX_TARIF_REDUIT
The constant Integer NB_PLACES_MAX_TARIF_REDUIT

Constructor Detail

PurchaseJspBean

public PurchaseJspBean()
Instantiates a new purchase jsp bean.

Method Detail

buildFilter

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

Parameters:
filter - the filter
request - the request

getManagePurchases

public String getManagePurchases(javax.servlet.http.HttpServletRequest request)
Get the manage purchases page

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

getSavePurchase

public String getSavePurchase(javax.servlet.http.HttpServletRequest request,
                              javax.servlet.http.HttpServletResponse response)
Returns the form for purchase creation and modification

Parameters:
request - The HTTP request
response - The HTTP response
Returns:
HTML Form

doSavePurchase

public String doSavePurchase(javax.servlet.http.HttpServletRequest request)
Save a purchase

Parameters:
request - The HTTP request
Returns:
redirection url

getDeletePurchase

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

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

doDeletePurchase

public String doDeletePurchase(javax.servlet.http.HttpServletRequest request)
Delete an purchase

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

getNotifyPurchase

public String getNotifyPurchase(javax.servlet.http.HttpServletRequest request)
Returns the confirmation message to notify purchaser

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

doNotifyPurchase

public String doNotifyPurchase(javax.servlet.http.HttpServletRequest request)
Send booking notification.

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

getMasseDeletePurchase

public String getMasseDeletePurchase(javax.servlet.http.HttpServletRequest request)
Returns the confirmation message to delete purchases

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


Copyright © 2013 Mairie de Paris. All Rights Reserved.