2 Replies Latest reply on Sep 28, 2006 12:34 PM by juekl

    Programmatic content generation

      Dear all

      we are evaluating the JBoss portal for future use. One important requirement is the possibility to create the portal content structure programmatically or by means of some upload functionality.

      For pages and portlet instances this seems to work via *object.xml and *instance.xml files. But I've seen no way to create roles and user-role assignments in a programmatic way.

      Is there possibly a Java API to do content generation?

      Any thoughts/ideas are greatly appreciated!
      Best regards
      Klaus

        • 1. Re: Programmatic content generation

          You will want to look at the UserModule and RoleModule classes in the portal codebase, or look at the UserPortlet registration process and see what it does.

          • 2. Re: Programmatic content generation

            The User/RoleModule classes work fine!

            Concerning the creation/management of pages and portlet instances, etc. it would be interesting to know if there is a recommended way to do this. Should it be done via xml-upload or rather programmatic via java api? Any preferences?

            Thanks for your help
            Klaus