if(hasAccess != null)
{
if(accessRight == null)
{
InterceptionPoint interceptionPoint = InterceptionPointController.getController().getInterceptionPointWithId(new Integer(interceptionPointIdString), db);
accessRight = create(accessRightVO, interceptionPoint, db);
}
AccessRightRoleVO accessRightRoleVO = new AccessRightRoleVO();
accessRightRoleVO.setRoleName(roleName);
AccessRightRole accessRightRole = createAccessRightRole(db, accessRightRoleVO, accessRight);
accessRight.getRoles().add(accessRightRole);
accessRights++;
}
roleIndex++;
roleName = request.getParameter(interceptionPointIdString + "_" + roleIndex + "_roleName");
}
int groupIndex = 0;
String groupName = request.getParameter(interceptionPointIdString + "_" + groupIndex + "_groupName");
while(groupName != null)
{
logger.info("groupName:" + groupName);
if(accessRight == null)
{
InterceptionPoint interceptionPoint = InterceptionPointController.getController().getInterceptionPointWithId(new Integer(interceptionPointIdString), db);
//logger.info("Creating access for:" + interceptionPoint.getName() + "_" + parameters);
accessRight = create(accessRightVO, interceptionPoint, db);
}
AccessRightGroupVO accessRightGroupVO = new AccessRightGroupVO();