public class ModuleBulkActions extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
ModuleBulkActions.Async
Async module.
|
| Constructor and Description |
|---|
ModuleBulkActions(retrofit2.Retrofit retrofit,
Executor callbackExecutor,
String spaceId,
String environmentId,
boolean environmentIdConfigured)
Create bulk actions module.
|
| Modifier and Type | Method and Description |
|---|---|
ModuleBulkActions.Async |
async() |
protected com.contentful.java.cma.ServiceBulkActions |
createService(retrofit2.Retrofit retrofit) |
CMABulkAction |
fetch(String spaceId,
String environmentId,
String bulkActionId)
Fetch a bulk action using the given bulkActionId.
|
CMABulkAction |
publish(String spaceId,
String environmentId,
CMAPayload payload)
Publish a bulk action.
|
CMABulkAction |
unpublish(String spaceId,
String environmentId,
CMAPayload payload)
Unpublish a bulk action.
|
CMABulkAction |
validate(String spaceId,
String environmentId,
CMAPayload payload)
Validate a bulk action.
|
public ModuleBulkActions(retrofit2.Retrofit retrofit,
Executor callbackExecutor,
String spaceId,
String environmentId,
boolean environmentIdConfigured)
retrofit - the retrofit instance to be used to create the service.callbackExecutor - to tell on which thread it should run.spaceId - the space to be used when not given.environmentId - the environment to be used when not given.environmentIdConfigured - internal helper to see if environment was set.protected com.contentful.java.cma.ServiceBulkActions createService(retrofit2.Retrofit retrofit)
public CMABulkAction fetch(String spaceId, String environmentId, String bulkActionId)
CMABulkAction result instanceIllegalArgumentException - if space id is null.public CMABulkAction publish(String spaceId, String environmentId, CMAPayload payload)
CMABulkAction result instanceIllegalArgumentException - if spaceId's space id is null.IllegalArgumentException - if payload's id is null.public CMABulkAction unpublish(String spaceId, String environmentId, CMAPayload payload)
CMABulkAction result instanceIllegalArgumentException - if spaceId's space id is null.IllegalArgumentException - if payload's id is null.public CMABulkAction validate(String spaceId, String environmentId, CMAPayload payload)
CMABulkAction result instanceIllegalArgumentException - if spaceId's space id is null.IllegalArgumentException - if payload's id is null.public ModuleBulkActions.Async async()
Copyright © 2026 Contentful, GmbH.. All rights reserved.