Class AppointmentCategoryJspBean

java.lang.Object
fr.paris.lutece.portal.web.admin.AdminFeaturesPageJspBean
fr.paris.lutece.portal.web.admin.PluginAdminPageJspBean
fr.paris.lutece.portal.util.mvc.admin.MVCAdminJspBean
fr.paris.lutece.plugins.appointment.web.AbstractAppointmentFormAndSlotJspBean
fr.paris.lutece.plugins.appointment.web.AppointmentCategoryJspBean
All Implemented Interfaces:
Serializable

@SessionScoped @Named @Controller(controllerJsp="ManageAppointmentCategory.jsp", controllerPath="jsp/admin/plugins/appointment/", right="APPOINTMENT_CATEGORY_MANAGEMENT") public class AppointmentCategoryJspBean extends AbstractAppointmentFormAndSlotJspBean
This class provides the user interface to manage AppointmentForm features ( manage, create, modify, copy, remove )
Author:
L.Payen
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Right to manage appointment category
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    doCreateCategory(jakarta.servlet.http.HttpServletRequest request)
    Create a new category with the fields completed
    doModifyCategory(jakarta.servlet.http.HttpServletRequest request)
    Modify a category
    doRemoveCategory(jakarta.servlet.http.HttpServletRequest request)
    Remove the category selected
    getConfirmRemoveCategory(jakarta.servlet.http.HttpServletRequest request)
    Display a popup to ask the user if he really wants to delete the category he selected
    getCreateCategory(jakarta.servlet.http.HttpServletRequest request)
    Display the screen to create a new category
    getManageCategory(jakarta.servlet.http.HttpServletRequest request)
    Get the page to manage appointment categories
    getModifyCategory(jakarta.servlet.http.HttpServletRequest request)
    Get the view to modify an existed category

    Methods inherited from class fr.paris.lutece.plugins.appointment.web.AbstractAppointmentFormAndSlotJspBean

    addElementsToModel

    Methods inherited from class fr.paris.lutece.portal.util.mvc.admin.MVCAdminJspBean

    processController

    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, getSecurityTokenService, getUser, setFeatureGroup, setFeatureIcon, setPageTitleProperty, validate, validate, validate

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • RIGHT_MANAGECATEGORY

      public static final String RIGHT_MANAGECATEGORY
      Right to manage appointment category
      See Also:
  • Constructor Details

    • AppointmentCategoryJspBean

      public AppointmentCategoryJspBean()
  • Method Details

    • getManageCategory

      @View(value="manageCategory", defaultView=true) public String getManageCategory(jakarta.servlet.http.HttpServletRequest request)
      Get the page to manage appointment categories
      Parameters:
      request - the request
      Returns:
      The HTML content to display
    • getConfirmRemoveCategory

      @Action("confirmRemoveCategory") public String getConfirmRemoveCategory(jakarta.servlet.http.HttpServletRequest request)
      Display a popup to ask the user if he really wants to delete the category he selected
      Parameters:
      request - the request
      Returns:
      the HTML code to confirm
      Throws:
      fr.paris.lutece.portal.service.admin.AccessDeniedException - If the user is not authorized
    • doRemoveCategory

      @Action("removeCategory") public String doRemoveCategory(jakarta.servlet.http.HttpServletRequest request)
      Remove the category selected
      Parameters:
      request - the request
      Returns:
      The JSP URL of the process result
      Throws:
      fr.paris.lutece.portal.service.admin.AccessDeniedException - If the user is not authorized
    • getCreateCategory

      @View("createCategory") public String getCreateCategory(jakarta.servlet.http.HttpServletRequest request)
      Display the screen to create a new category
      Parameters:
      request - the request
      Returns:
      The HTML content to display
      Throws:
      fr.paris.lutece.portal.service.admin.AccessDeniedException - If the user is not authorized
    • doCreateCategory

      @Action("createCategory") public String doCreateCategory(jakarta.servlet.http.HttpServletRequest request)
      Create a new category with the fields completed
      Parameters:
      request - the request
      Returns:
      The JSP URL of the process result
      Throws:
      fr.paris.lutece.portal.service.admin.AccessDeniedException - If the user is not authorized
    • getModifyCategory

      @View("modifyCategory") public String getModifyCategory(jakarta.servlet.http.HttpServletRequest request)
      Get the view to modify an existed category
      Parameters:
      request - the request
      Returns:
      The HTML content to display
      Throws:
      fr.paris.lutece.portal.service.admin.AccessDeniedException - If the user is not authorized
    • doModifyCategory

      @Action("modifyCategory") public String doModifyCategory(jakarta.servlet.http.HttpServletRequest request)
      Modify a category
      Parameters:
      request - the request
      Returns:
      The JSP URL of the process result
      Throws:
      fr.paris.lutece.portal.service.admin.AccessDeniedException - If the user is not authorized