svn commit: r506197 - in /ofbiz/trunk/applications/party: data/PartyTypeData.xml entitydef/entitymodel.xml

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r506197 - in /ofbiz/trunk/applications/party: data/PartyTypeData.xml entitydef/entitymodel.xml

jaz-3
Author: jaz
Date: Sun Feb 11 16:50:07 2007
New Revision: 506197

URL: http://svn.apache.org/viewvc?view=rev&rev=506197
Log:
implemented data model for Party Invitation

Modified:
    ofbiz/trunk/applications/party/data/PartyTypeData.xml
    ofbiz/trunk/applications/party/entitydef/entitymodel.xml

Modified: ofbiz/trunk/applications/party/data/PartyTypeData.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/data/PartyTypeData.xml?view=diff&rev=506197&r1=506196&r2=506197
==============================================================================
--- ofbiz/trunk/applications/party/data/PartyTypeData.xml (original)
+++ ofbiz/trunk/applications/party/data/PartyTypeData.xml Sun Feb 11 16:50:07 2007
@@ -295,6 +295,15 @@
     
     <StatusType description="Party Relationship" hasTable="N" parentTypeId="" statusTypeId="PARTY_REL_STATUS"/>
 
+    <StatusType description="Party Invitation" hasTable="N" parentTypeId="" statusTypeId="PARTY_INV_STATUS"/>
+    <StatusItem description="Invitation Sent" sequenceId="01" statusCode="SENT" statusId="PARTYINV_SENT" statusTypeId="PARTY_INV_STATUS"/>
+    <StatusItem description="Invitation Accepted" sequenceId="05" statusCode="ACCEPTED" statusId="PARTYINV_ACCEPTED" statusTypeId="PARTY_INV_STATUS"/>
+    <StatusItem description="Invitation Declined" sequenceId="06" statusCode="DECLINED" statusId="PARTYINV_DECLINED" statusTypeId="PARTY_INV_STATUS"/>
+    <StatusItem description="Invitation Cancelled" sequenceId="10" statusCode="CANCELLED" statusId="PARTYINV_CANCELLED" statusTypeId="PARTY_INV_STATUS"/>
+    <StatusValidChange condition="" statusId="PARTYINV_SENT" statusIdTo="PARTYINV_ACCEPTED" transitionName="Accepted"/>
+    <StatusValidChange condition="" statusId="PARTYINV_SENT" statusIdTo="PARTYINV_DECLINED" transitionName="Declined"/>
+    <StatusValidChange condition="" statusId="PARTYINV_SENT" statusIdTo="PARTYINV_CANCELLED" transitionName="Cancelled"/>
+
     <TermType description="Financial" hasTable="N" parentTypeId="" termTypeId="FINANCIAL_TERM"/>
     <TermType description="Payment (net days)" hasTable="N" parentTypeId="FINANCIAL_TERM" termTypeId="FIN_PAYMENT_TERM"/>
     <TermType description="Payment (discounted if paid within specified days)" hasTable="N" parentTypeId="FINANCIAL_TERM" termTypeId="FIN_PAYMENT_DISC"/>

Modified: ofbiz/trunk/applications/party/entitydef/entitymodel.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/entitydef/entitymodel.xml?view=diff&rev=506197&r1=506196&r2=506197
==============================================================================
--- ofbiz/trunk/applications/party/entitydef/entitymodel.xml (original)
+++ ofbiz/trunk/applications/party/entitydef/entitymodel.xml Sun Feb 11 16:50:07 2007
@@ -861,6 +861,7 @@
       <field name="roleTypeId" type="id"></field>
       <field name="allowSolicitation" type="indicator"></field>
       <field name="extension" type="long-varchar"></field>
+      <field name="verified" type="indicator"></field>
       <field name="comments" type="comment"></field>
       <field name="yearsWithContactMech" type="numeric"></field>
       <field name="monthsWithContactMech" type="numeric"></field>
@@ -1582,6 +1583,36 @@
       <relation type="one" fk-name="PARTY_ICSAVS_PARTY" rel-entity-name="Party">
         <key-map field-name="partyId"/>
       </relation>
+    </entity>
+    <entity entity-name="PartyInvitation"
+            package-name="org.ofbiz.party.party"
+            title="Party Invitation Entity">
+        <field name="partyInvitationId" type="id-ne"></field>
+        <field name="partyIdFrom" type="id-ne"></field>
+        <field name="emailAddress" type="long-varchar"></field>
+        <field name="statusId" type="id"></field>
+        <field name="lastInviteDate" type="date-time"></field>
+        <prim-key field="partyInvitationId"/>
+        <relation type="one" rel-entity-name="Party">
+            <key-map field-name="partyIdFrom" rel-field-name="partyId"/>
+        </relation>        
+        <relation type="one" rel-entity-name="StatusItem">
+            <key-map field-name="statusId"/>
+        </relation>
+    </entity>
+    <entity entity-name="PartyInvitationGroupAssoc"
+            package-name="org.ofbiz.party.party"
+            title="Party Invitation Group Assoc Entity">
+        <field name="partyInvitationId" type="id-ne"></field>
+        <field name="partyIdTo" type="id-ne"></field>
+        <prim-key field="partyInvitationId"/>
+        <prim-key field="partyGroupIdTo"/>
+        <relation type="one" title="To" rel-entity-name="PartyGroup">
+            <key-map field-name="partyIdTo" rel-field-name="partyId"/>
+        </relation>
+        <relation type="one" title="To" rel-entity-name="Party">
+            <key-map field-name="partyIdTo" rel-field-name="partyId"/>
+        </relation>
     </entity>
     <entity entity-name="PartyNameHistory"
         package-name="org.ofbiz.party.party"