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

public class CategoryJspBean
extends AbstractJspBean

The Class CategoryJspBean.


Field Summary
static java.lang.String MARK_CATEGORY
          The Constant MARK_CATEGORY.
static java.lang.String MARK_TITLE
          The Constant MARK_TITLE.
static java.lang.String PARAMETER_CATEGORY_ID
          The Constant PARAMETER_CATEGORY_ID.
static java.lang.String PARAMETER_CATEGORY_TYPE_LIST
          The Constant PARAMETER_CATEGORY_TYPE_LIST.
static java.lang.String PARAMETER_CATEGORY_TYPE_LIST_DEFAULT
          The Constant PARAMETER_CATEGORY_TYPE_LIST_DEFAULT.
static java.lang.String RIGHT_MANAGE_CATEGORIES
          The Constant RIGHT_MANAGE_CATEGORIES.
 
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
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.
 java.lang.String doDeleteCategory(javax.servlet.http.HttpServletRequest request)
          Delete a category.
 java.lang.String doSaveCategory(javax.servlet.http.HttpServletRequest request)
          Save a category.
 java.lang.String getDeleteCategory(javax.servlet.http.HttpServletRequest request)
          Returns the confirmation message to delete a category.
 java.lang.String getManageCategories(javax.servlet.http.HttpServletRequest request)
          Generates a HTML form that displays all categorys.
 java.lang.String getSaveCategory(javax.servlet.http.HttpServletRequest request, java.lang.String strCategoryClassName)
          Returns the form to modify a provider.
 
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

PARAMETER_CATEGORY_ID

public static final java.lang.String PARAMETER_CATEGORY_ID
The Constant PARAMETER_CATEGORY_ID.

See Also:
Constant Field Values

RIGHT_MANAGE_CATEGORIES

public static final java.lang.String RIGHT_MANAGE_CATEGORIES
The Constant RIGHT_MANAGE_CATEGORIES.

See Also:
Constant Field Values

MARK_CATEGORY

public static final java.lang.String MARK_CATEGORY
The Constant MARK_CATEGORY.

See Also:
Constant Field Values

MARK_TITLE

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

See Also:
Constant Field Values

PARAMETER_CATEGORY_TYPE_LIST

public static final java.lang.String PARAMETER_CATEGORY_TYPE_LIST
The Constant PARAMETER_CATEGORY_TYPE_LIST.

See Also:
Constant Field Values

PARAMETER_CATEGORY_TYPE_LIST_DEFAULT

public static final java.lang.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 java.lang.String getManageCategories(javax.servlet.http.HttpServletRequest request)
Generates a HTML form that displays all categorys.

Parameters:
request - the Http request
Returns:
HTML

getSaveCategory

public java.lang.String getSaveCategory(javax.servlet.http.HttpServletRequest request,
                                        java.lang.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 java.lang.String doSaveCategory(javax.servlet.http.HttpServletRequest request)
Save a category.

Parameters:
request - The HTTP request
Returns:
redirection url

getDeleteCategory

public java.lang.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 java.lang.String doDeleteCategory(javax.servlet.http.HttpServletRequest request)
Delete a category.

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


Copyright © 2012 Mairie de Paris. All Rights Reserved.