1 Reply Latest reply on Apr 30, 2012 11:36 AM by toomtooms

    Struts 2 portlet and eXo Services

    meher211

      Hi ,

      I am working on eXoplatform 3.5.1

      Iam developping a struts2 portlet ( http://struts.apache.org/2.0.14/docs/struts-2-portlet-tutorial.html )

      How i can to use EXO services ( retrieve username , add user , modify his informations) in the action class ?

      The Action class must implements any other interface ? (exp :GenericPortlet  or something else ?)

      What's the library required to use those services ?

      Thnx

        • 1. Re: Struts 2 portlet and eXo Services
          toomtooms

          No need to implements any interface. Just use the following code :

          {code}

          ExoContainer container = PortalContainer.getInstance();

          OrganizationService organizationService = (OrganizationService)container.getComponentInstance(OrganizationService.class);

          {code}

           

          organizationService is the entry point for the users/groups/roles APIs.