Checking Items Out and In

Performing Simple Content Management Tasks 11-15 p_parent_id = 10000 ; -- Process cache invalidation messages. wwpro_api_invalidation.execute_cache_invalidation; exception ... end; ■ p_id is the ID of the page that you want to move. ■ p_siteid is the ID of the page group to which the page belongs. ■ p_parent_id is the ID of the page under which you want to move the page.

11.3.3 Moving Categories and Perspectives

You can, if necessary, move categories and perspectives around within a page group. You cannot move a category or perspective to a different page group. To move a category or perspective, a user must have Manage Classifications privileges or higher on the owning page group. To move a category, use the move_category API, as shown in Example 11–8 . Example 11–8 Moving a Category move_category API begin wwsbr_api.move_category p_src_id = 2000, p_dest_id = 3000, p_siteid = 33 ; exception ... end; To move a perspective, use the move_perspective API, as shown in Example 11–9 . Example 11–9 Moving a Perspective move_perspective API begin wwsbr_api.move_perspective p_src_id = 2000, p_dest_id = 3000, p_siteid = 33 ; exception ... end; ■ p_src_id is the ID of the category or perspective that you want to move. ■ p_dest_id is the ID of the category or perspective under which you want to move the category or perspective. ■ p_siteid is the ID of the page group to which the category or perspective belongs. 11-16 Oracle Fusion Middleware Developers Guide for Oracle Portal

11.4 Copying Content

If you want to add content that is the same as, or similar to, some content that already exists, instead of creating it all over again, you can copy the existing content. This section contains the following examples: ■ Section 11.4.1, Copying Items ■ Section 11.4.2, Copying Pages

11.4.1 Copying Items

You can use the copy_item API to copy an item to a different page in the same page group or to a page in a different page group. To copy an item to a different page group, the item must not be any of the following: ■ based on a local item type ■ associated with a local category ■ associated with any local perspectives Copying an item preserves the items metadata. Example 11–10 copies an item to a page in a different page group: Example 11–10 Creating a Copy of an Item in a Different Page Group copy_item API begin wwsbr_api.copy_item p_caid = 33, p_master_item_id = 12345, p_dest_caid = 53, p_dest_page_id = 1, p_dest_region_id = 5 ; -- Process cache invalidation messages. wwpro_api_invalidation.execute_cache_invalidation; exception ... end; ■ p_caid is the ID of the page group to which the item currently belongs. ■ p_master_item_id is the master ID of the item that you want to copy. ■ p_dest_caid is the ID of the page group to which you want to copy the item. ■ p_dest_page_id is the ID of the page to which you want to copy the item. ■ p_dest_region_id is the ID of the item region of the page in which you want to copy the item. If you do not specify a region ID, the item is copied to the pages default item region, which may not be desirable.

11.4.2 Copying Pages

You can use the copy_folder API to copy a page within the same page group. You cannot copy a page to a different page group. To copy a page, users must have View privileges on the page being copied and Manage privileges on the page under which the page is being copied.