public function getCondition()
 {
     if ($this->condition) {
         return $this->condition;
     }
     $conditions = array();
     if (!is_null($this->noDistributionProfiles)) {
         if ($this->noDistributionProfiles) {
             return kContentDistributionManager::getSearchStringNoDistributionProfiles();
         }
     }
     if (!is_null($this->distributionProfileId)) {
         $conditions[] = '"' . kContentDistributionManager::getSearchStringDistributionProfile($this->distributionProfileId) . '"';
     } else {
         $conditions[] = '"' . kContentDistributionManager::getSearchStringDistributionProfile() . '"';
     }
     if (!is_null($this->distributionSunStatus)) {
         $conditions[] = '"' . kContentDistributionManager::getSearchStringDistributionSunStatus($this->distributionSunStatus, $this->distributionProfileId, false) . '"';
     }
     if (!is_null($this->entryDistributionFlag)) {
         $conditions[] = '"' . kContentDistributionManager::getSearchStringDistributionFlag($this->entryDistributionFlag, $this->distributionProfileId, false) . '"';
     }
     if (!is_null($this->entryDistributionStatus)) {
         $conditions[] = '"' . kContentDistributionManager::getSearchStringDistributionStatus($this->entryDistributionStatus, $this->distributionProfileId, false) . '"';
     }
     if (!is_null($this->hasEntryDistributionValidationErrors)) {
         if ($this->hasEntryDistributionValidationErrors) {
             $conditions[] = '"' . kContentDistributionManager::getSearchStringDistributionHasValidationError($this->distributionProfileId, false) . '"';
         } else {
             $conditions[] = kContentDistributionManager::getSearchStringDistributionHasNoValidationError($this->distributionProfileId);
         }
     }
     if (!is_null($this->entryDistributionValidationErrors)) {
         foreach ($this->entryDistributionValidationErrors as $validationError) {
             $conditions[] = '"' . kContentDistributionManager::getSearchStringDistributionValidationError($validationError, $this->distributionProfileId, false) . '"';
         }
     }
     if (!count($conditions)) {
         return null;
     }
     $this->condition = implode(' ', $conditions);
     return $this->condition;
 }