[Commits] (morgen) In order to model who is sharing which collections, I've added sharer and

commits at osafoundation.org commits at osafoundation.org
Fri Aug 27 09:52:53 PDT 2004


Commit by: morgen
Modified files:
chandler/parcels/osaf/contentmodel/parcel.xml 1.58 1.59
chandler/parcels/osaf/contentmodel/mail/parcel.xml 1.55 1.56

Log message:
In order to model who is sharing which collections, I've added sharer and
sharees attributes to ContentItem, and (blech) sharerOf and shareeOf
attributes to EmailAddress -- currently EmailAddress is the only way we
can refer to a person since we don't support Contacts yet.  I'm open to
suggestions for better attribute names.


ViewCVS links:
http://cvs.osafoundation.org/index.cgi/chandler/parcels/osaf/contentmodel/parcel.xml.diff?r1=text&tr1=1.58&r2=text&tr2=1.59
http://cvs.osafoundation.org/index.cgi/chandler/parcels/osaf/contentmodel/mail/parcel.xml.diff?r1=text&tr1=1.55&r2=text&tr2=1.56

Index: chandler/parcels/osaf/contentmodel/parcel.xml
diff -u chandler/parcels/osaf/contentmodel/parcel.xml:1.58 chandler/parcels/osaf/contentmodel/parcel.xml:1.59
--- chandler/parcels/osaf/contentmodel/parcel.xml:1.58	Tue Aug 24 12:18:13 2004
+++ chandler/parcels/osaf/contentmodel/parcel.xml	Fri Aug 27 09:52:51 2004
@@ -1,8 +1,8 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
 
 <!-- Parcel manifest for Pim Schema -->
-<!-- $Revision: 1.58 $ -->
-<!-- $Date: 2004/08/24 19:18:13 $ -->
+<!-- $Revision: 1.59 $ -->
+<!-- $Date: 2004/08/27 16:52:51 $ -->
 <!-- Copyright (c) 2003-2004 Open Source Applications Foundation -->
 <!-- License: http://osafoundation.org/Chandler_0.1_license_terms.htm -->
 
@@ -96,6 +96,23 @@
       <core:initialValue type="core:Long">-1</core:initialValue>
     </core:Attribute>
 
+    <core:Attribute itsName="sharer">
+      <description value="The person who initially published this item" />
+      <issues value="Eventually this will point to a Contact or equivalent" />
+      <type ref="mail:EmailAddress" />
+      <cardinality value="single" />
+      <initialValue ref="core:None" />
+      <inverseAttribute ref="mail:EmailAddress/sharerOf" />
+    </core:Attribute>
+
+    <core:Attribute itsName="sharees">
+      <description value="The people who were invited to share in this item" />
+      <issues value="Eventually this will point to a Contact or equivalent" />
+      <type ref="mail:EmailAddress" />
+      <cardinality value="list" />
+      <initialValue />
+      <inverseAttribute ref="mail:EmailAddress/shareeOf" />
+    </core:Attribute>
 
     <core:classes key="python">osaf.contentmodel.ContentModel.ContentItem</core:classes>
   </core:Kind>

Index: chandler/parcels/osaf/contentmodel/mail/parcel.xml
diff -u chandler/parcels/osaf/contentmodel/mail/parcel.xml:1.55 chandler/parcels/osaf/contentmodel/mail/parcel.xml:1.56
--- chandler/parcels/osaf/contentmodel/mail/parcel.xml:1.55	Mon Aug 23 16:24:15 2004
+++ chandler/parcels/osaf/contentmodel/mail/parcel.xml	Fri Aug 27 09:52:52 2004
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
 
-<!-- $Revision: 1.55 $ -->
-<!-- $Date: 2004/08/23 23:24:15 $ -->
+<!-- $Revision: 1.56 $ -->
+<!-- $Date: 2004/08/27 16:52:52 $ -->
 <!-- Copyright (c) 2003-2004 Open Source Applications Foundation -->
 <!-- License: http://osafoundation.org/Chandler_0.1_license_terms.htm -->
 
@@ -759,6 +759,26 @@
             <initialValue />
         </Attribute>
 
+        <Attribute itsName="sharerOf">
+            <displayName value="Sharer of" />
+            <description value="The set of items this email address is the sharer of" />
+            <issues value="This feels dirty having this attribute here, but once we support Contacts (or however we model people), this attribute will move out of EmailAddress.  Right now we have no other way to identify people." />
+            <cardinality value="list" />
+            <type ref="content:ContentItem" />
+            <inverseAttribute ref="content:ContentItem/sharer" />
+            <initialValue />
+        </Attribute>
+
+        <Attribute itsName="shareeOf">
+            <displayName value="Sharee of" />
+            <description value="The set of items this email address is a sharee of" />
+            <issues value="This feels dirty having this attribute here, but once we support Contacts (or however we model people), this attribute will move out of EmailAddress.  Right now we have no other way to identify people." />
+            <cardinality value="list" />
+            <type ref="content:ContentItem" />
+            <inverseAttribute ref="content:ContentItem/sharees" />
+            <initialValue />
+        </Attribute>
+
 
         <!-- Additional external attributes -->
 



More information about the Commits mailing list