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

com.kaltura.client.services.AttachmentAssetService 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.types.AssetFilter;
import com.kaltura.client.types.AttachmentAsset;
import com.kaltura.client.types.AttachmentServeOptions;
import com.kaltura.client.types.ContentResource;
import com.kaltura.client.types.FilterPager;
import com.kaltura.client.types.RemotePath;
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.
 */

/**
 * Retrieve information and invoke actions on attachment Asset
 * 
 * @param entryId 
 * @param attachmentAsset 
 * @param attachmentAssetId 
 * @param attachmentAssetId 
 * @param id 
 * @param id 
 * @param storageId 
 * @param filter 
 * @param pager 
 * @param attachmentAssetId 
 * @param serveOptions 
 * @param id 
 * @param contentResource 
 * @param id 
 * @param attachmentAsset 
 */
public class AttachmentAssetService {
	
	public static class AddAttachmentAssetBuilder extends RequestBuilder {
		
		public AddAttachmentAssetBuilder(String entryId, AttachmentAsset attachmentAsset) {
			super(AttachmentAsset.class, "attachment_attachmentasset", "add");
			params.add("entryId", entryId);
			params.add("attachmentAsset", attachmentAsset);
		}
		
		public void entryId(String multirequestToken) {
			params.add("entryId", multirequestToken);
		}
	}

	/**
	 * Add attachment asset
	 * 
	 * @param entryId 
	 * @param attachmentAsset 
	 */
    public static AddAttachmentAssetBuilder add(String entryId, AttachmentAsset attachmentAsset)  {
		return new AddAttachmentAssetBuilder(entryId, attachmentAsset);
	}
	
	public static class DeleteAttachmentAssetBuilder extends NullRequestBuilder {
		
		public DeleteAttachmentAssetBuilder(String attachmentAssetId) {
			super("attachment_attachmentasset", "delete");
			params.add("attachmentAssetId", attachmentAssetId);
		}
		
		public void attachmentAssetId(String multirequestToken) {
			params.add("attachmentAssetId", multirequestToken);
		}
	}

    public static DeleteAttachmentAssetBuilder delete(String attachmentAssetId)  {
		return new DeleteAttachmentAssetBuilder(attachmentAssetId);
	}
	
	public static class GetAttachmentAssetBuilder extends RequestBuilder {
		
		public GetAttachmentAssetBuilder(String attachmentAssetId) {
			super(AttachmentAsset.class, "attachment_attachmentasset", "get");
			params.add("attachmentAssetId", attachmentAssetId);
		}
		
		public void attachmentAssetId(String multirequestToken) {
			params.add("attachmentAssetId", multirequestToken);
		}
	}

    public static GetAttachmentAssetBuilder get(String attachmentAssetId)  {
		return new GetAttachmentAssetBuilder(attachmentAssetId);
	}
	
	public static class GetRemotePathsAttachmentAssetBuilder extends ListResponseRequestBuilder {
		
		public GetRemotePathsAttachmentAssetBuilder(String id) {
			super(RemotePath.class, "attachment_attachmentasset", "getRemotePaths");
			params.add("id", id);
		}
		
		public void id(String multirequestToken) {
			params.add("id", multirequestToken);
		}
	}

	/**
	 * Get remote storage existing paths for the asset
	 * 
	 * @param id 
	 */
    public static GetRemotePathsAttachmentAssetBuilder getRemotePaths(String id)  {
		return new GetRemotePathsAttachmentAssetBuilder(id);
	}
	
	public static class GetUrlAttachmentAssetBuilder extends RequestBuilder {
		
		public GetUrlAttachmentAssetBuilder(String id, int storageId) {
			super(String.class, "attachment_attachmentasset", "getUrl");
			params.add("id", id);
			params.add("storageId", storageId);
		}
		
		public void id(String multirequestToken) {
			params.add("id", multirequestToken);
		}
		
		public void storageId(String multirequestToken) {
			params.add("storageId", multirequestToken);
		}
	}

	public static GetUrlAttachmentAssetBuilder getUrl(String id)  {
		return getUrl(id, Integer.MIN_VALUE);
	}

	/**
	 * Get download URL for the asset
	 * 
	 * @param id 
	 * @param storageId 
	 */
    public static GetUrlAttachmentAssetBuilder getUrl(String id, int storageId)  {
		return new GetUrlAttachmentAssetBuilder(id, storageId);
	}
	
	public static class ListAttachmentAssetBuilder extends ListResponseRequestBuilder {
		
		public ListAttachmentAssetBuilder(AssetFilter filter, FilterPager pager) {
			super(AttachmentAsset.class, "attachment_attachmentasset", "list");
			params.add("filter", filter);
			params.add("pager", pager);
		}
	}

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

	public static ListAttachmentAssetBuilder list(AssetFilter filter)  {
		return list(filter, null);
	}

	/**
	 * List attachment Assets by filter and pager
	 * 
	 * @param filter 
	 * @param pager 
	 */
    public static ListAttachmentAssetBuilder list(AssetFilter filter, FilterPager pager)  {
		return new ListAttachmentAssetBuilder(filter, pager);
	}
	
	public static class ServeAttachmentAssetBuilder extends ServeRequestBuilder {
		
		public ServeAttachmentAssetBuilder(String attachmentAssetId, AttachmentServeOptions serveOptions) {
			super("attachment_attachmentasset", "serve");
			params.add("attachmentAssetId", attachmentAssetId);
			params.add("serveOptions", serveOptions);
		}
		
		public void attachmentAssetId(String multirequestToken) {
			params.add("attachmentAssetId", multirequestToken);
		}
	}

	public static ServeAttachmentAssetBuilder serve(String attachmentAssetId)  {
		return serve(attachmentAssetId, null);
	}

	/**
	 * Serves attachment by its id
	 * 
	 * @param attachmentAssetId 
	 * @param serveOptions 
	 */
    public static ServeAttachmentAssetBuilder serve(String attachmentAssetId, AttachmentServeOptions serveOptions)  {
		return new ServeAttachmentAssetBuilder(attachmentAssetId, serveOptions);
	}
	
	public static class SetContentAttachmentAssetBuilder extends RequestBuilder {
		
		public SetContentAttachmentAssetBuilder(String id, ContentResource contentResource) {
			super(AttachmentAsset.class, "attachment_attachmentasset", "setContent");
			params.add("id", id);
			params.add("contentResource", contentResource);
		}
		
		public void id(String multirequestToken) {
			params.add("id", multirequestToken);
		}
	}

	/**
	 * Update content of attachment asset
	 * 
	 * @param id 
	 * @param contentResource 
	 */
    public static SetContentAttachmentAssetBuilder setContent(String id, ContentResource contentResource)  {
		return new SetContentAttachmentAssetBuilder(id, contentResource);
	}
	
	public static class UpdateAttachmentAssetBuilder extends RequestBuilder {
		
		public UpdateAttachmentAssetBuilder(String id, AttachmentAsset attachmentAsset) {
			super(AttachmentAsset.class, "attachment_attachmentasset", "update");
			params.add("id", id);
			params.add("attachmentAsset", attachmentAsset);
		}
		
		public void id(String multirequestToken) {
			params.add("id", multirequestToken);
		}
	}

	/**
	 * Update attachment asset
	 * 
	 * @param id 
	 * @param attachmentAsset 
	 */
    public static UpdateAttachmentAssetBuilder update(String id, AttachmentAsset attachmentAsset)  {
		return new UpdateAttachmentAssetBuilder(id, attachmentAsset);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy