Click Close to return to the page.

Using the Content Management Event Framework 16-13

16.3.7 Oracle Portal Actions and CMEF Events

This section describes some of the most common portal actions and shows how to include code in your subscriber to detect these actions. These actions may occur through the Oracle Portal user interface, the Oracle Portal PLSQL APIs, or WebDAV. For a more detailed list of portal actions and the events and message payloads that they generate, refer to Appendix G, Content Management Event Framework Events .

16.3.7.1 Page and Page Group Actions

In Oracle Portal, a portal is a collection of one or more page groups. A page group is a hierarchical collection of pages for which common attributes and mechanisms can be established.

16.3.7.1.1 Creating a Page Creating a page produces the following CMEF message

payload: The first message is for the page itself, and the second is for the portlet instance that displays the default navigation page on the page. If you want your subscriber to respond to the creation of a page, perform the following check: if message.object_class = PAGE and message.raw_event = wwsbr_event_q_access.EVENT_INSERT then . . . end if; SITE_ID1 OVERLOADED NUMBER For item types, the ID of the page group to which the item type belongs. For pages, the ID of the page group to which the page type belongs. For item and page types, the ID of the page group to which the base type belongs. GROUP_ID NUMBER When multiple messages are associated with a particular event, related messages have the same group ID. OBJECT PATH VARCHAR24000 A unique path to the portal object being referenced by this message on the queue this can be NULL. It is used only for pages, items, categories, perspectives, item types, and page types. OBJECT UID VARCHAR24000 A unique immutable identifier to the portal object being referenced by this message. It is used only for pages, items, categories, perspectives, item types, and page types. Action Event State Object Class ADD_PAGE INSERT PUBLISHED PAGE ADD_ITEM INSERT PUBLISHED ITEM Table 16–2 Cont. CMEF Message Payload Properties Message Property Type Description 16-14 Oracle Fusion Middleware Developers Guide for Oracle Portal

16.3.7.1.2 Updating the Access Control List of a Page Changing the ACL of a page so that

it does not inherit from that of its page group, then clicking Apply or OK produces the following message payload: Now, adding a user to the ACL of a page, then clicking Add produces the following message payload: Changing the ACL of a page so that it does not inherit from that of its page group, immediately adding a user or group to the ACL, and then clicking Apply or OK produces the following message payload: Changing the ACL of a page so that it inherits that of the page group then clicking Apply or OK produces the following message payload: Clicking Apply or OK on the Page Properties page, produces an additional message:

16.3.7.1.3 Updating the Access Control List of a Page Group Updating the access control list

ACL of a page group by adding a user or group, or deleting a user or group produces the following message payload: If you want your subscriber to respond to general ACL updates on a page group, perform the following check: Action Event State Object Class SPECIFY_PAGE_ACL UPDATE GENERAL PAGE Action Event State Object Class ADD_PAGE_ACL UPDATE GENERAL PAGE Action Event State Object Class SPECIFY_AND_ ADD_PAGE_ACL UPDATE GENERAL PAGE Action Event State Object Class INHERIT_PAGE_ ACL UPDATE GENERAL PAGE Action Event State Object Class UPDATE_PAGE_ACL UPDATE GENERAL PAGE Action Event State Object Class ADD_PAGEGROUP_ ACL or DELETE_PAGE_ GROUP_ACL UPDATE GENERAL PAGE_GROUP UPDATE_PAGE_ GROUP_ACL UPDATE GENERAL PAGE_GROUP