get_provider function

Contained in package wwpro_api_provider_registry.

Call this function to search for a provider in Oracle Portal and, if found, return a node_provider record. This API is similar to the find_provider function, but raises an exception if no provider is found. The find_provider function does not raise an exception if no provider is found.

function get_provider

(

p_id in integer,

p_language in varchar2 default null

)

return node_provider_record;

Any user can execute this function.

Version: Oracle Portal 3.0.6.6.5 or later

Parameters:

p_id

A unique identifier for the portlet provider, allocated by Oracle Portal.

Note: A null value is not permitted.

Datatype: in integer

p_language

A constant that specifies the language for the returned translatable strings.

Datatype: in varchar2
Default: null

Returns:

This function returns a node_provider_record.

Exception:

If the node_provider_record is not found, PROVIDER_NOT_FOUND_EXCEPTION is raised.

Example:

l_provider wwpro_api_provider_registry.node_provider_record;

l_provider := wwpro_api_provider_registry.get_provider

(

p_id => 20,
p_language => wwnls_api.AMERICAN

);

Related topics

The PL/SQL API Reference is part of the Portal Developer Kit on Portal Studio