<class id="acqclp" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="acq::claim_policy" oils_persist:tablename="acq.claim_policy" reporter:label="Claim Policy">
<fields oils_persist:primary="id" oils_persist:sequence="acq.claim_policy_id_seq">
- <field reporter:label="ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="ID" name="id" reporter:datatype="id" reporter:selector="name"/>
<field reporter:label="Org Unit" name="org_unit" reporter:datatype="org_unit"/>
<field reporter:label="Claim Policy Name" name="name" reporter:datatype="text"/>
<field reporter:label="Description" name="description" reporter:datatype="text"/>
<link field="org_unit" reltype="has_a" key="id" map="" class="aou"/>
</links>
<permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_CLAIM_POLICY" context_field="org_unit"/>
+ <retrieve permission="ADMIN_CLAIM_POLICY VIEW_PROVIDER" context_field="org_unit"/>
+ <update permission="ADMIN_CLAIM_POLICY" context_field="org_unit"/>
+ <delete permission="ADMIN_CLAIM_POLICY" context_field="org_unit"/>
+ </actions>
</permacrud>
</class>
<class id="acqclpa" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="acq::claim_policy_action" oils_persist:tablename="acq.claim_policy_action" reporter:label="Claim Policy Action">
<fields oils_persist:primary="id" oils_persist:sequence="acq.claim_policy_action_id_seq">
- <field reporter:label="ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="ID" name="id" reporter:datatype="id" reporter:selector="action"/>
<field reporter:label="Claim Policy ID" name="claim_policy" reporter:datatype="link"/>
<field reporter:label="Action Interval" name="action_interval" reporter:datatype="interval"/>
<field reporter:label="Action" name="action" reporter:datatype="link"/>
<link field="action" reltype="has_a" key="id" map="" class="acqclet"/>
</links>
<permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_CLAIM_POLICY">
+ <context link="claim_policy" field="org_unit"/>
+ </create>
+ <retrieve permission="ADMIN_CLAIM_POLICY VIEW_PROVIDER">
+ <context link="claim_policy" field="org_unit"/>
+ </retrieve>
+ <update permission="ADMIN_CLAIM_POLICY">
+ <context link="claim_policy" field="org_unit"/>
+ </update>
+ <delete permission="ADMIN_CLAIM_POLICY">
+ <context link="claim_policy" field="org_unit"/>
+ </delete>
+ </actions>
</permacrud>
</class>