public class ModuleTags extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
ModuleTags.Async
Async module.
|
| Constructor and Description |
|---|
ModuleTags(retrofit2.Retrofit retrofit,
Executor callbackExecutor,
String spaceId,
String environmentId,
boolean environmentIdConfigured)
Create tags module.
|
| Modifier and Type | Method and Description |
|---|---|
ModuleTags.Async |
async() |
CMATag |
create(String environmentId,
String spaceId,
String tagId,
String name,
CMAVisibility visibility)
Create an tag using the given tag id.
|
protected com.contentful.java.cma.ServiceContentTags |
createService(retrofit2.Retrofit retrofit) |
Integer |
delete(String spaceId,
String environmentId,
String tagId)
Delete an tag.
|
CMAArray<CMATag> |
fetchAll()
Fetch all tags of the configured space.
|
CMAArray<CMATag> |
fetchAll(String spaceId,
String environmentId,
Map<String,String> query)
Fetch all tag of the given space with query
|
CMATag |
fetchOne(String tagId)
Fetch a tag with a given
environmentId from the configured space. |
CMATag |
fetchOne(String spaceId,
String environmentId,
String tagId)
Fetch a tag with a given
environmentId and space. |
CMATag |
update(String name,
String tagId)
Update a tag.
|
public ModuleTags(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.ServiceContentTags createService(retrofit2.Retrofit retrofit)
public CMATag create(String environmentId, String spaceId, String tagId, String name, CMAVisibility visibility)
This method will override the configuration specified through
CMAClient.Builder.setSpaceId(String).
CMATag result instanceIllegalArgumentException - if space id is null.public Integer delete(String spaceId, String environmentId, String tagId)
IllegalArgumentException - if environment's space id is null.IllegalArgumentException - if tag's id is null.public CMAArray<CMATag> fetchAll()
CMAArray result instanceIllegalArgumentException - if configured space id is null.CMAClient.Builder.setSpaceId(String)public CMAArray<CMATag> fetchAll(String spaceId, String environmentId, Map<String,String> query)
This method will override the configuration specified through
CMAClient.Builder.setSpaceId(String).
spaceId - space IDCMAArray result instanceIllegalArgumentException - if environment's space id is null.public CMATag fetchOne(String tagId)
environmentId from the configured space.tagId - tag IDCMATag result instanceIllegalArgumentException - if the configured space id is null.IllegalArgumentException - if environment's id is null.CMAClient.Builder.setSpaceId(String)public CMATag fetchOne(String spaceId, String environmentId, String tagId)
environmentId and space.
This method will override the configuration specified through
CMAClient.Builder.setSpaceId(String).
spaceId - space IDenvironmentId - environment IDCMATag result instanceIllegalArgumentException - if space id is null.IllegalArgumentException - if environment's id is null.public CMATag update(String name, String tagId)
CMATag result instanceIllegalArgumentException - if tag's name is null.IllegalArgumentException - if tag's id is null.public ModuleTags.Async async()
Copyright © 2026 Contentful, GmbH.. All rights reserved.