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

com.kaltura.client.services.ScheduleResourceService 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.FileHolder;
import com.kaltura.client.Files;
import com.kaltura.client.types.BulkUpload;
import com.kaltura.client.types.BulkUploadCsvJobData;
import com.kaltura.client.types.FilterPager;
import com.kaltura.client.types.ScheduleResource;
import com.kaltura.client.types.ScheduleResourceFilter;
import com.kaltura.client.utils.request.ListResponseRequestBuilder;
import com.kaltura.client.utils.request.RequestBuilder;
import java.io.File;
import java.io.FileInputStream;
import java.io.InputStream;

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

/**
 * The ScheduleResource service enables you to create and manage (update, delete,
  retrieve, etc.) the resources required for scheduled events (cameras, capture
  devices, etc.).
 * 
 * @param scheduleResource 
 * @param fileData 
 * @param bulkUploadData 
 * @param scheduleResourceId 
 * @param scheduleResourceId 
 * @param filter 
 * @param pager 
 * @param scheduleResourceId 
 * @param scheduleResource Id
 */
public class ScheduleResourceService {
	
	public static class AddScheduleResourceBuilder extends RequestBuilder {
		
		public AddScheduleResourceBuilder(ScheduleResource scheduleResource) {
			super(ScheduleResource.class, "schedule_scheduleresource", "add");
			params.add("scheduleResource", scheduleResource);
		}
	}

	/**
	 * Allows you to add a new KalturaScheduleResource object
	 * 
	 * @param scheduleResource 
	 */
    public static AddScheduleResourceBuilder add(ScheduleResource scheduleResource)  {
		return new AddScheduleResourceBuilder(scheduleResource);
	}
	
	public static class AddFromBulkUploadScheduleResourceBuilder extends RequestBuilder {
		
		public AddFromBulkUploadScheduleResourceBuilder(FileHolder fileData, BulkUploadCsvJobData bulkUploadData) {
			super(BulkUpload.class, "schedule_scheduleresource", "addFromBulkUpload");
			files = new Files();
			files.add("fileData", fileData);
			params.add("bulkUploadData", bulkUploadData);
		}
	}

	public static AddFromBulkUploadScheduleResourceBuilder addFromBulkUpload(FileHolder fileData)  {
		return addFromBulkUpload(fileData, null);
	}

	public static AddFromBulkUploadScheduleResourceBuilder addFromBulkUpload(File fileData)  {
		return addFromBulkUpload(new FileHolder(fileData), null);
	}

	public static AddFromBulkUploadScheduleResourceBuilder addFromBulkUpload(InputStream fileData, String fileDataMimeType, String fileDataName, long fileDataSize)  {
		return addFromBulkUpload(new FileHolder(fileData, fileDataMimeType, fileDataName, fileDataSize), null);
	}

	public static AddFromBulkUploadScheduleResourceBuilder addFromBulkUpload(FileInputStream fileData, String fileDataMimeType, String fileDataName)  {
		return addFromBulkUpload(new FileHolder(fileData, fileDataMimeType, fileDataName), null);
	}

	public static AddFromBulkUploadScheduleResourceBuilder addFromBulkUpload(File fileData, BulkUploadCsvJobData bulkUploadData)  {
		return addFromBulkUpload(new FileHolder(fileData), bulkUploadData);
	}

	public static AddFromBulkUploadScheduleResourceBuilder addFromBulkUpload(InputStream fileData, String fileDataMimeType, String fileDataName, long fileDataSize, BulkUploadCsvJobData bulkUploadData)  {
		return addFromBulkUpload(new FileHolder(fileData, fileDataMimeType, fileDataName, fileDataSize), bulkUploadData);
	}

	public static AddFromBulkUploadScheduleResourceBuilder addFromBulkUpload(FileInputStream fileData, String fileDataMimeType, String fileDataName, BulkUploadCsvJobData bulkUploadData)  {
		return addFromBulkUpload(new FileHolder(fileData, fileDataMimeType, fileDataName), bulkUploadData);
	}

	/**
	 * Add new bulk upload batch job
	 * 
	 * @param fileData 
	 * @param bulkUploadData 
	 */
    public static AddFromBulkUploadScheduleResourceBuilder addFromBulkUpload(FileHolder fileData, BulkUploadCsvJobData bulkUploadData)  {
		return new AddFromBulkUploadScheduleResourceBuilder(fileData, bulkUploadData);
	}
	
	public static class DeleteScheduleResourceBuilder extends RequestBuilder {
		
		public DeleteScheduleResourceBuilder(int scheduleResourceId) {
			super(ScheduleResource.class, "schedule_scheduleresource", "delete");
			params.add("scheduleResourceId", scheduleResourceId);
		}
		
		public void scheduleResourceId(String multirequestToken) {
			params.add("scheduleResourceId", multirequestToken);
		}
	}

	/**
	 * Mark the KalturaScheduleResource object as deleted
	 * 
	 * @param scheduleResourceId 
	 */
    public static DeleteScheduleResourceBuilder delete(int scheduleResourceId)  {
		return new DeleteScheduleResourceBuilder(scheduleResourceId);
	}
	
	public static class GetScheduleResourceBuilder extends RequestBuilder {
		
		public GetScheduleResourceBuilder(int scheduleResourceId) {
			super(ScheduleResource.class, "schedule_scheduleresource", "get");
			params.add("scheduleResourceId", scheduleResourceId);
		}
		
		public void scheduleResourceId(String multirequestToken) {
			params.add("scheduleResourceId", multirequestToken);
		}
	}

	/**
	 * Retrieve a KalturaScheduleResource object by ID
	 * 
	 * @param scheduleResourceId 
	 */
    public static GetScheduleResourceBuilder get(int scheduleResourceId)  {
		return new GetScheduleResourceBuilder(scheduleResourceId);
	}
	
	public static class ListScheduleResourceBuilder extends ListResponseRequestBuilder {
		
		public ListScheduleResourceBuilder(ScheduleResourceFilter filter, FilterPager pager) {
			super(ScheduleResource.class, "schedule_scheduleresource", "list");
			params.add("filter", filter);
			params.add("pager", pager);
		}
	}

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

	public static ListScheduleResourceBuilder list(ScheduleResourceFilter filter)  {
		return list(filter, null);
	}

	/**
	 * List KalturaScheduleResource objects
	 * 
	 * @param filter 
	 * @param pager 
	 */
    public static ListScheduleResourceBuilder list(ScheduleResourceFilter filter, FilterPager pager)  {
		return new ListScheduleResourceBuilder(filter, pager);
	}
	
	public static class UpdateScheduleResourceBuilder extends RequestBuilder {
		
		public UpdateScheduleResourceBuilder(int scheduleResourceId, ScheduleResource scheduleResource) {
			super(ScheduleResource.class, "schedule_scheduleresource", "update");
			params.add("scheduleResourceId", scheduleResourceId);
			params.add("scheduleResource", scheduleResource);
		}
		
		public void scheduleResourceId(String multirequestToken) {
			params.add("scheduleResourceId", multirequestToken);
		}
	}

	/**
	 * Update an existing KalturaScheduleResource object
	 * 
	 * @param scheduleResourceId 
	 * @param scheduleResource Id
	 */
    public static UpdateScheduleResourceBuilder update(int scheduleResourceId, ScheduleResource scheduleResource)  {
		return new UpdateScheduleResourceBuilder(scheduleResourceId, scheduleResource);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy