All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.kaltura.client.services.KalturaSystemPartnerService Maven / Gradle / Ivy

Go to download

KalturaClient is a library of Java classes that can be used to interact with the Kaltura REST API. More information about the REST API can be found at http://corp.kaltura.com/Products/Kaltura-API Many of the Java classes in this library are auto-generated from a schema that defines the objects that are used to interect with the API. The current schema can be found at http://www.kaltura.com/api_v3/api_schema.php

The newest version!
// ===================================================================================================
//                           _  __     _ _
//                          | |/ /__ _| | |_ _  _ _ _ __ _
//                          | ' .
//
// @ignore
// ===================================================================================================
package com.kaltura.client.services;

import com.kaltura.client.KalturaClient;
import com.kaltura.client.KalturaServiceBase;
import com.kaltura.client.types.*;
import org.w3c.dom.Element;
import com.kaltura.client.utils.ParseUtils;
import com.kaltura.client.KalturaParams;
import com.kaltura.client.KalturaApiException;
import com.kaltura.client.enums.*;
import java.util.List;

/**
 * This class was generated using generate.php
 * against an XML schema provided by Kaltura.
 * 
 * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN.
 */

/**  System partner service    */
@SuppressWarnings("serial")
public class KalturaSystemPartnerService extends KalturaServiceBase {
    public KalturaSystemPartnerService(KalturaClient client) {
        this.kalturaClient = client;
    }

	/**  Retrieve all info about partner   This service gets partner id as parameter and
	  accessable to the admin console partner only     */
    public KalturaPartner get(int partnerId) throws KalturaApiException {
        KalturaParams kparams = new KalturaParams();
        kparams.add("partnerId", partnerId);
        this.kalturaClient.queueServiceCall("systempartner_systempartner", "get", kparams, KalturaPartner.class);
        if (this.kalturaClient.isMultiRequest())
            return null;
        Element resultXmlElement = this.kalturaClient.doQueue();
        return ParseUtils.parseObject(KalturaPartner.class, resultXmlElement);
    }

    public KalturaSystemPartnerUsageListResponse getUsage() throws KalturaApiException {
        return this.getUsage(null);
    }

    public KalturaSystemPartnerUsageListResponse getUsage(KalturaPartnerFilter partnerFilter) throws KalturaApiException {
        return this.getUsage(partnerFilter, null);
    }

    public KalturaSystemPartnerUsageListResponse getUsage(KalturaPartnerFilter partnerFilter, KalturaSystemPartnerUsageFilter usageFilter) throws KalturaApiException {
        return this.getUsage(partnerFilter, usageFilter, null);
    }

    public KalturaSystemPartnerUsageListResponse getUsage(KalturaPartnerFilter partnerFilter, KalturaSystemPartnerUsageFilter usageFilter, KalturaFilterPager pager) throws KalturaApiException {
        KalturaParams kparams = new KalturaParams();
        kparams.add("partnerFilter", partnerFilter);
        kparams.add("usageFilter", usageFilter);
        kparams.add("pager", pager);
        this.kalturaClient.queueServiceCall("systempartner_systempartner", "getUsage", kparams, KalturaSystemPartnerUsageListResponse.class);
        if (this.kalturaClient.isMultiRequest())
            return null;
        Element resultXmlElement = this.kalturaClient.doQueue();
        return ParseUtils.parseObject(KalturaSystemPartnerUsageListResponse.class, resultXmlElement);
    }

    public KalturaPartnerListResponse list() throws KalturaApiException {
        return this.list(null);
    }

    public KalturaPartnerListResponse list(KalturaPartnerFilter filter) throws KalturaApiException {
        return this.list(filter, null);
    }

    public KalturaPartnerListResponse list(KalturaPartnerFilter filter, KalturaFilterPager pager) throws KalturaApiException {
        KalturaParams kparams = new KalturaParams();
        kparams.add("filter", filter);
        kparams.add("pager", pager);
        this.kalturaClient.queueServiceCall("systempartner_systempartner", "list", kparams, KalturaPartnerListResponse.class);
        if (this.kalturaClient.isMultiRequest())
            return null;
        Element resultXmlElement = this.kalturaClient.doQueue();
        return ParseUtils.parseObject(KalturaPartnerListResponse.class, resultXmlElement);
    }

    public void updateStatus(int partnerId, KalturaPartnerStatus status, String reason) throws KalturaApiException {
        KalturaParams kparams = new KalturaParams();
        kparams.add("partnerId", partnerId);
        kparams.add("status", status);
        kparams.add("reason", reason);
        this.kalturaClient.queueServiceCall("systempartner_systempartner", "updateStatus", kparams);
        if (this.kalturaClient.isMultiRequest())
            return ;
        this.kalturaClient.doQueue();
    }

    public String getAdminSession(int partnerId) throws KalturaApiException {
        return this.getAdminSession(partnerId, null);
    }

    public String getAdminSession(int partnerId, String userId) throws KalturaApiException {
        KalturaParams kparams = new KalturaParams();
        kparams.add("partnerId", partnerId);
        kparams.add("userId", userId);
        this.kalturaClient.queueServiceCall("systempartner_systempartner", "getAdminSession", kparams);
        if (this.kalturaClient.isMultiRequest())
            return null;
        Element resultXmlElement = this.kalturaClient.doQueue();
        String resultText = resultXmlElement.getTextContent();
        return ParseUtils.parseString(resultText);
    }

    public void updateConfiguration(int partnerId, KalturaSystemPartnerConfiguration configuration) throws KalturaApiException {
        KalturaParams kparams = new KalturaParams();
        kparams.add("partnerId", partnerId);
        kparams.add("configuration", configuration);
        this.kalturaClient.queueServiceCall("systempartner_systempartner", "updateConfiguration", kparams);
        if (this.kalturaClient.isMultiRequest())
            return ;
        this.kalturaClient.doQueue();
    }

    public KalturaSystemPartnerConfiguration getConfiguration(int partnerId) throws KalturaApiException {
        KalturaParams kparams = new KalturaParams();
        kparams.add("partnerId", partnerId);
        this.kalturaClient.queueServiceCall("systempartner_systempartner", "getConfiguration", kparams, KalturaSystemPartnerConfiguration.class);
        if (this.kalturaClient.isMultiRequest())
            return null;
        Element resultXmlElement = this.kalturaClient.doQueue();
        return ParseUtils.parseObject(KalturaSystemPartnerConfiguration.class, resultXmlElement);
    }

    public List getPackages() throws KalturaApiException {
        KalturaParams kparams = new KalturaParams();
        this.kalturaClient.queueServiceCall("systempartner_systempartner", "getPackages", kparams, KalturaSystemPartnerPackage.class);
        if (this.kalturaClient.isMultiRequest())
            return null;
        Element resultXmlElement = this.kalturaClient.doQueue();
        return ParseUtils.parseArray(KalturaSystemPartnerPackage.class, resultXmlElement);
    }

    public List getPackagesClassOfService() throws KalturaApiException {
        KalturaParams kparams = new KalturaParams();
        this.kalturaClient.queueServiceCall("systempartner_systempartner", "getPackagesClassOfService", kparams, KalturaSystemPartnerPackage.class);
        if (this.kalturaClient.isMultiRequest())
            return null;
        Element resultXmlElement = this.kalturaClient.doQueue();
        return ParseUtils.parseArray(KalturaSystemPartnerPackage.class, resultXmlElement);
    }

    public List getPackagesVertical() throws KalturaApiException {
        KalturaParams kparams = new KalturaParams();
        this.kalturaClient.queueServiceCall("systempartner_systempartner", "getPackagesVertical", kparams, KalturaSystemPartnerPackage.class);
        if (this.kalturaClient.isMultiRequest())
            return null;
        Element resultXmlElement = this.kalturaClient.doQueue();
        return ParseUtils.parseArray(KalturaSystemPartnerPackage.class, resultXmlElement);
    }

    public List getPlayerEmbedCodeTypes() throws KalturaApiException {
        KalturaParams kparams = new KalturaParams();
        this.kalturaClient.queueServiceCall("systempartner_systempartner", "getPlayerEmbedCodeTypes", kparams, KalturaPlayerEmbedCodeType.class);
        if (this.kalturaClient.isMultiRequest())
            return null;
        Element resultXmlElement = this.kalturaClient.doQueue();
        return ParseUtils.parseArray(KalturaPlayerEmbedCodeType.class, resultXmlElement);
    }

    public List getPlayerDeliveryTypes() throws KalturaApiException {
        KalturaParams kparams = new KalturaParams();
        this.kalturaClient.queueServiceCall("systempartner_systempartner", "getPlayerDeliveryTypes", kparams, KalturaPlayerDeliveryType.class);
        if (this.kalturaClient.isMultiRequest())
            return null;
        Element resultXmlElement = this.kalturaClient.doQueue();
        return ParseUtils.parseArray(KalturaPlayerDeliveryType.class, resultXmlElement);
    }

    public void resetUserPassword(String userId, int partnerId, String newPassword) throws KalturaApiException {
        KalturaParams kparams = new KalturaParams();
        kparams.add("userId", userId);
        kparams.add("partnerId", partnerId);
        kparams.add("newPassword", newPassword);
        this.kalturaClient.queueServiceCall("systempartner_systempartner", "resetUserPassword", kparams);
        if (this.kalturaClient.isMultiRequest())
            return ;
        this.kalturaClient.doQueue();
    }

    public KalturaUserLoginDataListResponse listUserLoginData() throws KalturaApiException {
        return this.listUserLoginData(null);
    }

    public KalturaUserLoginDataListResponse listUserLoginData(KalturaUserLoginDataFilter filter) throws KalturaApiException {
        return this.listUserLoginData(filter, null);
    }

    public KalturaUserLoginDataListResponse listUserLoginData(KalturaUserLoginDataFilter filter, KalturaFilterPager pager) throws KalturaApiException {
        KalturaParams kparams = new KalturaParams();
        kparams.add("filter", filter);
        kparams.add("pager", pager);
        this.kalturaClient.queueServiceCall("systempartner_systempartner", "listUserLoginData", kparams, KalturaUserLoginDataListResponse.class);
        if (this.kalturaClient.isMultiRequest())
            return null;
        Element resultXmlElement = this.kalturaClient.doQueue();
        return ParseUtils.parseObject(KalturaUserLoginDataListResponse.class, resultXmlElement);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy