Pages

Wednesday, October 16, 2013

Webcenter Portal Page Creation with Page Service API

In this example i am going to create a webcenter portal page using Page Service API.

If you want to create new page in Webcenter portal, Oracle is providing a standard way by using "Page - Create Page" Task flow.



Go to Resource Palette -> Webcenter Portal - Service Catalog -> Task Flows ->  Page - Create Page.

Drag this Task flow to the page and provide the taskflow parameters. 

This will give you a standard dialog box, But user don't have any control to modify this.



But, if we create a page using a webcenter portal page service api we can simplify this dialog.

By using this method we can create new pages in the webcenter portal.
page = pageService.createHierarchyPage(parentPagePath, pageNameFormat, pageTitle,pageStyle, pageTemplate, null);
 
You can download the sample code from this link : CustomePageThroughAPI

One main change is we need to provide the hierarchical permissions to the authenticated role.


You can find the sample application Screen shots.






You can view the same page form the Administrator screen.

1 comments:

  1. Nice and good article. It is very useful for me to learn and understand easily. Thanks for sharing your valuable information and time. Please keep updating mulesoft Online Training

    ReplyDelete