Revision c4ca8497
Added by Marc Dequènes about 15 years ago
- ID c4ca849799e25e03393f9307f0ee3cc602bbd104
lib/ldap_shadows/elements/object.rb | ||
---|---|---|
class LdapObject < ActiveLdap::Base
|
||
include LdapElement
|
||
|
||
class_inheritable_accessor :presentation
|
||
@relations_info = {}
|
||
|
||
class << self
|
lib/ldap_shadows/shadow.rb | ||
---|---|---|
end
|
||
|
||
def add_object(object_name, object_def_raw)
|
||
e_type = 'object'
|
||
|
||
klass = add_container_element(e_type, object_name, object_def_raw)
|
||
|
||
# TODO: remove this crap
|
||
object_def = @config.parse_and_validate(object_name, e_type, object_def_raw)
|
||
klass.presentation = object_def[:presentation]
|
||
add_container_element('object', object_name, object_def_raw)
|
||
end
|
||
|
||
def get_object(object_name)
|
Also available in: Unified diff
[cleanup] internal rework #4