com.kaltura.client.services.CategoryEntryService Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kalturaApiClient Show documentation
Show all versions of kalturaApiClient Show documentation
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
// ===================================================================================================
// _ __ _ _
// | |/ /__ _| | |_ _ _ _ _ __ _
// | ' _` | | _| || | '_/ _` |
// |_|\_\__,_|_|\__|\_,_|_| \__,_|
//
// This file is part of the Kaltura Collaborative Media Suite which allows users
// to do with audio, video, and animation what Wiki platfroms allow them to do with
// text.
//
// Copyright (C) 2006-2018 Kaltura Inc.
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
//
// @ignore
// ===================================================================================================
package com.kaltura.client.services;
import com.kaltura.client.types.BulkServiceData;
import com.kaltura.client.types.BulkUpload;
import com.kaltura.client.types.BulkUploadCategoryEntryData;
import com.kaltura.client.types.CategoryEntry;
import com.kaltura.client.types.CategoryEntryFilter;
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;
/**
* This class was generated using generate.php
* against an XML schema provided by Kaltura.
*
* MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN.
*/
/**
* Add & Manage CategoryEntry - assign entry to category
*
* @param entryId
* @param categoryId
* @param categoryEntry
* @param bulkUploadData
* @param bulkUploadCategoryEntryData
* @param entryId
* @param categoryId
* @param entryId
* @param categoryId
* @param shouldUpdate
* @param filter
* @param pager
* @param entryId
* @param categoryId
* @param entryId
* @param categoryId
*/
public class CategoryEntryService {
public static class ActivateCategoryEntryBuilder extends NullRequestBuilder {
public ActivateCategoryEntryBuilder(String entryId, int categoryId) {
super("categoryentry", "activate");
params.add("entryId", entryId);
params.add("categoryId", categoryId);
}
public void entryId(String multirequestToken) {
params.add("entryId", multirequestToken);
}
public void categoryId(String multirequestToken) {
params.add("categoryId", multirequestToken);
}
}
/**
* activate CategoryEntry when it is pending moderation
*
* @param entryId
* @param categoryId
*/
public static ActivateCategoryEntryBuilder activate(String entryId, int categoryId) {
return new ActivateCategoryEntryBuilder(entryId, categoryId);
}
public static class AddCategoryEntryBuilder extends RequestBuilder {
public AddCategoryEntryBuilder(CategoryEntry categoryEntry) {
super(CategoryEntry.class, "categoryentry", "add");
params.add("categoryEntry", categoryEntry);
}
}
/**
* Add new CategoryEntry
*
* @param categoryEntry
*/
public static AddCategoryEntryBuilder add(CategoryEntry categoryEntry) {
return new AddCategoryEntryBuilder(categoryEntry);
}
public static class AddFromBulkUploadCategoryEntryBuilder extends RequestBuilder {
public AddFromBulkUploadCategoryEntryBuilder(BulkServiceData bulkUploadData, BulkUploadCategoryEntryData bulkUploadCategoryEntryData) {
super(BulkUpload.class, "categoryentry", "addFromBulkUpload");
params.add("bulkUploadData", bulkUploadData);
params.add("bulkUploadCategoryEntryData", bulkUploadCategoryEntryData);
}
}
public static AddFromBulkUploadCategoryEntryBuilder addFromBulkUpload(BulkServiceData bulkUploadData) {
return addFromBulkUpload(bulkUploadData, null);
}
public static AddFromBulkUploadCategoryEntryBuilder addFromBulkUpload(BulkServiceData bulkUploadData, BulkUploadCategoryEntryData bulkUploadCategoryEntryData) {
return new AddFromBulkUploadCategoryEntryBuilder(bulkUploadData, bulkUploadCategoryEntryData);
}
public static class DeleteCategoryEntryBuilder extends NullRequestBuilder {
public DeleteCategoryEntryBuilder(String entryId, int categoryId) {
super("categoryentry", "delete");
params.add("entryId", entryId);
params.add("categoryId", categoryId);
}
public void entryId(String multirequestToken) {
params.add("entryId", multirequestToken);
}
public void categoryId(String multirequestToken) {
params.add("categoryId", multirequestToken);
}
}
/**
* Delete CategoryEntry
*
* @param entryId
* @param categoryId
*/
public static DeleteCategoryEntryBuilder delete(String entryId, int categoryId) {
return new DeleteCategoryEntryBuilder(entryId, categoryId);
}
public static class IndexCategoryEntryBuilder extends RequestBuilder {
public IndexCategoryEntryBuilder(String entryId, int categoryId, boolean shouldUpdate) {
super(Integer.class, "categoryentry", "index");
params.add("entryId", entryId);
params.add("categoryId", categoryId);
params.add("shouldUpdate", shouldUpdate);
}
public void entryId(String multirequestToken) {
params.add("entryId", multirequestToken);
}
public void categoryId(String multirequestToken) {
params.add("categoryId", multirequestToken);
}
public void shouldUpdate(String multirequestToken) {
params.add("shouldUpdate", multirequestToken);
}
}
public static IndexCategoryEntryBuilder index(String entryId, int categoryId) {
return index(entryId, categoryId, true);
}
/**
* Index CategoryEntry by Id
*
* @param entryId
* @param categoryId
* @param shouldUpdate
*/
public static IndexCategoryEntryBuilder index(String entryId, int categoryId, boolean shouldUpdate) {
return new IndexCategoryEntryBuilder(entryId, categoryId, shouldUpdate);
}
public static class ListCategoryEntryBuilder extends ListResponseRequestBuilder {
public ListCategoryEntryBuilder(CategoryEntryFilter filter, FilterPager pager) {
super(CategoryEntry.class, "categoryentry", "list");
params.add("filter", filter);
params.add("pager", pager);
}
}
public static ListCategoryEntryBuilder list() {
return list(null);
}
public static ListCategoryEntryBuilder list(CategoryEntryFilter filter) {
return list(filter, null);
}
/**
* List all categoryEntry
*
* @param filter
* @param pager
*/
public static ListCategoryEntryBuilder list(CategoryEntryFilter filter, FilterPager pager) {
return new ListCategoryEntryBuilder(filter, pager);
}
public static class RejectCategoryEntryBuilder extends NullRequestBuilder {
public RejectCategoryEntryBuilder(String entryId, int categoryId) {
super("categoryentry", "reject");
params.add("entryId", entryId);
params.add("categoryId", categoryId);
}
public void entryId(String multirequestToken) {
params.add("entryId", multirequestToken);
}
public void categoryId(String multirequestToken) {
params.add("categoryId", multirequestToken);
}
}
/**
* activate CategoryEntry when it is pending moderation
*
* @param entryId
* @param categoryId
*/
public static RejectCategoryEntryBuilder reject(String entryId, int categoryId) {
return new RejectCategoryEntryBuilder(entryId, categoryId);
}
public static class SyncPrivacyContextCategoryEntryBuilder extends NullRequestBuilder {
public SyncPrivacyContextCategoryEntryBuilder(String entryId, int categoryId) {
super("categoryentry", "syncPrivacyContext");
params.add("entryId", entryId);
params.add("categoryId", categoryId);
}
public void entryId(String multirequestToken) {
params.add("entryId", multirequestToken);
}
public void categoryId(String multirequestToken) {
params.add("categoryId", multirequestToken);
}
}
/**
* update privacy context from the category
*
* @param entryId
* @param categoryId
*/
public static SyncPrivacyContextCategoryEntryBuilder syncPrivacyContext(String entryId, int categoryId) {
return new SyncPrivacyContextCategoryEntryBuilder(entryId, categoryId);
}
}