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

com.kaltura.client.services.KalturaReportAdminService 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 java.util.ArrayList;
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.
 */

@SuppressWarnings("serial")
public class KalturaReportAdminService extends KalturaServiceBase {
    public KalturaReportAdminService(KalturaClient client) {
        this.kalturaClient = client;
    }

    public KalturaReport add(KalturaReport report) throws KalturaApiException {
        KalturaParams kparams = new KalturaParams();
        kparams.add("report", report);
        this.kalturaClient.queueServiceCall("adminconsole_reportadmin", "add", kparams, KalturaReport.class);
        if (this.kalturaClient.isMultiRequest())
            return null;
        Element resultXmlElement = this.kalturaClient.doQueue();
        return ParseUtils.parseObject(KalturaReport.class, resultXmlElement);
    }

    public KalturaReport get(int id) throws KalturaApiException {
        KalturaParams kparams = new KalturaParams();
        kparams.add("id", id);
        this.kalturaClient.queueServiceCall("adminconsole_reportadmin", "get", kparams, KalturaReport.class);
        if (this.kalturaClient.isMultiRequest())
            return null;
        Element resultXmlElement = this.kalturaClient.doQueue();
        return ParseUtils.parseObject(KalturaReport.class, resultXmlElement);
    }

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

    public KalturaReportListResponse list(KalturaReportFilter filter) throws KalturaApiException {
        return this.list(filter, null);
    }

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

    public KalturaReport update(int id, KalturaReport report) throws KalturaApiException {
        KalturaParams kparams = new KalturaParams();
        kparams.add("id", id);
        kparams.add("report", report);
        this.kalturaClient.queueServiceCall("adminconsole_reportadmin", "update", kparams, KalturaReport.class);
        if (this.kalturaClient.isMultiRequest())
            return null;
        Element resultXmlElement = this.kalturaClient.doQueue();
        return ParseUtils.parseObject(KalturaReport.class, resultXmlElement);
    }

    public void delete(int id) throws KalturaApiException {
        KalturaParams kparams = new KalturaParams();
        kparams.add("id", id);
        this.kalturaClient.queueServiceCall("adminconsole_reportadmin", "delete", kparams);
        if (this.kalturaClient.isMultiRequest())
            return ;
        this.kalturaClient.doQueue();
    }

    public KalturaReportResponse executeDebug(int id) throws KalturaApiException {
        return this.executeDebug(id, null);
    }

    public KalturaReportResponse executeDebug(int id, ArrayList params) throws KalturaApiException {
        KalturaParams kparams = new KalturaParams();
        kparams.add("id", id);
        kparams.add("params", params);
        this.kalturaClient.queueServiceCall("adminconsole_reportadmin", "executeDebug", kparams, KalturaReportResponse.class);
        if (this.kalturaClient.isMultiRequest())
            return null;
        Element resultXmlElement = this.kalturaClient.doQueue();
        return ParseUtils.parseObject(KalturaReportResponse.class, resultXmlElement);
    }

    public List getParameters(int id) throws KalturaApiException {
        KalturaParams kparams = new KalturaParams();
        kparams.add("id", id);
        this.kalturaClient.queueServiceCall("adminconsole_reportadmin", "getParameters", kparams, KalturaString.class);
        if (this.kalturaClient.isMultiRequest())
            return null;
        Element resultXmlElement = this.kalturaClient.doQueue();
        return ParseUtils.parseArray(KalturaString.class, resultXmlElement);
    }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy