Oracle9iAS Portal Developer Kit

get_defaultgroup function

Contained in package wwsec_api.

Call this function to return the default group for the specified user. It returns null if no default group is stored for the specified user.

Note: The default group is the group that the preference system uses if no user-level preferences are specified for a given setting.

function get_defaultgroup

(

p_username in varchar2 default wwctx_api.get_user

)

return number;

Version: Oracle Portal 3.0.6.6.5 or later

Parameters:

p_username

The name of the user whose default group is being requested.

Datatype: in varchar2
Default: wwctx_api.get_user

Returns:

This function returns the default group ID for the specified user, or null if no default group is stored.

Exceptions:

  • If a problem occurs for which an exception has not been defined, an UNEXPECTED_EXCEPTION is raised.

Example:

l_defaultgroupid number;

l_defaultgroupid := wwsec_api.get_defaultgroup

(

p_user_name => 'USER1'

);

Note

If no user preferences are specified, the default group returned is used by the preference store logic to display group preferences .

Related topics

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