'Make \'links\' between elements, like a host got a services list
with all it\'s services in it'

def linkify(self):

    self.services.optimize_service_search(self.hosts)
    self.linkify_one_command_with_commands(self.commands, 'ocsp_command')
    self.linkify_one_command_with_commands(self.commands, 'ochp_command')
    self.linkify_one_command_with_commands(self.commands, 'host_perfdata_command')
    self.linkify_one_command_with_commands(self.commands, 'service_perfdata_command')
    self.linkify_one_command_with_commands(self.commands, 'global_host_event_handler')
    self.linkify_one_command_with_commands(self.commands, 'global_service_event_handler')
    self.hosts.linkify(self.timeperiods, self.commands, self.contacts, self.realms, self.resultmodulations, self.businessimpactmodulations, self.escalations, self.hostgroups, self.triggers, self.checkmodulations, self.macromodulations)
    self.hostsextinfo.merge(self.hosts)
    self.hostgroups.linkify(self.hosts, self.realms)
    self.services.linkify(self.hosts, self.commands, self.timeperiods, self.contacts, self.resultmodulations, self.businessimpactmodulations, self.escalations, self.servicegroups, self.triggers, self.checkmodulations, self.macromodulations)
    self.servicesextinfo.merge(self.services)
    self.servicegroups.linkify(self.hosts, self.services)
    self.notificationways.linkify(self.timeperiods, self.commands)
    self.checkmodulations.linkify(self.timeperiods, self.commands)
    self.macromodulations.linkify(self.timeperiods)
    self.contactgroups.linkify(self.contacts)
    self.contacts.linkify(self.timeperiods, self.commands, self.notificationways)
    self.timeperiods.linkify()
    self.servicedependencies.linkify(self.hosts, self.services, self.timeperiods)
    self.hostdependencies.linkify(self.hosts, self.timeperiods)
    self.resultmodulations.linkify(self.timeperiods)
    self.businessimpactmodulations.linkify(self.timeperiods)
    self.escalations.linkify(self.timeperiods, self.contacts, self.services, self.hosts)
    self.discoveryruns.linkify(self.commands)
    self.realms.linkify()
    self.schedulers.linkify(self.realms, self.modules)
    self.brokers.linkify(self.realms, self.modules)
    self.receivers.linkify(self.realms, self.modules)
    self.reactionners.linkify(self.realms, self.modules)
    self.pollers.linkify(self.realms, self.modules)
    self.realms.prepare_for_satellites_conf()
