create or replace package wmp_api_secure as function user_can_assume_role(p_role_name in varchar2) return number; function user_can_access_repository(p_repository_id in number) return number; function user_can_access_portlet(p_portlet_name in varchar2) return number; function user_is_administrator return number; /* return nagative number if the user name is not exist */ function get_user_id(p_user_name in varchar2 ,p_user_guid in varchar2 := null) return number; /* return negative number if the group name is not exist */ function get_group_id(p_group_name in varchar2, p_user_guid in varchar2 := null) return number; end wmp_api_secure;