Add <permacrud> entries for "acqdf" and "acqdfe" classes.
authorscottmk <scottmk@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 20 Mar 2009 15:39:10 +0000 (15:39 +0000)
committerscottmk <scottmk@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 20 Mar 2009 15:39:10 +0000 (15:39 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@12629 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/examples/fm_IDL.xml

index a5469c1..94578ff 100644 (file)
@@ -5444,6 +5444,14 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
             <link field="owner" reltype="has_a" key="id" map="" class="aou"/>
             <link field="entries" reltype="has_many" key="formula" map="" class="acqdfe"/>
         </links>
+               <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+               <actions>
+                       <create permission="ADMIN_ACQ_DISTRIB_FORMULA" context_field="owner"/>
+                       <retrieve permission="ADMIN_ACQ_DISTRIB_FORMULA" context_field="owner"/>
+                       <update permission="ADMIN_ACQ_DISTRIB_FORMULA" context_field="owner"/>
+                       <delete permission="ADMIN_ACQ_DISTRIB_FORMULA" context_field="owner"/>
+               </actions>
+               </permacrud>
        </class>
        <class id="acqdfe" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="acq::distribution_formula_entry" oils_persist:tablename="acq.distribution_formula_entry">
         <fields oils_persist:primary="id">
@@ -5462,6 +5470,22 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
             <link field="owning_lib" reltype="has_a" key="id" map="" class="aou"/>
             <link field="location" reltype="has_a" key="id" map="" class="acpl"/>
         </links>
+               <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+               <actions>
+                       <create permission="ADMIN_ACQ_DISTRIB_FORMULA">
+                       <context link="formula" field="owner"/>
+                       </create>
+                       <retrieve permission="ADMIN_ACQ_DISTRIB_FORMULA">
+                       <context link="formula" field="owner"/>
+                       </retrieve>
+                       <update permission="ADMIN_ACQ_DISTRIB_FORMULA">
+                       <context link="formula" field="owner"/>
+                       </update>
+                       <delete permission="ADMIN_ACQ_DISTRIB_FORMULA">
+                       <context link="formula" field="owner"/>
+                       </delete>
+               </actions>
+               </permacrud>
        </class>