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

com.mozu.api.clients.content.DocumentDraftSummaryClient Maven / Gradle / Ivy

Go to download

Mozu Java is a SDK that enables you to create robust Java applications that integrate with the Mozu platform

There is a newer version: 2.6.1-RC1
Show newest version
/**
 *     This code was auto-generated by a Codezu.     
 *
 *     Changes to this file may cause incorrect behavior and will be lost if
 *     the code is regenerated.
 */
package com.mozu.api.clients.content;

import java.util.List;
import java.util.ArrayList;
import com.mozu.api.MozuClient;
import com.mozu.api.MozuClientFactory;
import com.mozu.api.MozuUrl;
import com.mozu.api.Headers;
import org.joda.time.DateTime;
import com.mozu.api.security.AuthTicket;
import org.apache.commons.lang.StringUtils;

/** 
 * Use the document publishing subresource to manage and publish document drafts in the Content service.
 * 
 */
public class DocumentDraftSummaryClient {
	
	/**
	 * 
	 * 


	 * MozuClient mozuClient=ListDocumentDraftSummariesClient();
	 * client.setBaseAddress(url);
	 * client.executeRequest();
	 * DocumentDraftSummaryPagedCollection documentDraftSummaryPagedCollection = client.Result();
	 * 

* @return Mozu.Api.MozuClient * @see com.mozu.api.contracts.content.DocumentDraftSummaryPagedCollection */ public static MozuClient listDocumentDraftSummariesClient() throws Exception { return listDocumentDraftSummariesClient( null, null, null, null); } /** * *


	 * MozuClient mozuClient=ListDocumentDraftSummariesClient( pageSize,  startIndex,  documentLists,  responseFields);
	 * client.setBaseAddress(url);
	 * client.executeRequest();
	 * DocumentDraftSummaryPagedCollection documentDraftSummaryPagedCollection = client.Result();
	 * 

* @param documentLists List of document lists that contain documents to delete. * @param pageSize When creating paged results from a query, this value indicates the zero-based offset in the complete result set where the returned entities begin. For example, with this parameter set to 25, to get the 51st through the 75th items, set startIndex to 50. * @param responseFields Filtering syntax appended to an API call to increase or decrease the amount of data returned inside a JSON object. This parameter should only be used to retrieve data. Attempting to update data using this parameter may cause data loss. * @param startIndex When creating paged results from a query, this value indicates the zero-based offset in the complete result set where the returned entities begin. For example, with pageSize set to 25, to get the 51st through the 75th items, set this parameter to 50. * @return Mozu.Api.MozuClient * @see com.mozu.api.contracts.content.DocumentDraftSummaryPagedCollection */ public static MozuClient listDocumentDraftSummariesClient(Integer pageSize, Integer startIndex, String documentLists, String responseFields) throws Exception { MozuUrl url = com.mozu.api.urls.content.DocumentDraftSummaryUrl.listDocumentDraftSummariesUrl(documentLists, pageSize, responseFields, startIndex); String verb = "GET"; Class clz = com.mozu.api.contracts.content.DocumentDraftSummaryPagedCollection.class; MozuClient mozuClient = (MozuClient) MozuClientFactory.getInstance(clz); mozuClient.setVerb(verb); mozuClient.setResourceUrl(url); return mozuClient; } /** * *


	 * MozuClient mozuClient=DeleteDocumentDraftsClient( documentIds);
	 * client.setBaseAddress(url);
	 * client.executeRequest();
	 * Stream stream = client.Result();
	 * 

* @param documentIds Unique identifiers of the documents to delete. * @return Mozu.Api.MozuClient * @see Stream * @see string */ public static MozuClient deleteDocumentDraftsClient(List documentIds) throws Exception { return deleteDocumentDraftsClient( documentIds, null); } /** * *


	 * MozuClient mozuClient=DeleteDocumentDraftsClient( documentIds,  documentLists);
	 * client.setBaseAddress(url);
	 * client.executeRequest();
	 * Stream stream = client.Result();
	 * 

* @param documentLists List of document lists that contain documents to delete. * @param documentIds Unique identifiers of the documents to delete. * @return Mozu.Api.MozuClient * @see Stream * @see string */ public static MozuClient deleteDocumentDraftsClient(List documentIds, String documentLists) throws Exception { MozuUrl url = com.mozu.api.urls.content.DocumentDraftSummaryUrl.deleteDocumentDraftsUrl(documentLists); String verb = "POST"; Class clz = java.io.InputStream.class; MozuClient mozuClient = (MozuClient) MozuClientFactory.getInstance(clz); mozuClient.setVerb(verb); mozuClient.setResourceUrl(url); mozuClient.setBody(documentIds); return mozuClient; } /** * *


	 * MozuClient mozuClient=PublishDocumentsClient( documentIds);
	 * client.setBaseAddress(url);
	 * client.executeRequest();
	 * Stream stream = client.Result();
	 * 

* @param documentIds Unique identifiers of the documents to delete. * @return Mozu.Api.MozuClient * @see Stream * @see string */ public static MozuClient publishDocumentsClient(List documentIds) throws Exception { return publishDocumentsClient( documentIds, null); } /** * *


	 * MozuClient mozuClient=PublishDocumentsClient( documentIds,  documentLists);
	 * client.setBaseAddress(url);
	 * client.executeRequest();
	 * Stream stream = client.Result();
	 * 

* @param documentLists List of document lists that contain documents to delete. * @param documentIds Unique identifiers of the documents to delete. * @return Mozu.Api.MozuClient * @see Stream * @see string */ public static MozuClient publishDocumentsClient(List documentIds, String documentLists) throws Exception { MozuUrl url = com.mozu.api.urls.content.DocumentDraftSummaryUrl.publishDocumentsUrl(documentLists); String verb = "PUT"; Class clz = java.io.InputStream.class; MozuClient mozuClient = (MozuClient) MozuClientFactory.getInstance(clz); mozuClient.setVerb(verb); mozuClient.setResourceUrl(url); mozuClient.setBody(documentIds); return mozuClient; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy