protected function applyPageChangesToQueue($uid)
    {
        $solrConfiguration = $this->getSolrConfigurationFromPageId($uid);
        $record = $this->configurationAwareRecordService->getRecord('pages', $uid, $solrConfiguration);
        if (!empty($record) && $this->tcaService->isEnabledRecord('pages', $record)) {
            $this->mountPageUpdater->update($uid);
            $this->indexQueue->updateItem('pages', $uid);
        } else {
            // TODO should be moved to garbage collector
            $this->removeFromIndexAndQueueWhenItemInQueue('pages', $uid);
        }
    }
protected function applyPageChangesToQueue($uid)
    {
        $solrConfiguration = $this->getSolrConfigurationFromPageId($uid);
        $record = $this->configurationAwareRecordService->getRecord('pages', $uid, $solrConfiguration);
        if (!empty($record) && $this->tcaService->isEnabledRecord('pages', $record)) {
            $this->mountPageUpdater->update($uid);
            $this->indexQueue->updateItem('pages', $uid);
        } else {
            // TODO should be moved to garbage collector
            $this->removeFromIndexAndQueueWhenItemInQueue('pages', $uid);
        }
    }
protected function applyPageChangesToQueue ( $ uid ) { $ solrConfiguration = $ this -> getSolrConfigurationFromPageId ( $ uid ) ; $ record = $ this -> configurationAwareRecordService -> getRecord ( 'pages' , $ uid , $ solrConfiguration ) ; if ( ! empty ( $ record ) && $ this -> tcaService -> isEnabledRecord ( 'pages' , $ record ) ) { $ this -> mountPageUpdater -> update ( $ uid ) ; $ this -> indexQueue -> updateItem ( 'pages' , $ uid ) ; } else { // TODO should be moved to garbage collector $ this -> removeFromIndexAndQueueWhenItemInQueue ( 'pages' , $ uid ) ; } }
Add's a page to the queue and updates mounts, when it is enabled, otherwise ensure that the page is removed
from the queue.

@param integer $uid
Add s a page to the queue and updates mounts when it is enabled otherwise ensure that the page is removed from the queue .