Finding an Item ID

11 Performing Simple Content Management Tasks 11-1 11 Performing Simple Content Management Tasks This chapter describes how to use the APIs provided with Oracle Portal to perform simple content management tasks. It contains the following sections: ■ Section 11.1, Editing Page Properties ■ Section 11.2, Editing Content ■ Section 11.3, Reorganizing Content ■ Section 11.4, Copying Content ■ Section 11.5, Deleting Content For more information about any of the APIs mentioned in this chapter, 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.

11.1 Editing Page Properties

If you want to edit page properties, you need to perform the following steps: 1. Query the WWSBR_USER_PAGES view to populate a page record. 2. Modify the properties you want to update. 3. Pass the updated page record to the modify_folder API. You can update the properties shown in Table 11–1 in the page record. 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 . Table 11–1 Editable Page Record Properties Property Data Type Description NAME VARCHAR260 Name of the page. This name is used in path based URLs. TITLE VARCHAR256 Display name, or title, of the page. 11-2 Oracle Fusion Middleware Developers Guide for Oracle Portal SETTINGSSETID NUMBER ID of the style used by the page. SETTINGSSETSITEID NUMBER Page group ID of the style used by the page. ISPUBLIC NUMBER1 Indicates that the page is viewable by public users. Valid values: ■ 0 - not public ■ 1 - is public IMAGE VARCHAR2350 Unique document name of the image associated with the page, for example 6001.JPG. ROLLOVERIMAGE VARCHAR2350 Unique document name of the rollover image associated with the page, or the inactive tab image for the tab, for example 6001.JPG. TITLEIMAGE VARCHAR2350 Unique document name of the active tab image for the tab, for example 6001.JPG. LEADER VARCHAR2256 E-mail address of the page contact. DESCRIPTION VARCHAR22000 Description of the page. CREATEDATE DATE Date the page was created. CREATOR VARCHAR2256 User name of the person who created the page. HAVEITEMSECURITY NUMBER1 Indicates that item level security is enabled for the page. Valid values: ■ 0 - ILS disabled ■ 1 - ILS enabled ITEMVERSIONING VARCHAR230 Indicates the level of item versioning for the page. Valid values: ■ versionnone - no versioning ■ versionsimple - simple versioning ■ versionaudit - audit versioning TOPICID NUMBER ID of the category assigned to the page. TOPIC_SITEID NUMBER Page group ID of the category assigned to the page. Table 11–1 Cont. Editable Page Record Properties Property Data Type Description Performing Simple Content Management Tasks 11-3 VALUE VARCHAR22000 For PLSQL pages, the PLSQL code. For JSP pages, the JSP source document name. Do not change this value for JSP pages. IS_PORTLET NUMBER1 Indicates if the page is published as a portlet. Valid values: ■ 0 - not a portlet ■ 1 - is a portlet PLSQL_EXECUTOR VARCHAR230 For PLSQL type pages, the database schema used to execute the PLSQL code. Valid values: ■ PUBLIC ■ CREATOR ■ database user name KEYWORDS VARCHAR22000 Keywords for the page. IS_READY NUMBER1 Indicates that page creation is complete. Valid values: ■ 1 - page creation is complete INHERIT_PRIV VARCHAR2200 The page from which this page inherits its privileges. Use the following format: page group idpage id CACHE_MODE NUMBER1 Caching mode for the page. Valid values: ■ 2 - no caching ■ 1 - cache page definition only ■ 0 - cache page definition and content for x minutes ■ 4 - cache page definition only at system level ■ 3 - cache page definition and content at system level for x minutes CACHE_EXPIRES NUMBER38 Cache period in minutes. ALLOW_PAGE_STYLE NUMBER1 For templates, indicates if pages can use a different style. Valid values: ■ 1 - allow pages to use different style. Table 11–1 Cont. Editable Page Record Properties Property Data Type Description 11-4 Oracle Fusion Middleware Developers Guide for Oracle Portal ALLOW_PAGE_ACL NUMBER For templates, indicates if pages have different access settings. Valid values: ■ 1 - allow pages to have different access settings INIT_JSPFILE VARCHAR2256 For JSP pages, initial JSP file if the JSP source of the page is a JAR or WAR file. UI_TEMPLATE_ID NUMBER38 ID of HTML page skin. TEMPLATE_ISPUBLIC NUMBER1 Indicates if the template is ready to use. Valid values: ■ 1 - template is ready to use CONTAINER_ID NUMBER ID of the container page. DEFAULT_ITEM_REGION_ ID NUMBER ID of the default item region for the page. DEFAULT_PORTLET_ REGION_ID NUMBER ID of the default portlet region for the page. ITEMTYPE_INHERIT_FLAGS NUMBER1 For WebDAV, indicates if default item types are inherited from parent page. Valid values: ■ 7 - inherit all item types from parent page ■ 0 - specify all types on this page REGFILE_ITEMTYPE RAW32 For WebDAV, GUID of default item type for regular files. ZIPFILE_ITEMTYPE RAW32 For WebDAV, GUID of default item type for zip files. IMAGEFILE_ITEMTYPE RAW32 For WebDAV, GUID of default item type for image files. DISPLAYINPARENT NUMBER1 Indicates if the page is displayed in its parent pages sub page region. Valid values: ■ 1 - display page in parents sub page region SEQ NUMBER The sequence order of the page in its parent pages sub page region. ALPHABETICAL_SORT NUMBER1 Indicates that sub pages are displayed in alphabetical order. Valid values: ■ 1 - display sub pages in alphabetical order ITEM_PAGE_ID NUMBER38 ID of the item template. Table 11–1 Cont. Editable Page Record Properties Property Data Type Description