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

com.kaltura.client.services.VendorIntegrationService 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

There is a newer version: 19.3.0
Show newest version
// ===================================================================================================
//                           _  __     _ _
//                          | |/ /__ _| | |_ _  _ _ _ __ _
//                          | ' .
//
// @ignore
// ===================================================================================================
package com.kaltura.client.services;

import com.kaltura.client.enums.VendorIntegrationStatus;
import com.kaltura.client.types.IntegrationSetting;
import com.kaltura.client.utils.request.RequestBuilder;

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

public class VendorIntegrationService {
	
	public static class AddVendorIntegrationBuilder extends RequestBuilder {
		
		public AddVendorIntegrationBuilder(IntegrationSetting integration, String remoteId) {
			super(IntegrationSetting.class, "vendor_vendorintegration", "add");
			params.add("integration", integration);
			params.add("remoteId", remoteId);
		}
		
		public void remoteId(String multirequestToken) {
			params.add("remoteId", multirequestToken);
		}
	}

	/**
	 * Add new integration setting object
	 * 
	 * @param integration 
	 * @param remoteId 
	 */
    public static AddVendorIntegrationBuilder add(IntegrationSetting integration, String remoteId)  {
		return new AddVendorIntegrationBuilder(integration, remoteId);
	}
	
	public static class DeleteVendorIntegrationBuilder extends RequestBuilder {
		
		public DeleteVendorIntegrationBuilder(int integrationId) {
			super(IntegrationSetting.class, "vendor_vendorintegration", "delete");
			params.add("integrationId", integrationId);
		}
		
		public void integrationId(String multirequestToken) {
			params.add("integrationId", multirequestToken);
		}
	}

	/**
	 * Delete integration object by ID
	 * 
	 * @param integrationId 
	 */
    public static DeleteVendorIntegrationBuilder delete(int integrationId)  {
		return new DeleteVendorIntegrationBuilder(integrationId);
	}
	
	public static class GetVendorIntegrationBuilder extends RequestBuilder {
		
		public GetVendorIntegrationBuilder(int integrationId) {
			super(IntegrationSetting.class, "vendor_vendorintegration", "get");
			params.add("integrationId", integrationId);
		}
		
		public void integrationId(String multirequestToken) {
			params.add("integrationId", multirequestToken);
		}
	}

	/**
	 * Retrieve integration setting object by ID
	 * 
	 * @param integrationId 
	 */
    public static GetVendorIntegrationBuilder get(int integrationId)  {
		return new GetVendorIntegrationBuilder(integrationId);
	}
	
	public static class UpdateVendorIntegrationBuilder extends RequestBuilder {
		
		public UpdateVendorIntegrationBuilder(int id, IntegrationSetting integrationSetting) {
			super(IntegrationSetting.class, "vendor_vendorintegration", "update");
			params.add("id", id);
			params.add("integrationSetting", integrationSetting);
		}
		
		public void id(String multirequestToken) {
			params.add("id", multirequestToken);
		}
	}

	/**
	 * Update an existing vedor catalog item object
	 * 
	 * @param id 
	 * @param integrationSetting 
	 */
    public static UpdateVendorIntegrationBuilder update(int id, IntegrationSetting integrationSetting)  {
		return new UpdateVendorIntegrationBuilder(id, integrationSetting);
	}
	
	public static class UpdateStatusVendorIntegrationBuilder extends RequestBuilder {
		
		public UpdateStatusVendorIntegrationBuilder(int id, VendorIntegrationStatus status) {
			super(IntegrationSetting.class, "vendor_vendorintegration", "updateStatus");
			params.add("id", id);
			params.add("status", status);
		}
		
		public void id(String multirequestToken) {
			params.add("id", multirequestToken);
		}
		
		public void status(String multirequestToken) {
			params.add("status", multirequestToken);
		}
	}

	/**
	 * Update vendor catalog item status by id
	 * 
	 * @param id 
	 * @param status 
	 */
    public static UpdateStatusVendorIntegrationBuilder updateStatus(int id, VendorIntegrationStatus status)  {
		return new UpdateStatusVendorIntegrationBuilder(id, status);
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy