Class CommunityWebController

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

    @WebComponentController("community")
    public class CommunityWebController
    extends org.silverpeas.core.web.mvc.webcomponent.WebComponentController<CommunityWebRequestContext>

    The Web Component Controller of the application.

    It takes in charge, per user, the web navigation of the user in the application. It is a session scoped bean; it is instantiated for each user session.

    See Also:
    Serialized Form
    • Constructor Detail

      • CommunityWebController

        public CommunityWebController​(org.silverpeas.core.web.mvc.controller.MainSessionController mainSessionCtrl,
                                      org.silverpeas.core.web.mvc.controller.ComponentContext componentContext)
        Standard Web Controller Constructor.
        Parameters:
        mainSessionCtrl - the main user session controller.
        componentContext - The component's context.
    • Method Detail

      • onInstantiation

        protected void onInstantiation​(CommunityWebRequestContext context)
        This method is called one times once this web component controller is instantiated for a given user. You can perform here some specific treatments here. For example, you can register Web navigation listeners that will be invoked at each navigation step change. For simple web navigation, this method is usually empty.
        Specified by:
        onInstantiation in class org.silverpeas.core.web.mvc.webcomponent.WebComponentController<CommunityWebRequestContext>
        Parameters:
        context - the web request context.
      • home

        @GET
        @Path("Main")
        @Homepage
        @RedirectToInternal("{view}?ComponentMainPage={isComponentMainPage}")
        public void home​(CommunityWebRequestContext context)
        Prepares the rendering of the home page.
        Parameters:
        context - the context of the incoming request.
      • appHomepage

        @GET
        @Path("appHomepage")
        @RedirectToInternalJsp("main.jsp")
        public void appHomepage​(CommunityWebRequestContext context)
        Prepares the rendering of the home page.
        Parameters:
        context - the context of the incoming request.
      • setDisplayCharterOnSpaceHomepage

        @POST
        @Path("parameters/displayCharterOnSpaceHomepage")
        @Produces("application/json")
        public void setDisplayCharterOnSpaceHomepage​(CommunityWebRequestContext context)
      • spaceHomepageProxy

        @GET
        @Path("spaceHomepageProxy")
        @RedirectTo("{path}?SpaceId={spaceId}")
        public void spaceHomepageProxy​(CommunityWebRequestContext context)
        Prepares the rendering of the home page.
        Parameters:
        context - the context of the incoming request.
      • listMembers

        @GET
        @Path("members")
        @RedirectToInternalJsp("members.jsp")
        @NavigationStep(identifier="memberListNavStepIdentifier")
        @LowestRoleAccess(READER)
        public void listMembers​(CommunityWebRequestContext context)
      • validate

        @POST
        @Path("members/join/validate/{userId}")
        @Produces("application/json")
        @LowestRoleAccess(ADMIN)
        public void validate​(CommunityWebRequestContext context)
      • endMembershipOf

        @POST
        @Path("members/leave/{userId}")
        @LowestRoleAccess(ADMIN)
        @Produces("application/json")
        public void endMembershipOf​(CommunityWebRequestContext context)
      • leave

        @POST
        @Path("members/leave")
        @LowestRoleAccess(READER)
        @Produces("application/json")
        public void leave​(CommunityWebRequestContext context)
      • getHistory

        @GET
        @Path("members/history")
        @RedirectToInternalJsp("history.jsp")
        @NavigationStep(identifier="historyViewNavStepIdentifier")
        @LowestRoleAccess(ADMIN)
        public void getHistory​(CommunityWebRequestContext context)
      • editSpaceHomePage

        @GET
        @Path("spaceHomepage/edit")
        public org.silverpeas.core.web.mvc.webcomponent.Navigation editSpaceHomePage​(CommunityWebRequestContext context)