Template Page Service Type Subjects Notified

3-6 Oracle Fusion Middleware Services Reference Guide for Oracle Universal Content Management ■ 40: Scriptable and admin permission required ■ 49: Scriptable and global, read permission required ■ 50: Scriptable, global, write permission required ■ 51: Scriptable, global, readwrite permission required ■ 56: Scriptable, global, admin permission required In the example of the DELETE_DOC service, the access level is 4, meaning that the user must have DELETE_PRIVILEGE to execute the service: DocService 4 MSG_PAGE null documents csUnableToDeleteItemdDocName As another example, the access level for the ADD_ALIAS service is 24, meaning that the user must have ADMIN_PRIVILEGE and GLOBAL_PRIVILEGE to execute the service: ADD_ALIAS UserService 24 null null aliases csUnableToAddAlias For details about user accounts and roles permissions see the Oracle Fusion Middleware System Administrators Guide for Oracle Content Server.

3.1.2.3 Template Page

The template page attribute specifies the template that displays the results of the service. If the results of the service do not require presentation such as the PageHandlerService type, this attribute is null. Templates are a combination of HTML and IdocScript. The IdocScript is used to format the HTML and display the data in the response. The template page name is mapped to an HTM file in the IdcHomeDircomponentsFoldersresourcestemplatestemplates.hda file: ■ Most template pages are mapped in the IntradocTemplates ResultSet. ■ Search template pages are mapped in the SearchResultTemplates ResultSet. In the example of the DELETE_DOC service, the template page that presents the results of the service is MSG_PAGE, which is mapped to the msg_page.htm file: DocService 4 MSG_PAGE null documents csUnableToDeleteItemdDocName

3.1.2.4 Service Type

The service type attribute specifies if the service is to be executed as a SubService inside another service. You cannot call a second service from a main service unless the second service is a SubService. For example, the UPDATE_DOCINFO service executes the UPDATE_DOCINFO_SUB, which has the service type of SubService. In the example of the DELETE_DOC service, the service is not a subservice, so the service type is null: DocService 4 MSG_PAGE null documents csUnableToDeleteItemdDocName Service Type Description SubService The service is a subservice that is executed only inside another service. null The service is not a subservice. Customizing Services 3-7

3.1.2.5 Subjects Notified

The subjects notified attribute specifies the subjects subsystems to be notified by the service. If a service changes one or more subjects, it must notify the remote sources such as database tables that cached information has been updated. For example, if you do an IsJava=1 call for any service, you will always see changedSubjects and refreshSubjects in the response. These subjects are used to notify the client when the state of the Oracle Content Server instance has changed. For example, they notify the client when a new user is added to the system, when a new document has been checked in, when custom metadata has been changed, and so on. This allows external applications to refresh their data when the Oracle Content Server state changes. It is also the underlying mechanism behind keeping the Oracle Content Server administration applets up-to-date with the number of users, document types, and documents in the system. For example, if you launch the Repository Manager and then check in a new document, you will in a few seconds see that item appear in the applet. The subjects notified string is a comma-delimited list of changed subjects. If no subjects are notified, this attribute is null. For example, the value of the subjects notified attribute for the EDIT_METADEF service is metadata,dynamicqueries. This service modifies a metadata field, and subsequently informs the system that the metadata and dynamicqueries subjects have changed. Possible subjects are: Subject Must be notified of changes to: accounts Predefined accounts aliases User aliases collections Archiver collections config Global configuration information docformats File formats doctypes Content Types documents New content items, revised content items, or updated content item metadata dynamicqueries Dynamic queries that retrieve the list of metadata fields from the database indexerstatus Indexer status indexerwork Content items; specifies that an indexing update cycle is required metadata Metadata fields metaoptlists Metadata field option lists pagelist Library Web Layout Editor pages renditions Additional renditions from XML Converter, Thumbnails, and so forth reports Report data sources schema Schema definitions searchapi Connection to the indexing search engine subscriptiontypes Subscription types 3-8 Oracle Fusion Middleware Services Reference Guide for Oracle Universal Content Management In the example of the DELETE_DOC service, the documents subject is the only subject notified: DocService 4 MSG_PAGE null documents csUnableToDeleteItemdDocName

3.1.2.6 Error Message