Hi Bon, You can retrieve user's folder by invoking `pageManager.getUserFolder(userName)', and you can retrieve pages of a folder by invoking `folder.getPages()'. You also refer to PortalSiteManager.java for details. By using these APIs, you don't have to consider db or file mode.
Regards, Woonsan --- On Mon, 6/23/08, Bon <[EMAIL PROTECTED]> wrote: > From: Bon <[EMAIL PROTECTED]> > Subject: Re: Publishing a new Portlet to every portal user > To: [email protected] > Date: Monday, June 23, 2008, 11:27 AM > Thank you, Woonsan. > > I have refer the LayoutPortlet.java, and I think the > PageManager.updatePage() is very useful for me in > adding a portlet into a page in my porgram, > > I'm trying to find a way to automatically publish a > portlet to some > portal user, > but I think there is a problem about geting the page > ids of users, if > the psml in db mode I can get the > page ids from DB table page, but if the psml in file > mode how can I get > those ids? > > > > Woonsan Ko wrote: > > > > Hi Bon, > > > > I think you can refer to LayoutPortlet.java. Actually, > we're using this > > local portlet in the web UI. > > The `addPortletToPage' method could be very > useful. > > IMHO, if you stick to APIs such as Page, Fragment and > > `pageManager.updatePage()', you don't have to > consider the difference of > > the mode, file or db. > > > > -Woonsan > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: > [EMAIL PROTECTED] > > For additional commands, e-mail: > [EMAIL PROTECTED] > > > > > > > > -- > View this message in context: > http://www.nabble.com/Publishing-a-new-Portlet-to-every-portal-user-tp18024366p18061555.html > Sent from the Jetspeed - User mailing list archive at > Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
