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

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

public class CategoryJspBean
extends AbstractJspBean

The Class CategoryJspBean.

See Also:
Serialized Form

Field Summary
static org.apache.log4j.Logger LOGGER
           
static String MACRO_COLUMN_ACTIONS_CATEGORY
           
static String MACRO_COLUMN_NAME_CATEGORY
           
static String MARK_CATEGORY
          The Constant MARK_CATEGORY.
static String MARK_DATA_TABLE_CATEGORY
          The constants for DataTableManager
static String MARK_FILTER_CATEGORY
           
static String MARK_TITLE
          The Constant MARK_TITLE.
static String PARAMETER_CATEGORY_ID
          The Constant PARAMETER_CATEGORY_ID.
static String PARAMETER_CATEGORY_TYPE_LIST
          The Constant PARAMETER_CATEGORY_TYPE_LIST.
static String PARAMETER_CATEGORY_TYPE_LIST_DEFAULT
          The Constant PARAMETER_CATEGORY_TYPE_LIST_DEFAULT.
static String RIGHT_MANAGE_CATEGORIES
          The Constant RIGHT_MANAGE_CATEGORIES.
 
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
CategoryJspBean()
          Instantiates a new category jsp bean.
 
Method Summary
protected  void buildFilter(fr.paris.lutece.plugins.stock.business.category.CategoryFilter filter, javax.servlet.http.HttpServletRequest request)
          Builds the filter.
 String doDeleteCategory(javax.servlet.http.HttpServletRequest request)
          Delete a category.
 String doSaveCategory(javax.servlet.http.HttpServletRequest request)
          Save a category.
 String getDeleteCategory(javax.servlet.http.HttpServletRequest request)
          Returns the confirmation message to delete a category.
 String getManageCategories(javax.servlet.http.HttpServletRequest request)
          Generates a HTML form that displays all categorys.
 String getSaveCategory(javax.servlet.http.HttpServletRequest request, String strCategoryClassName)
          Returns the form to modify a provider.
 
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_CATEGORY_ID

public static final String PARAMETER_CATEGORY_ID
The Constant PARAMETER_CATEGORY_ID.

See Also:
Constant Field Values

RIGHT_MANAGE_CATEGORIES

public static final String RIGHT_MANAGE_CATEGORIES
The Constant RIGHT_MANAGE_CATEGORIES.

See Also:
Constant Field Values

MARK_CATEGORY

public static final String MARK_CATEGORY
The Constant MARK_CATEGORY.

See Also:
Constant Field Values

MARK_DATA_TABLE_CATEGORY

public static final String MARK_DATA_TABLE_CATEGORY
The constants for DataTableManager

See Also:
Constant Field Values

MARK_FILTER_CATEGORY

public static final String MARK_FILTER_CATEGORY
See Also:
Constant Field Values

MACRO_COLUMN_ACTIONS_CATEGORY

public static final String MACRO_COLUMN_ACTIONS_CATEGORY
See Also:
Constant Field Values

MACRO_COLUMN_NAME_CATEGORY

public static final String MACRO_COLUMN_NAME_CATEGORY
See Also:
Constant Field Values

MARK_TITLE

public static final String MARK_TITLE
The Constant MARK_TITLE.

See Also:
Constant Field Values

PARAMETER_CATEGORY_TYPE_LIST

public static final String PARAMETER_CATEGORY_TYPE_LIST
The Constant PARAMETER_CATEGORY_TYPE_LIST.

See Also:
Constant Field Values

PARAMETER_CATEGORY_TYPE_LIST_DEFAULT

public static final String PARAMETER_CATEGORY_TYPE_LIST_DEFAULT
The Constant PARAMETER_CATEGORY_TYPE_LIST_DEFAULT.

See Also:
Constant Field Values
Constructor Detail

CategoryJspBean

public CategoryJspBean()
Instantiates a new category jsp bean.

Method Detail

buildFilter

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

Parameters:
filter - the filter
request - the request

getManageCategories

public String getManageCategories(javax.servlet.http.HttpServletRequest request)
Generates a HTML form that displays all categorys.

Parameters:
request - the Http request
Returns:
HTML

getSaveCategory

public String getSaveCategory(javax.servlet.http.HttpServletRequest request,
                              String strCategoryClassName)
Returns the form to modify a provider.

Parameters:
request - The Http request
strCategoryClassName - The class name of the provider entity to modify
Returns:
the html code of the provider form

doSaveCategory

public String doSaveCategory(javax.servlet.http.HttpServletRequest request)
Save a category.

Parameters:
request - The HTTP request
Returns:
redirection url

getDeleteCategory

public String getDeleteCategory(javax.servlet.http.HttpServletRequest request)
Returns the confirmation message to delete a category.

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

doDeleteCategory

public String doDeleteCategory(javax.servlet.http.HttpServletRequest request)
Delete a category.

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


Copyright © 2013 Mairie de Paris. All Rights Reserved.