* @exception InsufficientPrivilegeException when the requestor is denied due to insufficient privilege
*/
public Iterator getPermissions(String rolename)
throws JetspeedSecurityException
{
Role role = null;
try
{
if (cachingEnable)
{
Iterator iterator = JetspeedSecurityCache.getPermissions(rolename);
if (iterator != null)
{
return iterator;
}
}
role = JetspeedSecurity.getRole(rolename);
}
catch(JetspeedSecurityException e)
{
logger.error( "Failed to Retrieve Role: ", e );
throw new PermissionException("Failed to Retrieve Role: ", e);
}
Criteria criteria = new Criteria();
criteria.add(TurbineRolePermissionPeer.ROLE_ID, role.getId());
List rels;
HashMap perms;
try
{