public class ModuleScheduledActions extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
ModuleScheduledActions.Async
Async module.
|
| Constructor and Description |
|---|
ModuleScheduledActions(retrofit2.Retrofit retrofit,
Executor callbackExecutor,
String spaceId,
String environmentId,
boolean environmentIdConfigured)
Create scheduled actions module.
|
| Modifier and Type | Method and Description |
|---|---|
ModuleScheduledActions.Async |
async() |
CMAScheduledAction |
cancel(String scheduledActionId)
Cancel a scheduled action.
|
CMAScheduledAction |
create(CMAScheduledAction scheduledAction)
Create a new scheduled action.
|
protected com.contentful.java.cma.ServiceScheduledActions |
createService(retrofit2.Retrofit retrofit) |
CMAArray<CMAScheduledAction> |
fetchAll()
Fetch all scheduled actions.
|
CMAArray<CMAScheduledAction> |
fetchAll(String spaceId,
String environmentId)
Fetch all scheduled actions in the given space and environment.
|
CMAScheduledAction |
fetchOne(String scheduledActionId,
String entityId)
Fetch a scheduled action by ID.
|
CMAScheduledAction |
fetchOne(String spaceId,
String environmentId,
String scheduledActionId,
String entityId)
Fetch a scheduled action by ID from a specific space and environment.
|
CMAScheduledAction |
update(String scheduledActionId,
CMAScheduledAction scheduledAction)
Update an existing scheduled action.
|
public ModuleScheduledActions(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.ServiceScheduledActions createService(retrofit2.Retrofit retrofit)
public CMAArray<CMAScheduledAction> fetchAll()
CMAArray result instanceIllegalArgumentException - if spaceId or environmentId is null.public CMAArray<CMAScheduledAction> fetchAll(String spaceId, String environmentId)
spaceId - Space IDenvironmentId - Environment IDCMAArray of scheduled actions matching the query.IllegalArgumentException - if spaceId, entityId, or environmentId is null.public CMAScheduledAction fetchOne(String scheduledActionId, String entityId)
scheduledActionId - Scheduled action IDentityId - Entity IDCMAScheduledAction result instanceIllegalArgumentException - if spaceId, environmentId, or actionId is null.public CMAScheduledAction fetchOne(String spaceId, String environmentId, String scheduledActionId, String entityId)
spaceId - Space IDenvironmentId - Environment IDscheduledActionId - Scheduled action IDentityId - Entity IDCMAScheduledAction result instanceIllegalArgumentException - if spaceId, environmentId, actionId, or entityId is null.public CMAScheduledAction create(CMAScheduledAction scheduledAction)
CMAScheduledAction result instancepublic CMAScheduledAction update(String scheduledActionId, CMAScheduledAction scheduledAction)
scheduledActionId - Scheduled action IDCMAScheduledAction result instancepublic CMAScheduledAction cancel(String scheduledActionId)
scheduledActionId - Scheduled action IDCMAScheduledAction result instancepublic ModuleScheduledActions.Async async()
Copyright © 2026 Contentful, GmbH.. All rights reserved.