(Re-) indexes an object to the ElasticSearch index, no matter if the change is actually required.

@param object $object
@param string $signalInformation Signal information, if called from a signal
@param Client $client
@return void
428303
public function indexObject($object, $signalInformation = null, Client $client = null)
    {
        $type = $this->getIndexTypeForObject($object, $client);
        if ($type === null) {
            return null;
        }
        $data = $this->getIndexablePropertiesAndValuesFromObject($object);

        $id = $this->persistenceManager->getIdentifierByObject($object);
        $document = new Document($type, $data, $id);
        $document->store();
    }
80820
public function logInfo($message, $object = null)
    {
        $this->doLog(LogHelper::LOG_LEVEL_INFO, $message, $object);
    }
653829
public function receive(Signal $signal)
    {
        if (!$signal instanceof Signal\ContentService\CopyContentSignal) {
            return;
        }

        $this->runLegacyKernelCallback(
            static function () use ($signal) {
                eZContentCacheManager::clearContentCacheIfNeeded($signal->dstContentId);
                eZContentOperationCollection::registerSearchObject($signal->dstContentId);
                eZContentObject::clearCache(); // Clear all object memory cache to free memory
            }
        );
    }
476630
public function preUpdate($object)
    {
        if ($contentObject = $object->getContent()) {
            $this->getModelManager()->update($contentObject);
        }
        $this->autoPageDraft($object->getPage());
    }
792026
public static function reset($object)
	{
		if (!($object instanceof FileDescriptorProto)) {
			throw new \InvalidArgumentException('You have to pass object of class Google\Protobuf\FileDescriptorProto.');
		}
		$object->name = NULL;
		$object->package = NULL;
		$object->dependency = NULL;
		$object->publicDependency = NULL;
		$object->weakDependency = NULL;
		$object->messageType = NULL;
		$object->enumType = NULL;
		$object->service = NULL;
		$object->extension = NULL;
		$object->options = NULL;
		$object->sourceCodeInfo = NULL;
		$object->syntax = NULL;
	}
302359
public function receive(Signal $signal)
    {
        if (!$signal instanceof Signal\ContentService\PublishVersionSignal) {
            return;
        }

        $this->searchHandler->indexContent(
            $this->persistenceHandler->contentHandler()->load($signal->contentId, $signal->versionNo)
        );

        $locations = $this->persistenceHandler->locationHandler()->loadLocationsByContent($signal->contentId);
        foreach ($locations as $location) {
            $this->searchHandler->indexLocation($location);
        }
    }
248645
public function updateOleObject($objectIndex, $object_data)
    {
        //Build URI
        $strURI = Product::$baseProductUri . '/cells/' . $this->getFileName() . '/worksheets/' . $this->worksheetName . '/oleobjects/' . $objectIndex;
        //Sign URI
        $signedURI = Utils::sign($strURI);
        //Send request and receive response stream
        $responseStream = Utils::processCommand($signedURI, 'POST', 'json', $object_data);
        $json = json_decode($responseStream);
        return $json;

    }
970813
public function setInfo(Threaded $object, $data)
    {
        foreach ($this->data as $key => $value) {
            if ($object->equals($value)) {
                $this->info[$key] = $data;
                break;
            }
        }
    }
699261
function update(client) {
  var id = client.id;

  // Auto-remove when this client is closed.
  client.once('closed', function() {
    remove(id);
  });

  var info = find(client);
  if(!info) {
    log.warn('No ClientInfo object found for client.id=%s', id);
    return;
  }
  info.username = client.username;
}
73733
public function receive(Signal $signal)
    {
        if (!$signal instanceof Signal\ContentService\DeleteContentSignal) {
            return;
        }

        // Delete Content
        $this->searchHandler->deleteContent($signal->contentId);

        // Delete locations if there is any
        foreach ($signal->affectedLocationIds as $locationId) {
            $this->searchHandler->deleteLocation($locationId, $signal->contentId);
        }
    }
713476
public static function reset($object)
	{
		if (!($object instanceof EnumValueDescriptorProto)) {
			throw new \InvalidArgumentException('You have to pass object of class Google\Protobuf\EnumValueDescriptorProto.');
		}
		$object->name = NULL;
		$object->number = NULL;
		$object->options = NULL;
	}
998795
public void remove (Object object) {
		if (!idToObject.containsValue(object, true)) return;
		int objectID = idToObject.findKey(object, true, -1);
		idToObject.remove(objectID);
		objectToID.remove(object, 0);
		if (TRACE) trace("kryonet", "Object " + objectID + " removed from ObjectSpace: " + object);
	}
774425
public function receive(Signal $signal)
    {
        if (!$signal instanceof Signal\ObjectStateService\SetPriorityOfObjectStateSignal) {
            return;
        }

        parent::receive($signal);
    }
241273
public function onPostSerialize(ObjectEvent $event)
    {
        $document = $event->getObject();

        if (!($document instanceof SecurityBehavior
            && $document instanceof LocaleBehavior
            && $document instanceof WebspaceBehavior
            && null !== $this->tokenStorage
            && null !== $this->tokenStorage->getToken()
            && $this->tokenStorage->getToken()->getUser() instanceof UserInterface)
        ) {
            return;
        }

        /** @var JsonSerializationVisitor $visitor */
        $visitor = $event->getVisitor();

        $visitor->addData(
            '_permissions',
            $this->accessControlManager->getUserPermissionByArray(
                $document->getLocale(),
                PageAdmin::SECURITY_CONTEXT_PREFIX . $document->getWebspaceName(),
                $document->getPermissions(),
                $this->tokenStorage->getToken()->getUser()
            )
        );
    }
795824
public function emit(Signal $signal)
    {
        if ($this->transactionDepth === 0) {
            $this->signalDispatcher->emit($signal);
        } else {
            $this->signalsQueue[$this->transactionCount][] = $signal;
        }
    }
319462
def _connect_signal(self, index):
        """"""
        post_save_signal = ElasticSignal(index, 'build')
        post_save_signal.connect(post_save, sender=index.object_type)
        self.signals.append(post_save_signal)

        post_delete_signal = ElasticSignal(index, 'remove_object')
        post_delete_signal.connect(post_delete, sender=index.object_type)
        self.signals.append(post_delete_signal)

        # Connect signals for all dependencies.
        for dependency in index.get_dependencies():
            # Automatically convert m2m fields to dependencies.
            if isinstance(dependency, (models.ManyToManyField, ManyToManyDescriptor)):
                dependency = ManyToManyDependency(dependency)
            elif not isinstance(dependency, Dependency):
                raise TypeError("Unsupported dependency type: {}".format(repr(dependency)))

            signal = dependency.connect(index)
            self.signals.extend(signal)
955592
public function receive(Signal $signal)
    {
        if (!$signal instanceof Signal\LocationService\DeleteLocationSignal) {
            return;
        }

        $this->runLegacyKernelCallback(
            static function () use ($signal) {
                // First clear object memory cache to prevent false detection of possibly deleted Content
                eZContentObject::clearCache($signal->contentId);

                if (eZContentObject::exists($signal->contentId)) {
                    // If Content still exists reindex is needed
                    eZContentOperationCollection::registerSearchObject($signal->contentId);
                } else {
                    // Else Content was deleted with the last Location, so we remove it from the index
                    eZSearch::removeObjectById($signal->contentId);
                }

                eZContentCacheManager::clearContentCacheIfNeeded($signal->contentId, true, [$signal->locationId]);
                eZSearch::removeNodes([$signal->locationId]);
                eZContentObject::clearCache(); // Clear all object memory cache to free memory
            }
        );
    }