Setting the Session Language Modifying an Existing Translation Creating a Translation for an Item

Creating Multi-Lingual Content 14-5 For a more detailed discussion of the effect of item versioning on translations, refer to Section 20.3 Creating Translatable Content in the Oracle Fusion Middleware Users Guide for Oracle Portal. 14-6 Oracle Fusion Middleware Developers Guide for Oracle Portal 15 Implementing Content Security 15-1 15 Implementing Content Security This chapter describes how to use the APIs provided with Oracle Portal to ensure that your content is secure. It contains the following sections: ■ Section 15.1, Retrieving Object Privileges ■ Section 15.2, Setting Page Level Privileges ■ Section 15.3, Setting Item Level Privileges For more information about any of these APIs, refer to the Oracle Portal PLSQL API Reference on Portal Center: http:portalcenter.oracle.com In the Portal Focus Areas section, click Portlet Development, then in the APIs and References section, click PLSQL API Reference.

15.1 Retrieving Object Privileges

To retrieve a list of privileges that are currently defined for an object, use the wwsec_ api.grantee_list API. Example 15–1 prints the values of the grantee array for a page with an ID of 17623 in page group with an ID of 33. Example 15–2 prints the values of the grantee array for an item with a master ID of 32919 in a page group with an ID of 53. Example 15–1 Retrieving the List of Privileges for a Page grantee_list API declare l_grantees wwsec_api.grantee_array; l_object_type_name varchar25 := wwsec_api.PAGE_OBJ; l_name varchar260 := 3317623; begin -- Call the function. l_grantees := wwsec_api.grantee_list p_object_type_name = l_object_type_name, p_name = l_name ; -- Output the results if l_grantees is not null then if l_grantees.count 0 then for i in l_grantees.first..l_grantees.last loop if l_grantees.existsi then Tip: Remember, if you are calling the APIs from a Web provider or external application, you need to set the session context first. For more information, refer to Section 10.1, Setting the Session Context .