list = getProfiles(groupData);
}
break;
case QueryLocator.QUERY_ROLE:
roleData = new JetspeedRoleProfilePeer().selectOrdered(locator, dbCon);
if (roleData != null)
{
list = getProfiles(roleData);
}
break;
default: //QUERY_ALL
userData = new JetspeedUserProfilePeer().selectOrdered(locator, dbCon);
if (userData != null)
{
list.addAll(getProfiles(userData));
}
groupData = new JetspeedGroupProfilePeer().selectOrdered(locator, dbCon);
if (groupData != null)
{
list.addAll(getProfiles(groupData));
}
roleData = new JetspeedRoleProfilePeer().selectOrdered(locator, dbCon);
if (roleData != null)
{
list.addAll(getProfiles(roleData));
}