Class MyDBWebController

  • All Implemented Interfaces:
    Serializable, org.silverpeas.core.web.mvc.controller.ComponentSessionController, org.silverpeas.core.web.session.SessionCloseable

    @WebComponentController("myDB")
    public class MyDBWebController
    extends org.silverpeas.core.web.mvc.webcomponent.WebComponentController<MyDBWebRequestContext>
    The web controller of the MyDB application. Like all of the web controllers in Silverpeas, it is both session-scoped and spawn per application instance.
    Author:
    mmoquillon
    See Also:
    Serialized Form
    • Constructor Detail

      • MyDBWebController

        public MyDBWebController​(org.silverpeas.core.web.mvc.controller.MainSessionController controller,
                                 org.silverpeas.core.web.mvc.controller.ComponentContext context)
        Constructs a new Web controller for the specified context and with the MainSessionController instance that is specific to the user behind the access to the underlying application instance.
        Parameters:
        controller - the main session controller for the current user.
        context - the context identifying among others the targeted application instance.
    • Method Detail

      • onInstantiation

        protected void onInstantiation​(MyDBWebRequestContext context)
        Specified by:
        onInstantiation in class org.silverpeas.core.web.mvc.webcomponent.WebComponentController<MyDBWebRequestContext>
      • home

        @GET
        @Path("Main")
        @Homepage
        @RedirectToInternal("{nextView}")
        @LowestRoleAccess(READER)
        public void home​(MyDBWebRequestContext context)
      • error

        @GET
        @Path("Error")
        @RedirectToInternalJsp("error.jsp")
        @LowestRoleAccess(READER)
        public void error​(MyDBWebRequestContext context)
      • viewTableContent

        @GET
        @Path("ViewTable")
        @RedirectToInternalJsp("mydb.jsp")
        @LowestRoleAccess(READER)
        public void viewTableContent​(MyDBWebRequestContext context)
      • getNewTableRowForm

        @GET
        @Path("NewRow")
        @RedirectToInternalJsp("rowForm.jsp")
        @LowestRoleAccess(PUBLISHER)
        public void getNewTableRowForm​(MyDBWebRequestContext context)
      • getTableRowForm

        @GET
        @Path("GetRow")
        @RedirectToInternalJsp("rowForm.jsp")
        @LowestRoleAccess(PUBLISHER)
        public void getTableRowForm​(MyDBWebRequestContext context)
      • getForeignKeyTableViewFrom

        @GET
        @Path("ViewTargetTable")
        @RedirectToInternalJsp("fkTable.jsp")
        @LowestRoleAccess(PUBLISHER)
        public void getForeignKeyTableViewFrom​(MyDBWebRequestContext context)
      • addNewTableRow

        @POST
        @Path("AddRow")
        @RedirectToInternalJsp("mydb.jsp")
        @LowestRoleAccess(PUBLISHER)
        public void addNewTableRow​(MyDBWebRequestContext context)
      • updateTableRow

        @POST
        @Path("UpdateRow")
        @RedirectToInternalJsp("mydb.jsp")
        @LowestRoleAccess(PUBLISHER)
        public void updateTableRow​(MyDBWebRequestContext context)
      • deleteTableRow

        @POST
        @Path("DeleteRow")
        @RedirectToInternalJsp("mydb.jsp")
        @LowestRoleAccess(PUBLISHER)
        public void deleteTableRow​(MyDBWebRequestContext context)
      • selectTable

        @POST
        @Path("SetTable")
        @Produces("application/json")
        @LowestRoleAccess(READER)
        public void selectTable​(MyDBWebRequestContext context)
      • filterTableContent

        @POST
        @Path("FilterTable")
        @RedirectToInternalJsp("mydb.jsp")
        @LowestRoleAccess(READER)
        public void filterTableContent​(MyDBWebRequestContext context)
      • editConnection

        @GET
        @Path("ConnectionSetting")
        @RedirectToInternalJsp("connectionSettings.jsp")
        @LowestRoleAccess(value=ADMIN,
                          onError=@RedirectTo("Main"))
        public void editConnection​(MyDBWebRequestContext context)
      • saveConnection

        @POST
        @Path("UpdateConnection")
        @RedirectToInternal("{nextView}")
        @LowestRoleAccess(value=PUBLISHER,
                          onError=@RedirectTo("Main"))
        public void saveConnection​(MyDBWebRequestContext context)