protected function applyRecordChangesToQueue($table, $uid, $pid)
    {
        $solrConfiguration = $this->getSolrConfigurationFromPageId($pid);
        $isMonitoredTable = $solrConfiguration->getIndexQueueIsMonitoredTable($table);

        if ($isMonitoredTable) {
            $record = $this->configurationAwareRecordService->getRecord($table, $uid, $solrConfiguration);

            if (!empty($record) && $this->tcaService->isEnabledRecord($table, $record)) {
                $uid = $this->tcaService->getTranslationOriginalUidIfTranslated($table, $record, $uid);
                $this->indexQueue->updateItem($table, $uid);
            } else {
                // TODO should be moved to garbage collector
                $this->removeFromIndexAndQueueWhenItemInQueue($table, $uid);
            }
        }
    }
protected function applyRecordChangesToQueue($table, $uid, $pid)
    {
        $solrConfiguration = $this->getSolrConfigurationFromPageId($pid);
        $isMonitoredTable = $solrConfiguration->getIndexQueueIsMonitoredTable($table);

        if ($isMonitoredTable) {
            $record = $this->configurationAwareRecordService->getRecord($table, $uid, $solrConfiguration);

            if (!empty($record) && $this->tcaService->isEnabledRecord($table, $record)) {
                $uid = $this->tcaService->getTranslationOriginalUidIfTranslated($table, $record, $uid);
                $this->indexQueue->updateItem($table, $uid);
            } else {
                // TODO should be moved to garbage collector
                $this->removeFromIndexAndQueueWhenItemInQueue($table, $uid);
            }
        }
    }
protected function applyRecordChangesToQueue ( $ table , $ uid , $ pid ) { $ solrConfiguration = $ this -> getSolrConfigurationFromPageId ( $ pid ) ; $ isMonitoredTable = $ solrConfiguration -> getIndexQueueIsMonitoredTable ( $ table ) ; if ( $ isMonitoredTable ) { $ record = $ this -> configurationAwareRecordService -> getRecord ( $ table , $ uid , $ solrConfiguration ) ; if ( ! empty ( $ record ) && $ this -> tcaService -> isEnabledRecord ( $ table , $ record ) ) { $ uid = $ this -> tcaService -> getTranslationOriginalUidIfTranslated ( $ table , $ record , $ uid ) ; $ this -> indexQueue -> updateItem ( $ table , $ uid ) ; } else { // TODO should be moved to garbage collector $ this -> removeFromIndexAndQueueWhenItemInQueue ( $ table , $ uid ) ; } } }
Add's a record to the queue if it is monitored and enabled, otherwise it removes the record from the queue.

@param string $table
@param integer $uid
@param integer $pid
Add s a record to the queue if it is monitored and enabled otherwise it removes the record from the queue .