Using a Separate Schema

Content Management API Introduction 9-7 In the Portal Focus Areas section, click Portlet Development, then in the APIs and References section, click PLSQL API Reference.

9.4.7 Naming Objects

When creating page groups and page group objects, you specify a unique internal name for the object p_name. Internal names must: ■ be no more than 60 characters in length. ■ not contain spaces or special characters other than the underscore character _.

9.5 Guidelines for Using the Secure Views

When using the secure views described in this manual, you should follow the best practice guidelines described in the following sections.

9.5.1 Identifying Primary Keys

The primary key for most objects contains the object id, the page group id caid, and the language. When joining between views, always use these columns in the JOIN clause. Example 9–3 shows the JOIN when joining an item to its page. Example 9–3 Joining an Item to Its Page select ... from wwsbr_all_items i, wwsbr_all_folders p where i.folder_id = p.id and i.caid = p.caid and i.language = p.language

9.5.2 Querying Translatable Objects

If an object is translatable that is, it resides in a page group for which translations are enabled and it includes languages in its key, you must observe the following rules: ■ If the object or its current version is translated, a row will exist for the translation. To select the row for the current session language, compare the value of the language column to the function wwctx_api.get_nls_language. ■ If the object is not translated, select the row for the page groups default language. Example 9–4 selects the translated page display name for all pages in a given page group. Example 9–4 Selecting a Translated Page Display Name select p.display_name title from wwsbr_all_folders p where p.caid = 53 and p.language = wwctx_api.get_nls_language -- The current language. or exists -- A row for the page in the page group default language. Note: In this release, there is no supported view of the document table in the repository. A secure view of the document table is planned for a future release.