AnsweredAssumed Answered

Can aspects be used to prevent data duplication?

Question asked by markus on Sep 14, 2006
Hi,

Can I use aspects to store attributes shared by a large number of objects in an efficient manner, and search against those attributes?
Example: What I would like to do is create a "person" type with properties "firstname", "lastname", "office":
person
  firstname
  lastname
  office

Then a second type "office" object with properties "address", "phone", "fax":
office
  address
  phone
  fax

I then instantiate "person" and "office" objects and link one "office" instance to multiple "person" instances. This helps me to avoid having to add "address" to every "person" instance and update all of them when the address for an office changes.

Now the important part: In a model like this, can I construct queries that allow me to search for person instances by querying both "person" and "office" attributes? So for example, use a query like  "person:lastname=smith&&office:address=NY" to find all users with the last name "smith" in the "NY" office but not in any other offices?
 
Can this be done with aspects or any other means in Alfresco?



Regards,
  Markus

Outcomes