Obtaining roles from desktop

Hi,

In my project there is a need to obtain all roles entiltled to any desktop.

There are 100s desktops created in the portal and I need to know roles of a specific desktop.I did not find any method of any class in the portal API.

Please help me to findout correct class/api. Thanks in advance.

Nitin

[332 byte] By [nitin.softplusa] at [2007-10-2 6:31:45]
# 1

com.bea.p13n.security.management.rolemapper.RoleManagerProxy

contains a method to findout roles from any resource. But I dont know how to get resource Id of any Desktop this is the problem with me.

public String[] listRolesForResource(String resourceId)Lists all role names for this provider associated with the given resource id.

Parameters:

resourceId - the resource the role is scoped to

Returns:

String array of role names

nitin.softplusa at 2007-7-16 13:33:44 > top of Java-index,Other Topics,Patterns & OO Design...