<commit_before><?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
	xmlns:aop="http://www.springframework.org/schema/aop"
	xmlns:util="http://www.springframework.org/schema/util"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.0.xsd
http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.0.xsd">


	<util:map id="taskObjectPrivilegeMap">
        <!--========== TASK PAGE ===========-->
        <entry key="/pages/task"
               value="gov.nih.nci.cabig.caaers.Task:ACCESS"/>


        <!--========== PARTICIPANT ===========-->
		<entry key="/pages/participant/create"
			value="gov.nih.nci.cabig.caaers.domain.Participant:CREATE" />
		<entry key="/pages/participant/edit"
			value="gov.nih.nci.cabig.caaers.domain.Participant:UPDATE" />		
		<entry key="/pages/participant/view"
			value="gov.nih.nci.cabig.caaers.domain.Participant:READ" />
		<entry key="/pages/participant/assign"
			value="gov.nih.nci.cabig.caaers.domain.Participant:UPDATE" />
		<entry key="/pages/participant/assignStudy"
			value="gov.nih.nci.cabig.caaers.domain.Participant:UPDATE" />
		<entry key="/pages/participant/assignParticipant"
			value="gov.nih.nci.cabig.caaers.domain.Participant:READ" />
		<entry key="/pages/participant/search" 
			value="gov.nih.nci.cabig.caaers.domain.Participant:READ"/>

		<!--========== STUDY ===========-->
		<entry key="/pages/study/create"
			value="gov.nih.nci.cabig.caaers.domain.Study:CREATE" />
		<entry key="/pages/study/view"
			value="gov.nih.nci.cabig.caaers.domain.Study:READ" />
		<entry key="/pages/study/search"
			value="gov.nih.nci.cabig.caaers.domain.Study:READ" />
		<entry key="/pages/study/edit"
			value="gov.nih.nci.cabig.caaers.domain.Study:UPDATE" />

		<!--========== ADVERSE EVENT REPORT ===========-->
		<entry key="/pages/ae/create"
			value="gov.nih.nci.cabig.caaers.domain.ExpeditedAdverseEventReport:CREATE" />
		<entry key="/pages/ae/createRoutine"
			value="gov.nih.nci.cabig.caaers.domain.ExpeditedAdverseEventReport:CREATE" />
		<entry key="/pages/ae/captureRoutine"
			value="gov.nih.nci.cabig.caaers.domain.ExpeditedAdverseEventReport:CREATE" />

		<entry key="/pages/ae/reviewResolver"
			value="gov.nih.nci.cabig.caaers.domain.ExpeditedAdverseEventReport:ACCESS" />
		<entry key="/pages/ae/reviewEvaluationPeriod"
			value="gov.nih.nci.cabig.caaers.domain.ExpeditedAdverseEventReport:ACCESS" />
		<entry key="/pages/ae/reviewAeReport"
			value="gov.nih.nci.cabig.caaers.domain.ExpeditedAdverseEventReport:ACCESS" />
		<entry key="/pages/ae/submitReport"
			value="gov.nih.nci.cabig.caaers.domain.ExpeditedAdverseEventReport:READ" />	
		<entry key="/pages/ae/createReportingPeriod"
			value="gov.nih.nci.cabig.caaers.domain.ExpeditedAdverseEventReport:CREATE" />
		<entry key="/pages/ae/createAeReportingPeriod"
			value="gov.nih.nci.cabig.caaers.domain.ExpeditedAdverseEventReport:CREATE" />	
		<entry key="/pages/ae/edit"
			value="gov.nih.nci.cabig.caaers.domain.ExpeditedAdverseEventReport:UPDATE" />
		<entry key="/pages/ae/editRoutine"
			value="gov.nih.nci.cabig.caaers.domain.ExpeditedAdverseEventReport:UPDATE" />
		<entry key="/pages/ae/list"
			value="gov.nih.nci.cabig.caaers.domain.ExpeditedAdverseEventReport:READ" />
		<entry key="/pages/ae/routingAndReview"
			value="gov.nih.nci.cabig.caaers.domain.ExpeditedAdverseEventReport:ACCESS" />
		<entry key="/pages/ae/generateExpeditedfPdf"
			value="gov.nih.nci.cabig.caaers.domain.ExpeditedAdverseEventReport:ACCESS" />

		<!--========== TODO: REPORT ===========-->

		<!--========== TODO: ADMIN ===========-->
		
        <entry key="/pages/admin/reload" value="gov.nih.nci.cabig.caaers.Admin:ACCESS"/>
        <entry key="/pages/admin/configure" value="gov.nih.nci.cabig.caaers.Admin:ACCESS"/>
        <entry key="/pages/admin/configure" value="gov.nih.nci.cabig.caaers.Admin:ACCESS"/>
        <entry key="/pages/admin/createInvestigator" value="gov.nih.nci.cabig.caaers.Admin:ACCESS"/>
        <entry key="/pages/admin/searchInvestigator" value="gov.nih.nci.cabig.caaers.Admin:ACCESS"/>
        <entry key="/pages/admin/viewInvestigator" value="gov.nih.nci.cabig.caaers.Admin:ACCESS"/>
        <entry key="/pages/admin/createResearchStaff" value="gov.nih.nci.cabig.caaers.Admin:ACCESS"/>
        <entry key="/pages/admin/searchResearchStaff" value="gov.nih.nci.cabig.caaers.Admin:ACCESS"/>
        <entry key="/pages/admin/viewResearchStaff" value="gov.nih.nci.cabig.caaers.Admin:ACCESS"/>
        <entry key="/pages/admin/import" value="gov.nih.nci.cabig.caaers.Admin:ACCESS"/>
        <entry key="/pages/admin/importMeddra" value="gov.nih.nci.cabig.caaers.Admin:ACCESS"/>
        <entry key="/pages/admin/createIND" value="gov.nih.nci.cabig.caaers.Admin:ACCESS"/>
        <entry key="/pages/admin/createOrganization" value="gov.nih.nci.cabig.caaers.Admin:ACCESS"/>
        <entry key="/pages/admin/searchIND" value="gov.nih.nci.cabig.caaers.Admin:ACCESS"/>
        <entry key="/pages/admin/passwordPolicyConfigure" value="gov.nih.nci.cabig.caaers.Admin:ACCESS"/>
        <entry key="/pages/admin/mandatoryFields" value="gov.nih.nci.cabig.caaers.Admin:ACCESS"/>
        <entry key="/pages/admin/trackReports" value="gov.nih.nci.cabig.caaers.Admin:ACCESS"/>               
        <entry key="/pages/admin/asaelSearch" value="gov.nih.nci.cabig.caaers.Admin:ACCESS"/>
        <entry key="/pages/admin/asaelCreate" value="gov.nih.nci.cabig.caaers.Admin:ACCESS"/>
        <entry key="/pages/admin/asaelEdit" value="gov.nih.nci.cabig.caaers.Admin:ACCESS"/>
        <entry key="/pages/admin/asaelImport" value="gov.nih.nci.cabig.caaers.Admin:ACCESS"/>

        <!--========= RULES ========-->
		<entry key="/pages/rule/create" value="gov.nih.nci.cabig.caaers.domain.Rule:CREATE"/>
		<entry key="/pages/rule/list" value="gov.nih.nci.cabig.caaers.domain.Rule:READ"/>
		<entry key="/pages/rule/addRule" value="gov.nih.nci.cabig.caaers.domain.Rule:CREATE"/>
		<entry key="/pages/rule/addColumn" value="gov.nih.nci.cabig.caaers.domain.Rule:CREATE"/>
		<entry key="/pages/rule/notification/create" value="gov.nih.nci.cabig.caaers.domain.Rule:CREATE"/>
		<entry key="/pages/rule/notification/list" value="gov.nih.nci.cabig.caaers.domain.Rule:CREATE"/>
		<entry key="/pages/rule/deploy" value="gov.nih.nci.cabig.caaers.domain.Rule:CREATE"/>
		<entry key="/pages/rule/export" value="gov.nih.nci.cabig.caaers.domain.Rule:CREATE"/>
		<entry key="/pages/rule/import" value="gov.nih.nci.cabig.caaers.domain.Rule:CREATE"/>
		<entry key="/pages/rule/notification/import" value="gov.nih.nci.cabig.caaers.domain.Rule:CREATE"/>
		
		<!--========= SEARCH ========-->
		<entry key="/pages/search/report" value="gov.nih.nci.cabig.caaers.domain.ExpeditedAdverseEventReport:READ"/>
		<entry key="/pages/search/advancedSearch" value="gov.nih.nci.cabig.caaers.domain.ExpeditedAdverseEventReport:READ"/>
		<entry key="/pages/search/listSearch" value="gov.nih.nci.cabig.caaers.domain.ExpeditedAdverseEventReport:CREATE"/>
		<entry key="/pages/search/study" value="gov.nih.nci.cabig.caaers.domain.Study:READ"/>
		<entry key="/pages/search/participant" value="gov.nih.nci.cabig.caaers.domain.Participant:READ"/>
		<!--<entry key="/pages/search/adverseEvent" value="gov.nih.nci.cabig.caaers.domain.ExpeditedAdverseEventReport:READ"/>-->
		
		<entry key="/pages/search/routineReport" value="gov.nih.nci.cabig.caaers.domain.ExpeditedAdverseEventReport:READ"/>

	</util:map>
	

	<bean id="taskPrivilegeAndObjectIdGenerator"
		class="gov.nih.nci.cabig.caaers.web.security.TaskPrivilegeAndObjectIdGenerator">
		<property name="objectPrivilegeMap"
			ref="taskObjectPrivilegeMap" />
	</bean>

	<bean id="taskAuthorizationCheck"<commit_msg>CAAERS-3931<commit_after><?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
	xmlns:aop="http://www.springframework.org/schema/aop"
	xmlns:util="http://www.springframework.org/schema/util"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.0.xsd
http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.0.xsd">


	<util:map id="taskObjectPrivilegeMap">
        <!--========== TASK PAGE ===========-->
        <entry key="/pages/task"
               value="gov.nih.nci.cabig.caaers.Task:ACCESS"/>


        <!--========== PARTICIPANT ===========-->
		<entry key="/pages/participant/create"
			value="gov.nih.nci.cabig.caaers.domain.Participant:CREATE" />
		<entry key="/pages/participant/edit"
			value="gov.nih.nci.cabig.caaers.domain.Participant:UPDATE" />		
		<entry key="/pages/participant/view"
			value="gov.nih.nci.cabig.caaers.domain.Participant:READ" />
		<entry key="/pages/participant/assign"
			value="gov.nih.nci.cabig.caaers.domain.Participant:UPDATE" />
		<entry key="/pages/participant/assignStudy"
			value="gov.nih.nci.cabig.caaers.domain.Participant:UPDATE" />
		<entry key="/pages/participant/assignParticipant"
			value="gov.nih.nci.cabig.caaers.domain.Participant:READ" />
		<entry key="/pages/participant/search" 
			value="gov.nih.nci.cabig.caaers.domain.Participant:READ"/>

		<!--========== STUDY ===========-->
		<entry key="/pages/study/create"
			value="gov.nih.nci.cabig.caaers.domain.Study:CREATE" />
		<entry key="/pages/study/view"
			value="gov.nih.nci.cabig.caaers.domain.Study:READ" />
		<entry key="/pages/study/search"
			value="gov.nih.nci.cabig.caaers.domain.Study:READ" />
		<entry key="/pages/study/edit"
			value="gov.nih.nci.cabig.caaers.domain.Study:UPDATE" />

		<!--========== ADVERSE EVENT REPORT ===========-->
		<entry key="/pages/ae/create"
			value="gov.nih.nci.cabig.caaers.domain.ExpeditedAdverseEventReport:CREATE" />
		<entry key="/pages/ae/createRoutine"
			value="gov.nih.nci.cabig.caaers.domain.ExpeditedAdverseEventReport:CREATE" />
		<entry key="/pages/ae/captureRoutine"
			value="gov.nih.nci.cabig.caaers.domain.ExpeditedAdverseEventReport:CREATE" />

		<entry key="/pages/ae/reviewResolver"
			value="gov.nih.nci.cabig.caaers.domain.ExpeditedAdverseEventReport:ACCESS" />
		<entry key="/pages/ae/reviewEvaluationPeriod"
			value="gov.nih.nci.cabig.caaers.domain.ExpeditedAdverseEventReport:ACCESS" />
		<entry key="/pages/ae/reviewAeReport"
			value="gov.nih.nci.cabig.caaers.domain.ExpeditedAdverseEventReport:ACCESS" />
		<entry key="/pages/ae/submitReport"
			value="gov.nih.nci.cabig.caaers.domain.ExpeditedAdverseEventReport:READ" />	
		<entry key="/pages/ae/createReportingPeriod"
			value="gov.nih.nci.cabig.caaers.domain.ExpeditedAdverseEventReport:CREATE" />
		<entry key="/pages/ae/createAeReportingPeriod"
			value="gov.nih.nci.cabig.caaers.domain.ExpeditedAdverseEventReport:CREATE" />	
		<entry key="/pages/ae/edit"
			value="gov.nih.nci.cabig.caaers.domain.ExpeditedAdverseEventReport:UPDATE" />
		<entry key="/pages/ae/editRoutine"
			value="gov.nih.nci.cabig.caaers.domain.ExpeditedAdverseEventReport:UPDATE" />
		<entry key="/pages/ae/list"
			value="gov.nih.nci.cabig.caaers.domain.ExpeditedAdverseEventReport:READ" />
		<entry key="/pages/ae/routingAndReview"
			value="gov.nih.nci.cabig.caaers.domain.ExpeditedAdverseEventReport:ACCESS" />
		<entry key="/pages/ae/generateExpeditedfPdf"
			value="gov.nih.nci.cabig.caaers.domain.ExpeditedAdverseEventReport:ACCESS" />

		<!--========== TODO: REPORT ===========-->

		<!--========== TODO: ADMIN ===========-->
		
        <entry key="/pages/admin/reload" value="gov.nih.nci.cabig.caaers.Admin:ACCESS"/>
        <entry key="/pages/admin/configure" value="gov.nih.nci.cabig.caaers.Admin:ACCESS"/>
        <entry key="/pages/admin/configure" value="gov.nih.nci.cabig.caaers.Admin:ACCESS"/>
        <entry key="/pages/admin/createInvestigator" value="gov.nih.nci.cabig.caaers.Admin:ACCESS"/>
        <entry key="/pages/admin/searchInvestigator" value="gov.nih.nci.cabig.caaers.Admin:ACCESS"/>
        <entry key="/pages/admin/viewInvestigator" value="gov.nih.nci.cabig.caaers.Admin:ACCESS"/>
        <entry key="/pages/admin/createResearchStaff" value="gov.nih.nci.cabig.caaers.Admin:ACCESS"/>
        <entry key="/pages/admin/searchResearchStaff" value="gov.nih.nci.cabig.caaers.Admin:ACCESS"/>
        <entry key="/pages/admin/viewResearchStaff" value="gov.nih.nci.cabig.caaers.Admin:ACCESS"/>
        <entry key="/pages/admin/import" value="gov.nih.nci.cabig.caaers.Admin:ACCESS"/>
        <entry key="/pages/admin/importMeddra" value="gov.nih.nci.cabig.caaers.Admin:ACCESS"/>
        <entry key="/pages/admin/createIND" value="gov.nih.nci.cabig.caaers.Admin:ACCESS"/>
        <entry key="/pages/admin/createOrganization" value="gov.nih.nci.cabig.caaers.Admin:ACCESS"/>
        <entry key="/pages/admin/searchIND" value="gov.nih.nci.cabig.caaers.Admin:ACCESS"/>
        <entry key="/pages/admin/passwordPolicyConfigure" value="gov.nih.nci.cabig.caaers.Admin:ACCESS"/>
        <entry key="/pages/admin/mandatoryFields" value="gov.nih.nci.cabig.caaers.Admin:ACCESS"/>
        <entry key="/pages/admin/trackReports" value="gov.nih.nci.cabig.caaers.Admin:ACCESS"/>               
        <entry key="/pages/admin/asaelSearch" value="gov.nih.nci.cabig.caaers.Admin:ACCESS"/>
        <entry key="/pages/admin/asaelCreate" value="gov.nih.nci.cabig.caaers.Admin:ACCESS"/>
        <entry key="/pages/admin/asaelEdit" value="gov.nih.nci.cabig.caaers.Admin:ACCESS"/>
        <entry key="/pages/admin/asaelImport" value="gov.nih.nci.cabig.caaers.Admin:ACCESS"/>

        <!--========= RULES ========-->
		<entry key="/pages/rule/create" value="gov.nih.nci.cabig.caaers.domain.Rule:CREATE"/>
		<entry key="/pages/rule/list" value="gov.nih.nci.cabig.caaers.domain.Rule:READ"/>
		<entry key="/pages/rule/addRule" value="gov.nih.nci.cabig.caaers.domain.Rule:CREATE"/>
		<entry key="/pages/rule/addColumn" value="gov.nih.nci.cabig.caaers.domain.Rule:CREATE"/>
		<entry key="/pages/rule/notification/create" value="gov.nih.nci.cabig.caaers.domain.Rule:CREATE"/>
		<entry key="/pages/rule/notification/list" value="gov.nih.nci.cabig.caaers.domain.Rule:CREATE"/>
		<entry key="/pages/rule/deploy" value="gov.nih.nci.cabig.caaers.domain.Rule:CREATE"/>
		<entry key="/pages/rule/export" value="gov.nih.nci.cabig.caaers.domain.Rule:CREATE"/>
		<entry key="/pages/rule/import" value="gov.nih.nci.cabig.caaers.domain.Rule:CREATE"/>
		<entry key="/pages/rule/notification/import" value="gov.nih.nci.cabig.caaers.domain.Rule:CREATE"/>
		
		<!--========= SEARCH ========-->
		<entry key="/pages/search/report" value="gov.nih.nci.cabig.caaers.domain.ExpeditedAdverseEventReport:READ"/>
		<entry key="/pages/search/advancedSearch" value="gov.nih.nci.cabig.caaers.Admin:ACCESS"/>
		<entry key="/pages/search/listSearch" value="gov.nih.nci.cabig.caaers.domain.ExpeditedAdverseEventReport:CREATE"/>
		<entry key="/pages/search/study" value="gov.nih.nci.cabig.caaers.domain.Study:READ"/>
		<entry key="/pages/search/participant" value="gov.nih.nci.cabig.caaers.domain.Participant:READ"/>
		<!--<entry key="/pages/search/adverseEvent" value="gov.nih.nci.cabig.caaers.domain.ExpeditedAdverseEventReport:READ"/>-->
		
		<entry key="/pages/search/routineReport" value="gov.nih.nci.cabig.caaers.domain.ExpeditedAdverseEventReport:READ"/>

	</util:map>
	

	<bean id="taskPrivilegeAndObjectIdGenerator"
		class="gov.nih.nci.cabig.caaers.web.security.TaskPrivilegeAndObjectIdGenerator">
		<property name="objectPrivilegeMap"
			ref="taskObjectPrivilegeMap" />
	</bean>

	<bean id="taskAuthorizationCheck"
{'fraction_non_alphanumeric': 0.19981078524124882, 'fraction_numerical': 0.0020182907600126143, 'mean_word_length': 4.428277986990756, 'pattern_counts': {'":': 0, '<': 165, '<?xml version=': 2, '>': 163, 'https://': 0, 'lorem ipsum': 0, 'www.': 20, 'xml': 10}, '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': '7255203', 'n_tokens_mistral': 6168, 'n_tokens_neox': 5750, 'n_words': 463}