try {
List<String> usernamesForAllContents = ((IEntityManager) this.getProfileManager()).searchId(filters);
usernames.addAll(usernamesForAllContents);
} catch (Throwable t) {
ApsSystemUtils.logThrowable(t, this, "extractUsernames");
throw new ApsSystemException("Error searching for usernames on profile's attribute " + allContentsAttribute, t);
}
}
Iterator<Object> subscriptionsIter = config.getSubscriptions().values().iterator();
while (subscriptionsIter.hasNext()) {
String boolAttributeName = (String) subscriptionsIter.next();
if (null != boolAttributeName && boolAttributeName.trim().length() > 0) {
EntitySearchFilter filter = new EntitySearchFilter(boolAttributeName, true, new Boolean(true), false);
EntitySearchFilter[] filters = {filter};
try {
List<String> usernamesForCategory = ((IEntityManager) this.getProfileManager()).searchId(filters);
usernames.addAll(usernamesForCategory);
} catch (Throwable t) {
ApsSystemUtils.logThrowable(t, this, "extractUsernames");
throw new ApsSystemException("Error searching for usernames on profile's attribute " + boolAttributeName, t);
}
}
}
return usernames;
}