Menu role objects exist on Menu Modules and Menu Items. They can be accessed
using a 1-based index list using the following API calls in the MenuModule
and MenuItem
classes:
public int getRoleCount()
retrieves the role count number
property (JdapiTypes.ROLE_COUNT_PID
) public java.lang.String getRole(int index)
retrieves the
name of a role from a menu module's or menu item's list of rolespublic void addRole(int index, java.lang.String role)
adds
a role to the list of roles for a menu module or menu itempublic void removeRole(int index)
removes a role from
the list of roles for a menu module or menu item