added pcrud entries for claim_policy and claim_policy_action
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 31 Mar 2010 13:58:45 +0000 (13:58 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 31 Mar 2010 13:58:45 +0000 (13:58 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16069 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/examples/fm_IDL.xml

index 30f5dde..7ccde24 100644 (file)
@@ -6180,7 +6180,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
 
        <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"/>
@@ -6189,12 +6189,18 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
                        <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"/>
@@ -6204,6 +6210,20 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
                        <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>