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

com.kaltura.client.services.DrmProfileService 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.DrmProviderType;
import com.kaltura.client.types.DrmProfile;
import com.kaltura.client.types.DrmProfileFilter;
import com.kaltura.client.types.FilterPager;
import com.kaltura.client.utils.request.ListResponseRequestBuilder;
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 DrmProfileService {
	
	public static class AddDrmProfileBuilder extends RequestBuilder {
		
		public AddDrmProfileBuilder(DrmProfile drmProfile) {
			super(DrmProfile.class, "drm_drmprofile", "add");
			params.add("drmProfile", drmProfile);
		}
	}

	/**
	 * Allows you to add a new DrmProfile object
	 * 
	 * @param drmProfile 
	 */
    public static AddDrmProfileBuilder add(DrmProfile drmProfile)  {
		return new AddDrmProfileBuilder(drmProfile);
	}
	
	public static class DeleteDrmProfileBuilder extends RequestBuilder {
		
		public DeleteDrmProfileBuilder(int drmProfileId) {
			super(DrmProfile.class, "drm_drmprofile", "delete");
			params.add("drmProfileId", drmProfileId);
		}
		
		public void drmProfileId(String multirequestToken) {
			params.add("drmProfileId", multirequestToken);
		}
	}

	/**
	 * Mark the KalturaDrmProfile object as deleted
	 * 
	 * @param drmProfileId 
	 */
    public static DeleteDrmProfileBuilder delete(int drmProfileId)  {
		return new DeleteDrmProfileBuilder(drmProfileId);
	}
	
	public static class GetDrmProfileBuilder extends RequestBuilder {
		
		public GetDrmProfileBuilder(int drmProfileId) {
			super(DrmProfile.class, "drm_drmprofile", "get");
			params.add("drmProfileId", drmProfileId);
		}
		
		public void drmProfileId(String multirequestToken) {
			params.add("drmProfileId", multirequestToken);
		}
	}

	/**
	 * Retrieve a KalturaDrmProfile object by ID
	 * 
	 * @param drmProfileId 
	 */
    public static GetDrmProfileBuilder get(int drmProfileId)  {
		return new GetDrmProfileBuilder(drmProfileId);
	}
	
	public static class GetByProviderDrmProfileBuilder extends RequestBuilder {
		
		public GetByProviderDrmProfileBuilder(DrmProviderType provider) {
			super(DrmProfile.class, "drm_drmprofile", "getByProvider");
			params.add("provider", provider);
		}
		
		public void provider(String multirequestToken) {
			params.add("provider", multirequestToken);
		}
	}

	/**
	 * Retrieve a KalturaDrmProfile object by provider, if no specific profile defined
	  return default profile
	 * 
	 * @param provider 
	 */
    public static GetByProviderDrmProfileBuilder getByProvider(DrmProviderType provider)  {
		return new GetByProviderDrmProfileBuilder(provider);
	}
	
	public static class ListDrmProfileBuilder extends ListResponseRequestBuilder {
		
		public ListDrmProfileBuilder(DrmProfileFilter filter, FilterPager pager) {
			super(DrmProfile.class, "drm_drmprofile", "list");
			params.add("filter", filter);
			params.add("pager", pager);
		}
	}

	public static ListDrmProfileBuilder list()  {
		return list(null);
	}

	public static ListDrmProfileBuilder list(DrmProfileFilter filter)  {
		return list(filter, null);
	}

	/**
	 * List KalturaDrmProfile objects
	 * 
	 * @param filter 
	 * @param pager 
	 */
    public static ListDrmProfileBuilder list(DrmProfileFilter filter, FilterPager pager)  {
		return new ListDrmProfileBuilder(filter, pager);
	}
	
	public static class UpdateDrmProfileBuilder extends RequestBuilder {
		
		public UpdateDrmProfileBuilder(int drmProfileId, DrmProfile drmProfile) {
			super(DrmProfile.class, "drm_drmprofile", "update");
			params.add("drmProfileId", drmProfileId);
			params.add("drmProfile", drmProfile);
		}
		
		public void drmProfileId(String multirequestToken) {
			params.add("drmProfileId", multirequestToken);
		}
	}

	/**
	 * Update an existing KalturaDrmProfile object
	 * 
	 * @param drmProfileId 
	 * @param drmProfile Id
	 */
    public static UpdateDrmProfileBuilder update(int drmProfileId, DrmProfile drmProfile)  {
		return new UpdateDrmProfileBuilder(drmProfileId, drmProfile);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy