[open-ils-commits] r12821 - trunk/Open-ILS/examples (erickson)
svn at svn.open-ils.org
svn at svn.open-ils.org
Wed Apr 8 11:09:26 EDT 2009
Author: erickson
Date: 2009-04-08 11:09:24 -0400 (Wed, 08 Apr 2009)
New Revision: 12821
Modified:
trunk/Open-ILS/examples/fm_IDL.xml
Log:
added permacrud entries for acqphsm and acqlipad
Modified: trunk/Open-ILS/examples/fm_IDL.xml
===================================================================
--- trunk/Open-ILS/examples/fm_IDL.xml 2009-04-08 15:00:42 UTC (rev 12820)
+++ trunk/Open-ILS/examples/fm_IDL.xml 2009-04-08 15:09:24 UTC (rev 12821)
@@ -4860,58 +4860,73 @@
<links/>
</class>
- <class id="acqlipad" controller="open-ils.cstore open-ils.reporter-store" oils_obj:fieldmapper="acq::lineitem_provider_attr_definition" oils_persist:tablename="acq.lineitem_provider_attr_definition">
- <fields oils_persist:primary="id" oils_persist:sequence="acq.lineitem_attr_definition_id_seq">
- <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
- <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
- <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
- <field reporter:label="Definition ID" name="id" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="id" />
- <field reporter:label="Code" name="code" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="text" />
- <field reporter:label="Description" name="description" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="text" oils_persist:i18n="true" />
- <field reporter:label="XPath" name="xpath" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="text" />
- <field reporter:label="Provider" name="provider" oils_obj:array_position="7" oils_persist:virtual="false" reporter:datatype="link" />
- <field reporter:label="Is Identifier?" name="ident" oils_obj:array_position="8" oils_persist:virtual="false" reporter:datatype="bool"/>
- </fields>
- <links>
- <link field="provider" reltype="has_a" key="id" map="" class="acqpro"/>
- </links>
+ <class id="acqlipad" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="acq::lineitem_provider_attr_definition" oils_persist:tablename="acq.lineitem_provider_attr_definition">
+ <fields oils_persist:primary="id" oils_persist:sequence="acq.lineitem_attr_definition_id_seq">
+ <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
+ <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
+ <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
+ <field reporter:label="Definition ID" name="id" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="id" />
+ <field reporter:label="Code" name="code" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="text" />
+ <field reporter:label="Description" name="description" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="text" oils_persist:i18n="true" />
+ <field reporter:label="XPath" name="xpath" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="text" />
+ <field reporter:label="Provider" name="provider" oils_obj:array_position="7" oils_persist:virtual="false" reporter:datatype="link" />
+ <field reporter:label="Is Identifier?" name="ident" oils_obj:array_position="8" oils_persist:virtual="false" reporter:datatype="bool"/>
+ </fields>
+ <links>
+ <link field="provider" reltype="has_a" key="id" map="" class="acqpro"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_PROVIDER">
+ <context link="provider" field="owner"/>
+ </create>
+ <retrieve permission="ADMIN_PROVIDER">
+ <context link="provider" field="owner"/>
+ </retrieve>
+ <update permission="ADMIN_PROVIDER">
+ <context link="provider" field="owner"/>
+ </update>
+ <delete permission="ADMIN_PROVIDER">
+ <context link="provider" field="owner"/>
+ </delete>
+ </actions>
+ </permacrud>
</class>
-
- <class id="acqlipad" controller="open-ils.cstore open-ils.reporter-store" oils_obj:fieldmapper="acq::lineitem_provider_attr_definition" oils_persist:tablename="acq.lineitem_provider_attr_definition">
- <fields oils_persist:primary="id" oils_persist:sequence="acq.lineitem_attr_definition_id_seq">
- <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
- <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
- <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
- <field reporter:label="Definition ID" name="id" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="id" />
- <field reporter:label="Code" name="code" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="text" />
- <field reporter:label="Description" name="description" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="text" oils_persist:i18n="true" />
- <field reporter:label="XPath" name="xpath" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="text" />
- <field reporter:label="Provider" name="provider" oils_obj:array_position="7" oils_persist:virtual="false" reporter:datatype="link" />
- <field reporter:label="Is Identifier?" name="ident" oils_obj:array_position="8" oils_persist:virtual="false" reporter:datatype="bool"/>
- </fields>
- <links>
- <link field="provider" reltype="has_a" key="id" map="" class="acqpro"/>
- </links>
+
+ <class id="acqphsm" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="acq::provider_holding_subfield_map" oils_persist:tablename="acq.provider_holding_subfield_map">
+ <fields oils_persist:primary="id" oils_persist:sequence="acq.provider_holding_subfield_map_id_seq">
+ <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
+ <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
+ <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
+ <field reporter:label="ID" name="id" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="id" />
+ <field reporter:label="Provider" name="provider" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="link" />
+ <field reporter:label="Name" name="name" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="text" />
+ <field reporter:label="Subfield" name="subfield" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="text" />
+ </fields>
+ <links>
+ <link field="provider" reltype="has_a" key="id" map="" class="acqpro"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_PROVIDER">
+ <context link="provider" field="owner"/>
+ </create>
+ <retrieve permission="ADMIN_PROVIDER">
+ <context link="provider" field="owner"/>
+ </retrieve>
+ <update permission="ADMIN_PROVIDER">
+ <context link="provider" field="owner"/>
+ </update>
+ <delete permission="ADMIN_PROVIDER">
+ <context link="provider" field="owner"/>
+ </delete>
+ </actions>
+ </permacrud>
</class>
-
- <class id="acqphsm" controller="open-ils.cstore open-ils.reporter-store" oils_obj:fieldmapper="acq::provider_holding_subfield_map" oils_persist:tablename="acq.provider_holding_subfield_map">
- <fields oils_persist:primary="id" oils_persist:sequence="acq.provider_holding_subfield_map_id_seq">
- <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
- <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
- <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
- <field reporter:label="ID" name="id" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="id" />
- <field reporter:label="Provider" name="provider" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="link" />
- <field reporter:label="Name" name="name" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="text" />
- <field reporter:label="Subfield" name="subfield" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="text" />
- </fields>
- <links>
- <link field="provider" reltype="has_a" key="id" map="" class="acqpro"/>
- </links>
- </class>
-
+
<class id="acqlilad" controller="open-ils.cstore open-ils.reporter-store" oils_obj:fieldmapper="acq::lineitem_local_attr_definition" oils_persist:tablename="acq.lineitem_local_attr_definition">
- <fields oils_persist:primary="id" oils_persist:sequence="acq.lineitem_attr_definition_id_seq">
- <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
+ <fields oils_persist:primary="id" oils_persist:sequence="acq.lineitem_attr_definition_id_seq">
+ <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
<field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
<field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
<field reporter:label="Definition ID" name="id" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="id" />
More information about the open-ils-commits
mailing list