public function toObject($dbObject = null, $props_to_skip = array())
 {
     /* @var $dbObject KalturaStorageProfile */
     if (!$dbObject) {
         $dbObject = new KontikiStorageProfile();
     }
     $dbObject->setProtocol(KontikiPlugin::getStorageProfileProtocolCoreValue(KontikiStorageProfileProtocol::KONTIKI));
     return parent::toObject($dbObject, $props_to_skip);
 }
Ejemplo n.º 2
0
 public function shouldConsumeJobStatusEvent(BatchJob $dbBatchJob)
 {
     if ($dbBatchJob->getJobType() == BatchJobType::STORAGE_EXPORT && $dbBatchJob->getJobSubType() == KontikiPlugin::getStorageProfileProtocolCoreValue(KontikiStorageProfileProtocol::KONTIKI)) {
         if (KontikiPlugin::isAllowedPartner($dbBatchJob->getPartnerId())) {
             return true;
         }
     }
     return false;
 }