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

public class PurchaseJspBean
extends AbstractJspBean

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


Field Summary
static org.apache.log4j.Logger LOGGER
          The logger for this jspBean
static java.lang.String MARK_BASE_URL
          The constant String MARK_BASE_URL
static java.lang.String MARK_CURRENT_DATE
          The constant String MARK_CURRENT_DATE
static java.lang.String MARK_ERRORS
          The constant String MARK_ERRORS
static java.lang.String MARK_LIST_OFFER_GENRE
          The constant String MARK_LIST_OFFER_GENRE
static java.lang.String MARK_LOCALE
          The constant String MARK_LOCALE
static java.lang.String MARK_OFFER_ID
          The constant String MARK_OFFER_ID
static java.lang.String MARK_PURCHASE
          The constant String MARK_PURCHASE
static java.lang.String MARK_PURCHASE_STATUT_CANCEL
          The constant String MARK_PURCHASE_STATUT_CANCEL
static java.lang.String MARK_PURCHASSE_ID
          The constant String MARK_PURCHASSE_ID
static java.lang.String MARK_QUANTITY_LIST
          The constant String MARK_QUANTITY_LIST
static java.lang.String MARK_TITLE
          The constant String MARK_TITLE
static java.lang.Integer NB_PLACES_MAX_INVITATION
          The constant Integer NB_PLACES_MAX_INVITATION
static java.lang.Integer NB_PLACES_MAX_INVITATION_SPECTACLE
          The constant Integer NB_PLACES_MAX_INVITATION_SPECTACLE
static java.lang.Integer NB_PLACES_MAX_TARIF_REDUIT
          The constant Integer NB_PLACES_MAX_TARIF_REDUIT
static java.lang.String PARAMETER_BUTTON_DELETE
          The constant String PARAMETER_BUTTON_DELETE
static java.lang.String PARAMETER_FILTER
          The constant String PARAMETER_FILTER
static java.lang.String PARAMETER_FILTER_DATE_BEGIN
          The constant String PARAMETER_FILTER_DATE_BEGIN
static java.lang.String PARAMETER_FILTER_DATE_END
          The constant String PARAMETER_FILTER_DATE_END
static java.lang.String PARAMETER_FILTER_ID
          The constant String PARAMETER_FILTER_ID
static java.lang.String PARAMETER_FILTER_NAME
          The constant String PARAMETER_FILTER_NAME
static java.lang.String PARAMETER_FILTER_PARTNER_NAME
          The constant String PARAMETER_FILTER_PARTNER_NAME
static java.lang.String PARAMETER_FILTER_PARTNER_NICKNAME
          The constant String PARAMETER_FILTER_PARTNER_NICKNAME
static java.lang.String PARAMETER_FILTER_PURCHASE_TYPE
          The constant String PARAMETER_FILTER_PURCHASE_TYPE
static java.lang.String PARAMETER_ORDER_ASC
          The constant String PARAMETER_ORDER_ASC
static java.lang.String PARAMETER_ORDER_BY_ID
          The constant String PARAMETER_ORDER_BY_ID
static java.lang.String PARAMETER_ORDER_BY_LABEL
          The constant String PARAMETER_ORDER_BY_LABEL
static java.lang.String PARAMETER_ORDER_BY_PLACE
          The constant String PARAMETER_ORDER_BY_PLACE
static java.lang.String PARAMETER_ORDER_BY_TYPE
          The constant String PARAMETER_ORDER_BY_TYPE
static java.lang.String PARAMETER_ORDER_DESC
          The constant String PARAMETER_ORDER_DESC
static java.lang.String PARAMETER_PURCHASE_DUPLICATE
          The constant String PARAMETER_PURCHASE_DUPLICATE
static java.lang.String PARAMETER_PURCHASE_GENRE_LIST
          The constant String PARAMETER_PURCHASE_GENRE_LIST
static java.lang.String PARAMETER_PURCHASE_GENRE_LIST_DEFAULT
          The constant String PARAMETER_PURCHASE_GENRE_LIST_DEFAULT
static java.lang.String PARAMETER_PURCHASE_ID
          The constant String PARAMETER_PURCHASE_ID
static java.lang.String PARAMETER_PURCHASE_PRODUCT_NAME
          The constant String PARAMETER_PURCHASE_PRODUCT_NAME
static java.lang.String RESOURCE_TYPE
          The constant String RESOURCE_TYPE
static java.lang.String RIGHT_MANAGE_PURCHASES
          The constant String RIGHT_MANAGE_PURCHASES
 
Fields inherited from class fr.paris.lutece.plugins.stock.modules.billetterie.web.AbstractJspBean
ERROR_MESSAGE_KEY, ERROR_TEMPLATE, FIELD_MESSAGE_PREFIX, MARK_FILTER, MARK_MESSAGE_LIST, MARK_NB_ITEMS_PER_PAGE, MARK_PAGINATOR, N_DEFAULT_ITEMS_PER_PAGE
 
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.
 java.lang.String doDeletePurchase(javax.servlet.http.HttpServletRequest request)
          Delete an purchase
 java.lang.String doNotifyPurchase(javax.servlet.http.HttpServletRequest request)
          Send booking notification.
 java.lang.String doSavePurchase(javax.servlet.http.HttpServletRequest request)
          Save a purchase
 java.lang.String getDeletePurchase(javax.servlet.http.HttpServletRequest request)
          Returns the confirmation message to delete an purchase
 java.lang.String getManagePurchases(javax.servlet.http.HttpServletRequest request)
          Get the manage purchases page
 java.lang.String getNotifyPurchase(javax.servlet.http.HttpServletRequest request)
          Returns the confirmation message to notify purchaser
 java.lang.String getSavePurchase(javax.servlet.http.HttpServletRequest request)
          Returns the form for purchase creation and modification
 
Methods inherited from class fr.paris.lutece.plugins.stock.modules.billetterie.web.AbstractJspBean
getErrorOnce, getHtmlError, getMessage, getMessage, getPaginationProperties, getPaginator, manageFunctionnalException, validate
 
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
 
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 java.lang.String RESOURCE_TYPE
The constant String RESOURCE_TYPE

See Also:
Constant Field Values

RIGHT_MANAGE_PURCHASES

public static final java.lang.String RIGHT_MANAGE_PURCHASES
The constant String RIGHT_MANAGE_PURCHASES

See Also:
Constant Field Values

PARAMETER_PURCHASE_ID

public static final java.lang.String PARAMETER_PURCHASE_ID
The constant String PARAMETER_PURCHASE_ID

See Also:
Constant Field Values

PARAMETER_PURCHASE_DUPLICATE

public static final java.lang.String PARAMETER_PURCHASE_DUPLICATE
The constant String PARAMETER_PURCHASE_DUPLICATE

See Also:
Constant Field Values

PARAMETER_PURCHASE_PRODUCT_NAME

public static final java.lang.String PARAMETER_PURCHASE_PRODUCT_NAME
The constant String PARAMETER_PURCHASE_PRODUCT_NAME

See Also:
Constant Field Values

PARAMETER_PURCHASE_GENRE_LIST

public static final java.lang.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 java.lang.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 java.lang.String PARAMETER_BUTTON_DELETE
The constant String PARAMETER_BUTTON_DELETE

See Also:
Constant Field Values

PARAMETER_FILTER_NAME

public static final java.lang.String PARAMETER_FILTER_NAME
The constant String PARAMETER_FILTER_NAME

See Also:
Constant Field Values

PARAMETER_FILTER_ID

public static final java.lang.String PARAMETER_FILTER_ID
The constant String PARAMETER_FILTER_ID

See Also:
Constant Field Values

PARAMETER_FILTER_PARTNER_NAME

public static final java.lang.String PARAMETER_FILTER_PARTNER_NAME
The constant String PARAMETER_FILTER_PARTNER_NAME

See Also:
Constant Field Values

PARAMETER_FILTER_PARTNER_NICKNAME

public static final java.lang.String PARAMETER_FILTER_PARTNER_NICKNAME
The constant String PARAMETER_FILTER_PARTNER_NICKNAME

See Also:
Constant Field Values

PARAMETER_FILTER_PURCHASE_TYPE

public static final java.lang.String PARAMETER_FILTER_PURCHASE_TYPE
The constant String PARAMETER_FILTER_PURCHASE_TYPE

See Also:
Constant Field Values

PARAMETER_FILTER_DATE_BEGIN

public static final java.lang.String PARAMETER_FILTER_DATE_BEGIN
The constant String PARAMETER_FILTER_DATE_BEGIN

See Also:
Constant Field Values

PARAMETER_FILTER_DATE_END

public static final java.lang.String PARAMETER_FILTER_DATE_END
The constant String PARAMETER_FILTER_DATE_END

See Also:
Constant Field Values

PARAMETER_ORDER_BY_ID

public static final java.lang.String PARAMETER_ORDER_BY_ID
The constant String PARAMETER_ORDER_BY_ID

See Also:
Constant Field Values

PARAMETER_ORDER_BY_LABEL

public static final java.lang.String PARAMETER_ORDER_BY_LABEL
The constant String PARAMETER_ORDER_BY_LABEL

See Also:
Constant Field Values

PARAMETER_ORDER_BY_PLACE

public static final java.lang.String PARAMETER_ORDER_BY_PLACE
The constant String PARAMETER_ORDER_BY_PLACE

See Also:
Constant Field Values

PARAMETER_ORDER_BY_TYPE

public static final java.lang.String PARAMETER_ORDER_BY_TYPE
The constant String PARAMETER_ORDER_BY_TYPE

See Also:
Constant Field Values

PARAMETER_ORDER_ASC

public static final java.lang.String PARAMETER_ORDER_ASC
The constant String PARAMETER_ORDER_ASC

See Also:
Constant Field Values

PARAMETER_ORDER_DESC

public static final java.lang.String PARAMETER_ORDER_DESC
The constant String PARAMETER_ORDER_DESC

See Also:
Constant Field Values

PARAMETER_FILTER

public static final java.lang.String PARAMETER_FILTER
The constant String PARAMETER_FILTER

See Also:
Constant Field Values

MARK_PURCHASE

public static final java.lang.String MARK_PURCHASE
The constant String MARK_PURCHASE

See Also:
Constant Field Values

MARK_TITLE

public static final java.lang.String MARK_TITLE
The constant String MARK_TITLE

See Also:
Constant Field Values

MARK_LOCALE

public static final java.lang.String MARK_LOCALE
The constant String MARK_LOCALE

See Also:
Constant Field Values

MARK_PURCHASE_STATUT_CANCEL

public static final java.lang.String MARK_PURCHASE_STATUT_CANCEL
The constant String MARK_PURCHASE_STATUT_CANCEL

See Also:
Constant Field Values

MARK_CURRENT_DATE

public static final java.lang.String MARK_CURRENT_DATE
The constant String MARK_CURRENT_DATE

See Also:
Constant Field Values

MARK_LIST_OFFER_GENRE

public static final java.lang.String MARK_LIST_OFFER_GENRE
The constant String MARK_LIST_OFFER_GENRE

See Also:
Constant Field Values

MARK_OFFER_ID

public static final java.lang.String MARK_OFFER_ID
The constant String MARK_OFFER_ID

See Also:
Constant Field Values

MARK_PURCHASSE_ID

public static final java.lang.String MARK_PURCHASSE_ID
The constant String MARK_PURCHASSE_ID

See Also:
Constant Field Values

MARK_QUANTITY_LIST

public static final java.lang.String MARK_QUANTITY_LIST
The constant String MARK_QUANTITY_LIST

See Also:
Constant Field Values

MARK_ERRORS

public static final java.lang.String MARK_ERRORS
The constant String MARK_ERRORS

See Also:
Constant Field Values

MARK_BASE_URL

public static final java.lang.String MARK_BASE_URL
The constant String MARK_BASE_URL

See Also:
Constant Field Values

NB_PLACES_MAX_INVITATION

public static final java.lang.Integer NB_PLACES_MAX_INVITATION
The constant Integer NB_PLACES_MAX_INVITATION


NB_PLACES_MAX_INVITATION_SPECTACLE

public static final java.lang.Integer NB_PLACES_MAX_INVITATION_SPECTACLE
The constant Integer NB_PLACES_MAX_INVITATION_SPECTACLE


NB_PLACES_MAX_TARIF_REDUIT

public static final java.lang.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 java.lang.String getManagePurchases(javax.servlet.http.HttpServletRequest request)
Get the manage purchases page

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

getSavePurchase

public java.lang.String getSavePurchase(javax.servlet.http.HttpServletRequest request)
Returns the form for purchase creation and modification

Parameters:
request - The HTTP request
Returns:
HTML Form

doSavePurchase

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

Parameters:
request - The HTTP request
Returns:
redirection url

getDeletePurchase

public java.lang.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 java.lang.String doDeletePurchase(javax.servlet.http.HttpServletRequest request)
Delete an purchase

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

getNotifyPurchase

public java.lang.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 java.lang.String doNotifyPurchase(javax.servlet.http.HttpServletRequest request)
Send booking notification.

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


Copyright © 2012 Mairie de Paris. All Rights Reserved.