public function objectAdded(BaseObject $object, BatchJob $raisedJob = null) { $entry = $object->getentry(); if ($entry->getType() == entryType::DOCUMENT) { if ($entry->getConversionQuality() > 0) { $syncKey = $object->getSyncKey(flavorAsset::FILE_SYNC_FLAVOR_ASSET_SUB_TYPE_ASSET); $path = kFileSyncUtils::getLocalFilePathForKey($syncKey); kJobsManager::addConvertProfileJob($raisedJob, $entry, $object->getId(), $path); } else { // only for documents entry, make the source ready since no conversion profile will be executed by default $object->setFlavorParamsId(flavorParams::SOURCE_FLAVOR_ID); $object->setStatusLocalReady(); $object->save(); $entry->setStatusReady(); $entry->save(); } } return true; }