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