package com.kaviju.accesscontrol.model;

import org.apache.log4j.Logger;

@SuppressWarnings("serial")
public class KAAccessListItem extends com.kaviju.accesscontrol.model.base._KAAccessListItem {
	@SuppressWarnings("unused")
	private static Logger log = Logger.getLogger(KAAccessListItem.class);
}

package com.kaviju.accesscontrol.model;

import org.apache.log4j.Logger;

import com.webobjects.foundation.NSArray;

@SuppressWarnings("serial")
public class KAAccessListItem extends com.kaviju.accesscontrol.model.base._KAAccessListItem {
	@SuppressWarnings("unused")
	private static Logger log = Logger.getLogger(KAAccessListItem.class);
	
	public NSArray<? extends KAUserProfile>fetchUserProfileWithItemForRole(String roleCode) {
		KARole role = KARole.roleWithCode(editingContext(), roleCode);
		
		NSArray<KAUserProfileRole> userProfileRoles = KAUserProfileRole.fetchKAUserProfileRoles(editingContext(), KAUserProfileRole.ROLE.eq(role), null);
		userProfileRoles = KAUserProfileRole.LIST_ITEMS.containsObject(this).filtered(userProfileRoles);
		
		return KAUserProfileRole.USER_PROFILE.arrayValueInObject(userProfileRoles);
	}
}

Add a way to get all the users with a specific role.