On 26 Jan, 2007, at 13:55, Morgen Sagen wrote:

To implement conflict resolution, I need to add a new sharing- specific attribute to ContentItem which will connect an item to its pending conflicts. I am actually going to do this by defining a SharedItem stamp and put the new attribute in there, but I was hoping to be able to also move two long-time sharing-specific attributes of ContentItem, "shares" and "sharedIn", into this stamp as well. This appears to be difficult because of ContentItem.isAttributeModifiable( ). That method needs access to the "sharedIn" attribute, and if I move that attribute into the sharing layer, some core pim code is now going to have a dependency on the sharing package which I believe we want to avoid.

Any ideas?

You probably want just an Annotation, not a Stamp, I'm guessing.

One possibility is to move isAttributeModifiable(), shares, and sharedIn into your class. You can also refer to the sharedIn attribute by its full name (which would end up being something like 'osaf.pim.MorgensClass.sharedIn'), though that seems crufty to me.

--Grant

_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

Open Source Applications Foundation "chandler-dev" mailing list
http://lists.osafoundation.org/mailman/listinfo/chandler-dev

Reply via email to