Topic
  • 8 replies
  • Latest Post - ‏2008-06-30T17:35:18Z by jwbarnes
mankar007
mankar007
46 Posts

Pinned topic How to find information about all portal pages?

‏2008-06-26T15:27:49Z |
Is there any API available in websphere which will tell information about all portal pages on websphere portal server?

Or is there any other way to find info of all portal pages?
Updated on 2008-06-30T17:35:18Z at 2008-06-30T17:35:18Z by jwbarnes
  • san_jayk
    san_jayk
    17 Posts

    Re: How to find information about all portal pages?

    ‏2008-06-26T23:25:34Z  
    Why don't you look at the SPI doc (http://www.ibm.com/developerworks/websphere/library/specs/0608_wp6javadoc.html)
  • mankar007
    mankar007
    46 Posts

    Re: How to find information about all portal pages?

    ‏2008-06-27T13:41:47Z  
    • san_jayk
    • ‏2008-06-26T23:25:34Z
    Hi,
    Thanks for the response.

    But i am not able to figure out which class to use as there are lots of classes.

    Can you provide me the direct pointers?
  • gkg
    gkg
    170 Posts

    Re: How to find information about all portal pages?

    ‏2008-06-27T14:08:17Z  
    • mankar007
    • ‏2008-06-27T13:41:47Z
    Hi,
    Thanks for the response.

    But i am not able to figure out which class to use as there are lots of classes.

    Can you provide me the direct pointers?
    do you mean the information about all portal pages
    are unique name of the pages, page url, how many portlets are attached with this page, association of themes, page Title, page id?
    Updated on 2008-06-27T14:08:17Z at 2008-06-27T14:08:17Z by gkg
  • mankar007
    mankar007
    46 Posts

    Re: How to find information about all portal pages?

    ‏2008-06-27T14:13:58Z  
    • gkg
    • ‏2008-06-27T14:07:02Z
    do you mean the information about all portal pages
    are unique name of the pages, page url, how many portlets are attached with this page, association of themes, page Title, page id?
    Yes.

    I want unique name of the pages, page url, , association of themes, page Title, page id.

    Is it possible?
  • gkg
    gkg
    170 Posts

    Re: How to find information about all portal pages?

    ‏2008-06-27T14:45:20Z  
    • mankar007
    • ‏2008-06-27T14:13:58Z
    Yes.

    I want unique name of the pages, page url, , association of themes, page Title, page id.

    Is it possible?
    yes, it is possible,

    Try the attached one,

    Attachments

  • mankar007
    mankar007
    46 Posts

    Re: How to find information about all portal pages?

    ‏2008-06-27T15:02:00Z  
    • gkg
    • ‏2008-06-27T14:45:20Z
    yes, it is possible,

    Try the attached one,
    Thanks a lot gkg.

    I will let you the result.
  • mankar007
    mankar007
    46 Posts

    Re: How to find information about all portal pages?

    ‏2008-06-30T14:34:08Z  
    • mankar007
    • ‏2008-06-27T15:02:00Z
    Thanks a lot gkg.

    I will let you the result.
    Once again thanks.

    The file contains code which are satisfying my requirement.

    One last question, is URLs generated by attached file code permanent? I mean to say if i want to send these URLs in mail, can someone open it directly?
  • jwbarnes
    jwbarnes
    3336 Posts

    Re: How to find information about all portal pages?

    ‏2008-06-30T17:35:18Z  
    • mankar007
    • ‏2008-06-30T14:34:08Z
    Once again thanks.

    The file contains code which are satisfying my requirement.

    One last question, is URLs generated by attached file code permanent? I mean to say if i want to send these URLs in mail, can someone open it directly?
    just one note, to avoid some of the recursion in retrieving the portlets you can call the control locator and just get all the controls at once

    LayoutModel lModel = model.getLayoutModel(cPage);
    ControlLocator cLocator = (ControlLocator) lModel.getLocator();
    ListModel allPortlets = cLocator.findAllControls();


    IBM Certified System Administrator -- WebSphere Portal V6.0, V5.1, V5.0
    IBM Certified Solution Developer -- WebSphere Portal V5.1, v6.0

    The postings on this site are my own and do not necessarily represent the positions, strategies, or opinions of IBM