public function initService($serviceId, $serviceName, $actionName) { parent::initService($serviceId, $serviceName, $actionName); if (!DrmPlugin::isAllowedPartner(kCurrentContext::$ks_partner_id)) { throw new KalturaAPIException(KalturaErrors::FEATURE_FORBIDDEN, DrmPlugin::PLUGIN_NAME); } }
public function initService($serviceId, $serviceName, $actionName) { parent::initService($serviceId, $serviceName, $actionName); if (!AdminConsolePlugin::isAllowedPartner($this->getPartnerId())) { throw new KalturaAPIException(KalturaErrors::SERVICE_FORBIDDEN, $this->serviceName . '->' . $this->actionName); } }
public function initService($serviceId, $serviceName, $actionName) { parent::initService($serviceId, $serviceName, $actionName); if (in_array(strtolower($actionName), array('execute', 'getcsv'), true)) { $this->applyPartnerFilterForClass('Report'); } }
protected function partnerRequired($actionName) { if ($actionName === 'getCurrentPermissions') { return false; } return parent::partnerRequired($actionName); }
protected function partnerRequired($actionName) { if ($actionName === 'register') { return false; } return parent::partnerRequired($actionName); }
public function initService($serviceId, $serviceName, $actionName) { parent::initService($serviceId, $serviceName, $actionName); if ($this->getPartnerId() != Partner::BATCH_PARTNER_ID && $this->getPartnerId() != Partner::ADMIN_CONSOLE_PARTNER_ID) { throw new KalturaAPIException(KalturaErrors::SERVICE_FORBIDDEN, $this->serviceName . '->' . $this->actionName); } }
public function initService($serviceId, $serviceName, $actionName) { parent::initService($serviceId, $serviceName, $actionName); if ($actionName == 'add') { categoryPeer::setIgnoreDeleted(true); } }
protected function globalPartnerAllowed($actionName) { if ($actionName === 'getFlavorAssetsWithParams') { return true; } return parent::globalPartnerAllowed($actionName); }
protected function partnerRequired($actionName) { if ($actionName === 'startWidgetSession') { return false; } return parent::partnerRequired($actionName); }
protected function partnerRequired($actionName) { if ($actionName == 'ping' || $actionName == 'getTime') { return false; } return parent::partnerRequired($actionName); }
public function initService($serviceId, $serviceName, $actionName) { parent::initService($serviceId, $serviceName, $actionName); if (!QuizPlugin::isAllowedPartner($this->getPartnerId())) { throw new KalturaAPIException(KalturaErrors::FEATURE_FORBIDDEN, QuizPlugin::PLUGIN_NAME); } }
/** * @ignore */ public function initService($serviceId, $serviceName, $actionName) { parent::initService($serviceId, $serviceName, $actionName); if ($this->getPartnerId() != Partner::ADMIN_CONSOLE_PARTNER_ID) { parent::applyPartnerFilterForClass(new BatchJobPeer()); } }
public function initService($serviceId, $serviceName, $actionName) { parent::initService($serviceId, $serviceName, $actionName); parent::applyPartnerFilterForClass(new assetPeer()); if (!AsperaPlugin::isAllowedPartner($this->getPartnerId())) { throw new KalturaAPIException(KalturaErrors::SERVICE_FORBIDDEN, $this->serviceName . '->' . $this->actionName); } }
public function initService($serviceId, $serviceName, $actionName) { parent::initService($serviceId, $serviceName, $actionName); $this->applyPartnerFilterForClass('GenericDistributionProvider'); if (!ContentDistributionPlugin::isAllowedPartner($this->getPartnerId())) { throw new KalturaAPIException(KalturaErrors::FEATURE_FORBIDDEN, ContentDistributionPlugin::PLUGIN_NAME); } }
public function initService($serviceId, $serviceName, $actionName) { parent::initService($serviceId, $serviceName, $actionName); $this->applyPartnerFilterForClass('DrmProfile'); if (!DrmPlugin::isAllowedPartner($this->getPartnerId())) { throw new KalturaAPIException(KalturaErrors::FEATURE_FORBIDDEN, DrmPlugin::PLUGIN_NAME); } }
public function initService($serviceId, $serviceName, $actionName) { parent::initService($serviceId, $serviceName, $actionName); if (in_array(strtolower($actionName), array('execute', 'getcsv'), true)) { $partnerGroup = $this->partnerGroup . ',0'; parent::applyPartnerFilterForClass(new ReportPeer(), $partnerGroup); } }
public function initService($serviceId, $serviceName, $actionName) { parent::initService($serviceId, $serviceName, $actionName); myPartnerUtils::addPartnerToCriteria(new GenericDistributionProviderActionPeer(), $this->getPartnerId(), $this->private_partner_data, $this->partnerGroup()); if (!ContentDistributionPlugin::isAllowedPartner(kCurrentContext::$master_partner_id)) { throw new KalturaAPIException(KalturaErrors::SERVICE_FORBIDDEN, $this->serviceName . '->' . $this->actionName); } }
protected function partnerGroup($peer = null) { if ($this->actionName == 'add' || $this->actionName == 'update') { assetParamsPeer::setIsDefaultInDefaultCriteria(false); return $this->partnerGroup . ',0'; } return parent::partnerGroup(); }
public function initService($serviceId, $serviceName, $actionName) { parent::initService($serviceId, $serviceName, $actionName); //Don;t apply partner filter if action is list to avoid returning default partner 0 response profiles on every call if ($actionName !== "list") { $this->applyPartnerFilterForClass('ResponseProfile'); } }
protected function kalturaNetworkAllowed($actionName) { if ($actionName == 'list') { $this->partnerGroup .= ',0'; return true; } return parent::kalturaNetworkAllowed($actionName); }
public function initService($serviceId, $serviceName, $actionName) { parent::initService($serviceId, $serviceName, $actionName); $this->applyPartnerFilterForClass('LiveChannelSegment'); if (!PermissionPeer::isValidForPartner(PermissionName::FEATURE_LIVE_CHANNEL, $this->getPartnerId())) { throw new KalturaAPIException(KalturaErrors::SERVICE_FORBIDDEN, $this->serviceName . '->' . $this->actionName); } }
public function initService($serviceId, $serviceName, $actionName) { parent::initService($serviceId, $serviceName, $actionName); if ($actionName != 'goto') { $this->applyPartnerFilterForClass('ShortLink'); $this->applyPartnerFilterForClass('kuser'); } }
public function initService($serviceId, $serviceName, $actionName) { parent::initService($serviceId, $serviceName, $actionName); if ($actionName != 'goto') { myPartnerUtils::addPartnerToCriteria(new ShortLinkPeer(), $this->getPartnerId(), $this->private_partner_data, $this->partnerGroup()); myPartnerUtils::addPartnerToCriteria(new kuserPeer(), $this->getPartnerId(), $this->private_partner_data, $this->partnerGroup()); } }
public function initService($serviceId, $serviceName, $actionName) { parent::initService($serviceId, $serviceName, $actionName); if ($this->getPartnerId() != Partner::BATCH_PARTNER_ID) { throw new KalturaAPIException(KalturaErrors::SERVICE_FORBIDDEN, $this->serviceName . '->' . $this->actionName); } myPartnerUtils::resetAllFilters(); }
public function initService($serviceId, $serviceName, $actionName) { parent::initService($serviceId, $serviceName, $actionName); $partnerId = $this->getPartnerId(); if (!EventNotificationPlugin::isAllowedPartner($partnerId)) { throw new KalturaAPIException(KalturaErrors::FEATURE_FORBIDDEN, EventNotificationPlugin::PLUGIN_NAME); } $this->applyPartnerFilterForClass('EventNotificationTemplate'); }
public function initService($serviceId, $serviceName, $actionName) { parent::initService($serviceId, $serviceName, $actionName); if (!DropFolderPlugin::isAllowedPartner($this->getPartnerId())) { throw new KalturaAPIException(KalturaErrors::SERVICE_FORBIDDEN, $this->serviceName . '->' . $this->actionName); } myPartnerUtils::addPartnerToCriteria(new DropFolderPeer(), $this->getPartnerId(), $this->private_partner_data, $this->partnerGroup()); myPartnerUtils::addPartnerToCriteria(new DropFolderFilePeer(), $this->getPartnerId(), $this->private_partner_data, $this->partnerGroup()); }
public function initService($serviceId, $serviceName, $actionName) { parent::initService($serviceId, $serviceName, $actionName); // since plugin might be using KS impersonation, we need to validate the requesting // partnerId from the KS and not with the $_POST one if (!AdminConsolePlugin::isAllowedPartner($this->getPartnerId())) { throw new KalturaAPIException(KalturaErrors::SERVICE_FORBIDDEN, $this->serviceName . '->' . $this->actionName); } }
public function initService($serviceId, $serviceName, $actionName) { parent::initService($serviceId, $serviceName, $actionName); $partnerId = $this->getPartnerId(); if (!$this->getPartner()->getEnabledService(PermissionName::FEATURE_SERVER_NODE)) { throw new KalturaAPIException(KalturaErrors::SERVICE_FORBIDDEN, $this->serviceName . '->' . $this->actionName); } $this->applyPartnerFilterForClass('serverNode'); }
public function initService($serviceId, $serviceName, $actionName) { parent::initService($serviceId, $serviceName, $actionName); // since plugin might be using KS impersonation, we need to validate the requesting // partnerId from the KS and not with the $_POST one if (!FileSyncPlugin::isAllowedPartner($this->getPartnerId())) { throw new KalturaAPIException(KalturaErrors::FEATURE_FORBIDDEN, FileSyncPlugin::PLUGIN_NAME); } }
public function initService($serviceId, $serviceName, $actionName) { parent::initService($serviceId, $serviceName, $actionName); parent::applyPartnerFilterForClass(flavorAssetPeer::getInstance()); parent::applyPartnerFilterForClass(flavorParamsPeer::getInstance()); parent::applyPartnerFilterForClass(flavorParamsOutputPeer::getInstance()); parent::applyPartnerFilterForClass(new entryPeer()); parent::applyPartnerFilterForClass(new syndicationFeedPeer()); }