<commit_before>package gov.nih.nci.cabig.caaers.accesscontrol.query.impl;

import gov.nih.nci.cabig.caaers.domain.UserGroupType;
import gov.nih.nci.cabig.caaers.domain.index.IndexEntry;
import gov.nih.nci.cabig.caaers.security.SecurityUtils;

import java.util.List;

import com.semanticbits.security.contentfilter.IdFetcher;


/**
 * Will return the ID of the studies that a particular user has access to.
 * The rules are
 *
 *Research Staff:
 *  AE Coordinator	Study assignment
 *  Subject Coordinator	Study assignment
 *  Data Coordinator	Study assignment
 *  Central Office Report Reviewer	Study assignment
 *
 *  Study Coordinator	Organization association
 *  Site Coordinator	Organization association
 *
 *
 *Investigator  Study assignment
 *
 * @author <NAME>
 * @author <NAME>
 *
 */
public class CaaersStudyIdFetcherImpl extends AbstractIdFetcher implements IdFetcher {
    /**
     * All the Site scoped roles that require subject indexing
     *
     * @return
     */
    @Override
    public UserGroupType[] getApplicableSiteScopedRoles() {
        return new UserGroupType[0];  //To change body of implemented methods use File | Settings | File Templates.
    }

    /**
     * All the Study scoped roles that require subject indexing
     *
     * @return
     */
    @Override
    public UserGroupType[] getApplicableStudyScopedRoles() {
        return new UserGroupType[0];  //To change body of implemented methods use File | Settings | File Templates.
    }
    
	@Override
	public List fetch(String loginId) {
		List<IndexEntry> resultList = getCaaersSecurityFacade().getAccessibleStudyIds(loginId);
		return resultList;
	}
}<commit_msg>CAAERS-4307<commit_after>package gov.nih.nci.cabig.caaers.accesscontrol.query.impl;

import gov.nih.nci.cabig.caaers.domain.UserGroupType;
import gov.nih.nci.cabig.caaers.domain.index.IndexEntry;
import gov.nih.nci.cabig.caaers.security.SecurityUtils;

import java.util.List;

import com.semanticbits.security.contentfilter.IdFetcher;


/**
 * Will return the ID of the studies that a particular user has access to.
 * The rules are
 *
 *Research Staff:
 *  AE Coordinator	Study assignment
 *  Subject Coordinator	Study assignment
 *  Data Coordinator	Study assignment
 *  Central Office Report Reviewer	Study assignment
 *
 *  Study Coordinator	Organization association
 *  Site Coordinator	Organization association
 *
 *
 *Investigator  Study assignment
 *
 * @author <NAME>
 * @author <NAME>
 *
 */
public class CaaersStudyIdFetcherImpl extends AbstractIdFetcher implements IdFetcher {

    
	@Override
	public List fetch(String loginId) {
		List<IndexEntry> resultList = getCaaersSecurityFacade().getAccessibleStudyIds(loginId);
		return resultList;
	}
}
{'fraction_non_alphanumeric': 0.08364038319823139, 'fraction_numerical': 0.002210759027266028, 'mean_word_length': 4.009225092250922, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3234710', 'n_tokens_mistral': 857, 'n_tokens_neox': 832, 'n_words': 218}