Posts

Showing posts with the label WebCenter Portal

WCP: Get the Page Variants of a Page

I decided to create this blog post based on a quesiton I found on OTN WebCenter Portal Forum . How to retrieve the Page Variants from a given Page Path programatically? Page Variants are created in the same folder of the Page and it uses the following naming convenion: [Source Page Name] +   "_" + [Device Group Name] + "jspx"  Using the following code snippet you can get the Page Variants for the Current Page and then modify it as desired :) public void changeVariantsOfCurrentPage() { // Get Page Service for editing Page Attributes PageService pageService = getEditModePageService(); // Get Current Page Path final String pagePath = (String)ADFContext.getCurrent().getExpressionEvaluator().evaluate("#{pageDocBean.pagePath}"); if ((pagePath != null) && (pagePath.length() > 0)) { // For each possible Device Agent detect if it has a pageVariant List<DeviceGroup> allDeviceGroups = getAllDeviceGroups(); for (DeviceGroup ...

WCC: Folders_g to FrameworkFolders Quick Reference

Planning to migrate from Folders_g to Framework Folders? If so then find here a useful tables about how to migrate you RIDC code to be compatible with Framework Folders. Parameters Mapping   Parameter in Folders_g Parameter in Framework Folders dCollectionPath path dCollectionID fFolderGUID dCollectionName fFolderName dSecurityGroup fSecurityGroup dParentCollectionID fParentGUID xCollectionID parent dCollectionOwner fOwner dCollectionCreator fCreator dCollectionModifier fLastModifier dDocAccount fDocAccount dLinkID fLinkID dLinkName fLinkName dCreateDate fCreateDate dLastModifiedDate fLastModifiedDate todCollectionID destination todCollectionPath destination toContentName fFileName xClbraUserList fClbraUserList xClbraRoleLis...