Skip to content

Commit f743acf

Browse files
v1.0.0 - Removed Support Of Marketplace
1 parent aa34ae2 commit f743acf

File tree

1 file changed

+35
-50
lines changed

1 file changed

+35
-50
lines changed

src/main/java/com/contentstack/cms/stack/BulkOperation.java

Lines changed: 35 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
* @author ***REMOVED***
2424
* @version v1.0.0
2525
* @see <a href=
26-
* "https://www.contentstack.com/docs/developers/apis/content-management-api/#bulk-publish-operation">
27-
* Bulk Operations Queue </a>
26+
* "https://www.contentstack.com/docs/developers/apis/content-management-api/#bulk-publish-operation">
27+
* Bulk Operations Queue </a>
2828
* @since 2023 -08-23
2929
*/
3030
public class BulkOperation implements BaseImplementation {
@@ -46,8 +46,7 @@ public class BulkOperation implements BaseImplementation {
4646
/**
4747
* Instantiates a new Bulk operation.
4848
*
49-
* @param retrofit
50-
* the retrofit
49+
* @param retrofit the retrofit
5150
*/
5251
protected BulkOperation(Retrofit retrofit) {
5352
this.headers = new HashMap<>();
@@ -84,17 +83,16 @@ protected BulkOperation(Retrofit retrofit) {
8483
* {@link #addHeader(String, String)}.
8584
* </p>
8685
*
87-
* @param body
88-
* The JSON object containing the data to be published.
86+
* @param body The JSON object containing the data to be published.
8987
* @return Call object for the API request.
9088
* @see <a
91-
* href=
92-
* "https://www.contentstack.com/docs/developers/apis/content-management-api/#publish-entries-and-assets-in-bulk">
93-
* Publish entries and assets in bulk </a>
89+
* href=
90+
* "https://www.contentstack.com/docs/developers/apis/content-management-api/#publish-entries-and-assets-in-bulk">
91+
* Publish entries and assets in bulk </a>
9492
* @see #addHeader(String, String) #addHeader(String, String)to add headers in
95-
* {@link #publish(JSONObject)}.
93+
* {@link #publish(JSONObject)}.
9694
* @see #addParam(String, Object) #addParam(String, Object)to add query
97-
* parameters in {@link #publish(JSONObject)}.
95+
* parameters in {@link #publish(JSONObject)}.
9896
* @since 1.0.0
9997
*/
10098
public Call<ResponseBody> publish(@NotNull JSONObject body) {
@@ -130,15 +128,14 @@ public Call<ResponseBody> publish(@NotNull JSONObject body) {
130128
* approvals=true.
131129
* <p>
132130
*
133-
* @param body
134-
* the body
131+
* @param body the body
135132
* @return Call call
136133
* @see <a href=
137-
* "https://www.contentstack.com/docs/developers/apis/content-management-api/#bulk-unpublish-operation">Bulk
138-
* Unpublish Operation </a>
134+
* "https://www.contentstack.com/docs/developers/apis/content-management-api/#bulk-unpublish-operation">Bulk
135+
* Unpublish Operation </a>
139136
* @see #addHeader(String, String) #addHeader(String, String)to add headers
140137
* @see #addParam(String, Object) #addParam(String, Object)to add query
141-
* parameters
138+
* parameters
142139
* @since 0.1.0
143140
*/
144141
public Call<ResponseBody> unpublish(@NotNull JSONObject body) {
@@ -161,15 +158,14 @@ public Call<ResponseBody> unpublish(@NotNull JSONObject body) {
161158
* Read more about authentication.
162159
* <p>
163160
*
164-
* @param body
165-
* the body
161+
* @param body the body
166162
* @return Call call
167163
* @see <a href=
168-
* "https://www.contentstack.com/docs/developers/apis/content-management-api/#delete-entries-and-assets-in-bulk">Bulk
169-
* Delete Operation </a>
164+
* "https://www.contentstack.com/docs/developers/apis/content-management-api/#delete-entries-and-assets-in-bulk">Bulk
165+
* Delete Operation </a>
170166
* @see #addHeader(String, String) #addHeader(String, String)to add headers
171167
* @see #addParam(String, Object) #addParam(String, Object)to add query
172-
* parameters
168+
* parameters
173169
* @since 0.1.0
174170
*/
175171
public Call<ResponseBody> delete(JSONObject body) {
@@ -193,15 +189,14 @@ public Call<ResponseBody> delete(JSONObject body) {
193189
* assigned the same workflow stage and are associated with the same workflow.
194190
* <p>
195191
*
196-
* @param body
197-
* the body
192+
* @param body the body
198193
* @return Call call
199194
* @see <a href=
200-
* "https://www.contentstack.com/docs/developers/apis/content-management-api/#delete-entries-and-assets-in-bulk">Bulk
201-
* Delete Operation </a>
195+
* "https://www.contentstack.com/docs/developers/apis/content-management-api/#delete-entries-and-assets-in-bulk">Bulk
196+
* Delete Operation </a>
202197
* @see #addHeader(String, String) #addHeader(String, String)to add headers
203198
* @see #addParam(String, Object) #addParam(String, Object)to add query
204-
* parameters
199+
* parameters
205200
* @since 0.1.0
206201
*/
207202
public Call<ResponseBody> updateWorkflow(@NotNull JSONObject body) {
@@ -212,13 +207,10 @@ public Call<ResponseBody> updateWorkflow(@NotNull JSONObject body) {
212207
* Adds a header with the specified key and value to this location and returns
213208
* the updated location.
214209
*
215-
* @param key
216-
* the key of the header to be added
217-
* @param value
218-
* the value of the header to be added
219-
* @return a new {@link App} object with the specified header added
220-
* @throws NullPointerException
221-
* if the key or value argument is null
210+
* @param key the key of the header to be added
211+
* @param value the value of the header to be added
212+
* @return a new {@link BulkOperation} object with the specified param added
213+
* @throws NullPointerException if the key or value argument is null
222214
*/
223215
@Override
224216
public BulkOperation addParam(@NotNull String key, @NotNull Object value) {
@@ -230,13 +222,10 @@ public BulkOperation addParam(@NotNull String key, @NotNull Object value) {
230222
* Adds a header with the specified key and value to this location and returns
231223
* the updated location.
232224
*
233-
* @param key
234-
* the key of the header to be added
235-
* @param value
236-
* the value of the header to be added
237-
* @return a new {@link App} object with the specified header added
238-
* @throws NullPointerException
239-
* if the key or value argument is null
225+
* @param key the key of the header to be added
226+
* @param value the value of the header to be added
227+
* @return a new {@link BulkOperation} object with the specified header added
228+
* @throws NullPointerException if the key or value argument is null
240229
*/
241230
@Override
242231
public BulkOperation addHeader(@NotNull String key, @NotNull String value) {
@@ -248,11 +237,9 @@ public BulkOperation addHeader(@NotNull String key, @NotNull String value) {
248237
* Adds the specified parameters to this location and returns the updated
249238
* location.
250239
*
251-
* @param params
252-
* a {@link HashMap} containing the parameters to be added
253-
* @return a new {@link App} object with the specified parameters added
254-
* @throws NullPointerException
255-
* if the params argument is null
240+
* @param params a {@link HashMap} containing the parameters to be added
241+
* @return a new {@link BulkOperation} object with the specified parameters added
242+
* @throws NullPointerException if the params argument is null
256243
*/
257244
@Override
258245
public BulkOperation addParams(@NotNull HashMap params) {
@@ -264,11 +251,9 @@ public BulkOperation addParams(@NotNull HashMap params) {
264251
* Adds the specified parameters to this location and returns the updated
265252
* location.
266253
*
267-
* @param headers
268-
* a {@link HashMap} containing the parameters to be added
269-
* @return a new {@link App} object with the specified parameters added
270-
* @throws NullPointerException
271-
* if the params argument is null
254+
* @param headers a {@link HashMap} containing the parameters to be added
255+
* @return a new {@link BulkOperation} object with the specified headers added
256+
* @throws NullPointerException if the params argument is null
272257
*/
273258
@Override
274259
public BulkOperation addHeaders(@NotNull HashMap headers) {

0 commit comments

Comments
 (0)