Class CityJspBean

  • All Implemented Interfaces:
    java.io.Serializable

    @Controller(controllerJsp="ManageCities.jsp",
                controllerPath="jsp/admin/plugins/geocodes/",
                right="GEOCODES_MANAGEMENT")
    public class CityJspBean
    extends AbstractManageGeoCodesJspBean<java.lang.Integer,​City>
    This class provides the user interface to manage City features ( manage, create, modify, remove )
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      CityJspBean()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String doApplyCityModification​(javax.servlet.http.HttpServletRequest request)  
      java.lang.String doCreateCity​(javax.servlet.http.HttpServletRequest request)
      Process the data capture form of a new city
      java.lang.String doModifyCity​(javax.servlet.http.HttpServletRequest request)
      Process the change form of a city
      java.lang.String doRefuseModification​(javax.servlet.http.HttpServletRequest request)  
      java.lang.String doRemoveCity​(javax.servlet.http.HttpServletRequest request)
      Handles the removal form of a city
      java.lang.String getConfirmRemoveCity​(javax.servlet.http.HttpServletRequest request)
      Manages the removal form of a city whose identifier is in the http request
      java.lang.String getCreateCity​(javax.servlet.http.HttpServletRequest request)
      Returns the form to create a city
      java.lang.String getManageCities​(javax.servlet.http.HttpServletRequest request)
      Build the Manage View
      java.lang.String getModifyCity​(javax.servlet.http.HttpServletRequest request)
      Returns the form to update info about a city
      void resetListId()
      reset the _listIdCities list
      • 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, getUser, setFeatureGroup, setFeatureIcon, setPageTitleProperty, validate, validate, validate
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CityJspBean

        public CityJspBean()
    • Method Detail

      • getManageCities

        @View(value="manageCities",
              defaultView=true)
        public java.lang.String getManageCities​(javax.servlet.http.HttpServletRequest request)
        Build the Manage View
        Parameters:
        request - The HTTP request
        Returns:
        The page
      • resetListId

        public void resetListId()
        reset the _listIdCities list
      • getCreateCity

        @View("createCity")
        public java.lang.String getCreateCity​(javax.servlet.http.HttpServletRequest request)
        Returns the form to create a city
        Parameters:
        request - The Http request
        Returns:
        the html code of the city form
      • doCreateCity

        @Action("createCity")
        public java.lang.String doCreateCity​(javax.servlet.http.HttpServletRequest request)
                                      throws fr.paris.lutece.portal.service.admin.AccessDeniedException
        Process the data capture form of a new city
        Parameters:
        request - The Http Request
        Returns:
        The Jsp URL of the process result
        Throws:
        fr.paris.lutece.portal.service.admin.AccessDeniedException
      • getConfirmRemoveCity

        @Action("confirmRemoveCity")
        public java.lang.String getConfirmRemoveCity​(javax.servlet.http.HttpServletRequest request)
        Manages the removal form of a city whose identifier is in the http request
        Parameters:
        request - The Http request
        Returns:
        the html code to confirm
      • doRemoveCity

        @Action("removeCity")
        public java.lang.String doRemoveCity​(javax.servlet.http.HttpServletRequest request)
        Handles the removal form of a city
        Parameters:
        request - The Http request
        Returns:
        the jsp URL to display the form to manage cities
      • doApplyCityModification

        @Action("applyCityChanges")
        public java.lang.String doApplyCityModification​(javax.servlet.http.HttpServletRequest request)
      • doRefuseModification

        @Action("denyChanges")
        public java.lang.String doRefuseModification​(javax.servlet.http.HttpServletRequest request)
      • getModifyCity

        @View("modifyCity")
        public java.lang.String getModifyCity​(javax.servlet.http.HttpServletRequest request)
        Returns the form to update info about a city
        Parameters:
        request - The Http request
        Returns:
        The HTML form to update info
      • doModifyCity

        @Action("modifyCity")
        public java.lang.String doModifyCity​(javax.servlet.http.HttpServletRequest request)
                                      throws fr.paris.lutece.portal.service.admin.AccessDeniedException,
                                             java.text.ParseException
        Process the change form of a city
        Parameters:
        request - The Http request
        Returns:
        The Jsp URL of the process result
        Throws:
        fr.paris.lutece.portal.service.admin.AccessDeniedException
        java.text.ParseException