}
protected List<UserDetails> findContentOperators() throws ApsSystemException {
IAuthorizationManager authManager = this.getAuthorizationManager();
IUserManager userManager = this.getUserManager();
IUserProfileManager profileManager = this.getProfileManager();
List<UserDetails> systemUsers = userManager.getUsers();
List<UserDetails> allowedUsers = new ArrayList<UserDetails>();
for (UserDetails user : systemUsers){
user.addAutorities(this.getRoleManager().getAuthorizationsByUser(user));
if (authManager.isAuthOnPermission(user, Permission.SUPERVISOR) || authManager.isAuthOnPermission(user, "editContents")) {
try {
AbstractUser userDetails = (AbstractUser) user;
IUserProfile profile = profileManager.getProfile(userDetails.getUsername());
userDetails.setProfile(profile);
} catch (Throwable t) {
ApsSystemUtils.logThrowable(t, this, "findContentOperators", "Error searching profile for user " + user.getUsername());
}
user.addAutorities(this.getGroupManager().getAuthorizationsByUser(user));