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

com.kaltura.client.services.EntryDistributionService 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.DistributionAction;
import com.kaltura.client.types.EntryDistribution;
import com.kaltura.client.types.EntryDistributionFilter;
import com.kaltura.client.types.FilterPager;
import com.kaltura.client.utils.request.ListResponseRequestBuilder;
import com.kaltura.client.utils.request.NullRequestBuilder;
import com.kaltura.client.utils.request.RequestBuilder;
import com.kaltura.client.utils.request.ServeRequestBuilder;

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

/**
 * Entry Distribution service
 * 
 * @param entryDistribution 
 * @param id 
 * @param id 
 * @param filter 
 * @param pager 
 * @param id 
 * @param id 
 * @param actionType 
 * @param id 
 * @param actionType 
 * @param id 
 * @param submitWhenReady 
 * @param id 
 * @param id 
 * @param id 
 * @param id 
 * @param entryDistribution 
 * @param id 
 */
public class EntryDistributionService {
	
	public static class AddEntryDistributionBuilder extends RequestBuilder {
		
		public AddEntryDistributionBuilder(EntryDistribution entryDistribution) {
			super(EntryDistribution.class, "contentdistribution_entrydistribution", "add");
			params.add("entryDistribution", entryDistribution);
		}
	}

	/**
	 * Add new Entry Distribution
	 * 
	 * @param entryDistribution 
	 */
    public static AddEntryDistributionBuilder add(EntryDistribution entryDistribution)  {
		return new AddEntryDistributionBuilder(entryDistribution);
	}
	
	public static class DeleteEntryDistributionBuilder extends NullRequestBuilder {
		
		public DeleteEntryDistributionBuilder(int id) {
			super("contentdistribution_entrydistribution", "delete");
			params.add("id", id);
		}
		
		public void id(String multirequestToken) {
			params.add("id", multirequestToken);
		}
	}

	/**
	 * Delete Entry Distribution by id
	 * 
	 * @param id 
	 */
    public static DeleteEntryDistributionBuilder delete(int id)  {
		return new DeleteEntryDistributionBuilder(id);
	}
	
	public static class GetEntryDistributionBuilder extends RequestBuilder {
		
		public GetEntryDistributionBuilder(int id) {
			super(EntryDistribution.class, "contentdistribution_entrydistribution", "get");
			params.add("id", id);
		}
		
		public void id(String multirequestToken) {
			params.add("id", multirequestToken);
		}
	}

	/**
	 * Get Entry Distribution by id
	 * 
	 * @param id 
	 */
    public static GetEntryDistributionBuilder get(int id)  {
		return new GetEntryDistributionBuilder(id);
	}
	
	public static class ListEntryDistributionBuilder extends ListResponseRequestBuilder {
		
		public ListEntryDistributionBuilder(EntryDistributionFilter filter, FilterPager pager) {
			super(EntryDistribution.class, "contentdistribution_entrydistribution", "list");
			params.add("filter", filter);
			params.add("pager", pager);
		}
	}

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

	public static ListEntryDistributionBuilder list(EntryDistributionFilter filter)  {
		return list(filter, null);
	}

	/**
	 * List all distribution providers
	 * 
	 * @param filter 
	 * @param pager 
	 */
    public static ListEntryDistributionBuilder list(EntryDistributionFilter filter, FilterPager pager)  {
		return new ListEntryDistributionBuilder(filter, pager);
	}
	
	public static class RetrySubmitEntryDistributionBuilder extends RequestBuilder {
		
		public RetrySubmitEntryDistributionBuilder(int id) {
			super(EntryDistribution.class, "contentdistribution_entrydistribution", "retrySubmit");
			params.add("id", id);
		}
		
		public void id(String multirequestToken) {
			params.add("id", multirequestToken);
		}
	}

	/**
	 * Retries last submit action
	 * 
	 * @param id 
	 */
    public static RetrySubmitEntryDistributionBuilder retrySubmit(int id)  {
		return new RetrySubmitEntryDistributionBuilder(id);
	}
	
	public static class ServeReturnedDataEntryDistributionBuilder extends ServeRequestBuilder {
		
		public ServeReturnedDataEntryDistributionBuilder(int id, DistributionAction actionType) {
			super("contentdistribution_entrydistribution", "serveReturnedData");
			params.add("id", id);
			params.add("actionType", actionType);
		}
		
		public void id(String multirequestToken) {
			params.add("id", multirequestToken);
		}
		
		public void actionType(String multirequestToken) {
			params.add("actionType", multirequestToken);
		}
	}

	/**
	 * Serves entry distribution returned data
	 * 
	 * @param id 
	 * @param actionType 
	 */
    public static ServeReturnedDataEntryDistributionBuilder serveReturnedData(int id, DistributionAction actionType)  {
		return new ServeReturnedDataEntryDistributionBuilder(id, actionType);
	}
	
	public static class ServeSentDataEntryDistributionBuilder extends ServeRequestBuilder {
		
		public ServeSentDataEntryDistributionBuilder(int id, DistributionAction actionType) {
			super("contentdistribution_entrydistribution", "serveSentData");
			params.add("id", id);
			params.add("actionType", actionType);
		}
		
		public void id(String multirequestToken) {
			params.add("id", multirequestToken);
		}
		
		public void actionType(String multirequestToken) {
			params.add("actionType", multirequestToken);
		}
	}

	/**
	 * Serves entry distribution sent data
	 * 
	 * @param id 
	 * @param actionType 
	 */
    public static ServeSentDataEntryDistributionBuilder serveSentData(int id, DistributionAction actionType)  {
		return new ServeSentDataEntryDistributionBuilder(id, actionType);
	}
	
	public static class SubmitAddEntryDistributionBuilder extends RequestBuilder {
		
		public SubmitAddEntryDistributionBuilder(int id, boolean submitWhenReady) {
			super(EntryDistribution.class, "contentdistribution_entrydistribution", "submitAdd");
			params.add("id", id);
			params.add("submitWhenReady", submitWhenReady);
		}
		
		public void id(String multirequestToken) {
			params.add("id", multirequestToken);
		}
		
		public void submitWhenReady(String multirequestToken) {
			params.add("submitWhenReady", multirequestToken);
		}
	}

	public static SubmitAddEntryDistributionBuilder submitAdd(int id)  {
		return submitAdd(id, false);
	}

	/**
	 * Submits Entry Distribution to the remote destination
	 * 
	 * @param id 
	 * @param submitWhenReady 
	 */
    public static SubmitAddEntryDistributionBuilder submitAdd(int id, boolean submitWhenReady)  {
		return new SubmitAddEntryDistributionBuilder(id, submitWhenReady);
	}
	
	public static class SubmitDeleteEntryDistributionBuilder extends RequestBuilder {
		
		public SubmitDeleteEntryDistributionBuilder(int id) {
			super(EntryDistribution.class, "contentdistribution_entrydistribution", "submitDelete");
			params.add("id", id);
		}
		
		public void id(String multirequestToken) {
			params.add("id", multirequestToken);
		}
	}

	/**
	 * Deletes Entry Distribution from the remote destination
	 * 
	 * @param id 
	 */
    public static SubmitDeleteEntryDistributionBuilder submitDelete(int id)  {
		return new SubmitDeleteEntryDistributionBuilder(id);
	}
	
	public static class SubmitFetchReportEntryDistributionBuilder extends RequestBuilder {
		
		public SubmitFetchReportEntryDistributionBuilder(int id) {
			super(EntryDistribution.class, "contentdistribution_entrydistribution", "submitFetchReport");
			params.add("id", id);
		}
		
		public void id(String multirequestToken) {
			params.add("id", multirequestToken);
		}
	}

	/**
	 * Submits Entry Distribution report request
	 * 
	 * @param id 
	 */
    public static SubmitFetchReportEntryDistributionBuilder submitFetchReport(int id)  {
		return new SubmitFetchReportEntryDistributionBuilder(id);
	}
	
	public static class SubmitUpdateEntryDistributionBuilder extends RequestBuilder {
		
		public SubmitUpdateEntryDistributionBuilder(int id) {
			super(EntryDistribution.class, "contentdistribution_entrydistribution", "submitUpdate");
			params.add("id", id);
		}
		
		public void id(String multirequestToken) {
			params.add("id", multirequestToken);
		}
	}

	/**
	 * Submits Entry Distribution changes to the remote destination
	 * 
	 * @param id 
	 */
    public static SubmitUpdateEntryDistributionBuilder submitUpdate(int id)  {
		return new SubmitUpdateEntryDistributionBuilder(id);
	}
	
	public static class UpdateEntryDistributionBuilder extends RequestBuilder {
		
		public UpdateEntryDistributionBuilder(int id, EntryDistribution entryDistribution) {
			super(EntryDistribution.class, "contentdistribution_entrydistribution", "update");
			params.add("id", id);
			params.add("entryDistribution", entryDistribution);
		}
		
		public void id(String multirequestToken) {
			params.add("id", multirequestToken);
		}
	}

	/**
	 * Update Entry Distribution by id
	 * 
	 * @param id 
	 * @param entryDistribution 
	 */
    public static UpdateEntryDistributionBuilder update(int id, EntryDistribution entryDistribution)  {
		return new UpdateEntryDistributionBuilder(id, entryDistribution);
	}
	
	public static class ValidateEntryDistributionBuilder extends RequestBuilder {
		
		public ValidateEntryDistributionBuilder(int id) {
			super(EntryDistribution.class, "contentdistribution_entrydistribution", "validate");
			params.add("id", id);
		}
		
		public void id(String multirequestToken) {
			params.add("id", multirequestToken);
		}
	}

	/**
	 * Validates Entry Distribution by id for submission
	 * 
	 * @param id 
	 */
    public static ValidateEntryDistributionBuilder validate(int id)  {
		return new ValidateEntryDistributionBuilder(id);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy