Project

General

Profile

« Previous | Next » 

Revision 13594999

Added by Marc Dequènes over 15 years ago

  • ID 135949993f91a0d3a22bfcece440c3ab94e11b34

[evol] added aspect dependency support

View differences:

TODO
common code to be able to relocate an item
- find a way to restrict parent locations for new objects (regex for <obj>/<item> string ? regex for DN ? OR/AND with both ? ???)
- search by combination of objects/aspects/fields values
- aspect dependency support
- handle fields containing a DN (allowing either giving a DN string or something like <object>:<item>)
- display familly information (preliminary work done for debug mode done, but object type should be recognized and displayed properly)
- handle subtypes
lib/ldap_shadows/object.rb
aspect_data = self.mapper.get_aspect(aspect)
add_class(*aspect_data[:mapping][:classes])
# recursive dependency enforcement
depends = aspect_data[:mapping][:depend_aspects] || []
depends.each do |dep_aspect|
add_aspect(dep_aspect)
end
end
def remove_aspect(aspect)

Also available in: Unified diff