beginTransaction(db);
Iterator allRolesIterator = allRoles.iterator();
while(allRolesIterator.hasNext())
{
InfoGlueRole role = (InfoGlueRole)allRolesIterator.next();
boolean hasAccess = AccessRightController.getController().getIsPrincipalAuthorized(db, infoGluePrincipal, interceptionPointName, "" + role.getName());
if(hasAccess)
availableRoles.add(role);
}
commitTransaction(db);
}
catch (Exception e)
{
rollbackTransaction(db);
throw new SystemException(e);
}
}
else
{
Iterator allRolesIterator = allRoles.iterator();
while(allRolesIterator.hasNext())
{
InfoGlueRole role = (InfoGlueRole)allRolesIterator.next();
boolean hasAccess = AccessRightController.getController().getIsPrincipalAuthorized(this.transactionObject, infoGluePrincipal, interceptionPointName, "" + role.getName());
if(hasAccess)
availableRoles.add(role);
}
}