| Package | Description |
|---|---|
| com.contentful.java.cma | |
| com.contentful.java.cma.model |
| Modifier and Type | Method and Description |
|---|---|
CMAContentType |
ModuleContentTypes.create(CMAContentType contentType)
Create a new Content Type in the configured space and environment.
|
CMAContentType |
ModuleContentTypes.create(String spaceId,
String environmentId,
CMAContentType contentType)
Create a new Content Type in an Environment.
|
CMAContentType |
ModuleContentTypes.fetchOne(String contentTypeId)
Fetch a Content Type with the given
contentTypeId from the configured environment and
space. |
CMAContentType |
ModuleContentTypes.fetchOne(String spaceId,
String environmentId,
String contentTypeId)
Fetch a Content Type with the given
contentTypeId from a given space environment
combination. |
CMAContentType |
ModuleContentTypes.publish(CMAContentType contentType)
Publish a Content Type.
|
CMAContentType |
ModuleContentTypes.unPublish(CMAContentType contentType)
Un-Publish a Content Type.
|
CMAContentType |
ModuleContentTypes.update(CMAContentType contentType)
Update a Content Type.
|
| Modifier and Type | Method and Description |
|---|---|
CMACallback<CMAContentType> |
ModuleContentTypes.Async.create(CMAContentType contentType,
CMACallback<CMAContentType> callback)
Create a new Content Type using the configured space and environment.
|
CMACallback<CMAContentType> |
ModuleContentTypes.Async.create(String spaceId,
String environmentId,
CMAContentType contentType,
CMACallback<CMAContentType> callback)
Create a new Content Type in the given environment.
|
CMAArray<CMAContentType> |
ModuleContentTypes.fetchAll()
Fetch all Content Types from the configured space and environment, using default query
parameter.
|
CMACallback<CMAArray<CMAContentType>> |
ModuleContentTypes.Async.fetchAll(CMACallback<CMAArray<CMAContentType>> callback)
Fetch all Content Types from the configured space and environment.
|
CMAArray<CMAContentType> |
ModuleContentTypes.fetchAll(Map<String,String> query)
Fetch all Content Types from the configured space and environment, using default query
parameter.
|
CMACallback<CMAArray<CMAContentType>> |
ModuleContentTypes.Async.fetchAll(Map<String,String> query,
CMACallback<CMAArray<CMAContentType>> callback)
Fetch all Content Types from the configured space and environment with a query.
|
CMAArray<CMAContentType> |
ModuleContentTypes.fetchAll(String spaceId,
String environmentId)
Fetch all Content Types from an Environment, using default query parameter.
|
CMACallback<CMAArray<CMAContentType>> |
ModuleContentTypes.Async.fetchAll(String spaceId,
String environmentId,
CMACallback<CMAArray<CMAContentType>> callback)
Fetch all Content Types from the given space and environment.
|
CMAArray<CMAContentType> |
ModuleContentTypes.fetchAll(String spaceId,
String environmentId,
Map<String,String> query)
Fetch all Content Types from a Space with query parameters.
|
CMACallback<CMAArray<CMAContentType>> |
ModuleContentTypes.Async.fetchAll(String spaceId,
String environmentId,
Map<String,String> query,
CMACallback<CMAArray<CMAContentType>> callback)
Fetch all Content Types from the given space and environment using a query.
|
CMACallback<CMAContentType> |
ModuleContentTypes.Async.fetchOne(String contentTypeId,
CMACallback<CMAContentType> callback)
Fetch a Content Type with the given
contentTypeId from the configured space and
environment. |
CMACallback<CMAContentType> |
ModuleContentTypes.Async.fetchOne(String spaceId,
String environmentId,
String contentTypeId,
CMACallback<CMAContentType> callback)
Fetch a Content Type with the given
contentTypeId from the given space. |
CMACallback<CMAContentType> |
ModuleContentTypes.Async.publish(CMAContentType contentType,
CMACallback<CMAContentType> callback)
Publish a Content Type.
|
CMACallback<CMAContentType> |
ModuleContentTypes.Async.unPublish(CMAContentType contentType,
CMACallback<CMAContentType> callback)
Un-Publish a Content Type.
|
CMACallback<CMAContentType> |
ModuleContentTypes.Async.update(CMAContentType contentType,
CMACallback<CMAContentType> callback)
Update a Content Type.
|
| Modifier and Type | Method and Description |
|---|---|
CMAContentType |
ModuleContentTypes.create(CMAContentType contentType)
Create a new Content Type in the configured space and environment.
|
CMACallback<CMAContentType> |
ModuleContentTypes.Async.create(CMAContentType contentType,
CMACallback<CMAContentType> callback)
Create a new Content Type using the configured space and environment.
|
CMAContentType |
ModuleContentTypes.create(String spaceId,
String environmentId,
CMAContentType contentType)
Create a new Content Type in an Environment.
|
CMACallback<CMAContentType> |
ModuleContentTypes.Async.create(String spaceId,
String environmentId,
CMAContentType contentType,
CMACallback<CMAContentType> callback)
Create a new Content Type in the given environment.
|
Integer |
ModuleContentTypes.delete(CMAContentType contentType)
Delete a Content Type.
|
CMACallback<Integer> |
ModuleContentTypes.Async.delete(CMAContentType contentType,
CMACallback<Integer> callback)
Delete a Content Type.
|
CMAArray<CMASnapshot> |
ModuleContentTypes.fetchAllSnapshots(CMAContentType contentType)
Fetch all snapshots of this content type.
|
CMACallback<CMAArray<CMASnapshot>> |
ModuleContentTypes.Async.fetchAllSnapshots(CMAContentType contentType,
CMACallback<CMAArray<CMASnapshot>> callback)
Fetch all snapshots of this content type.
|
CMASnapshot |
ModuleContentTypes.fetchOneSnapshot(CMAContentType contentType,
String snapshotId)
Fetch a specific snapshot of this content type.
|
CMACallback<CMASnapshot> |
ModuleContentTypes.Async.fetchOneSnapshot(CMAContentType contentType,
String snapshotId,
CMACallback<CMASnapshot> callback)
Fetch a specific snapshot of this content type.
|
CMAContentType |
ModuleContentTypes.publish(CMAContentType contentType)
Publish a Content Type.
|
CMACallback<CMAContentType> |
ModuleContentTypes.Async.publish(CMAContentType contentType,
CMACallback<CMAContentType> callback)
Publish a Content Type.
|
CMAContentType |
ModuleContentTypes.unPublish(CMAContentType contentType)
Un-Publish a Content Type.
|
CMACallback<CMAContentType> |
ModuleContentTypes.Async.unPublish(CMAContentType contentType,
CMACallback<CMAContentType> callback)
Un-Publish a Content Type.
|
CMAContentType |
ModuleContentTypes.update(CMAContentType contentType)
Update a Content Type.
|
CMACallback<CMAContentType> |
ModuleContentTypes.Async.update(CMAContentType contentType,
CMACallback<CMAContentType> callback)
Update a Content Type.
|
| Modifier and Type | Method and Description |
|---|---|
CMACallback<CMAContentType> |
ModuleContentTypes.Async.create(CMAContentType contentType,
CMACallback<CMAContentType> callback)
Create a new Content Type using the configured space and environment.
|
CMACallback<CMAContentType> |
ModuleContentTypes.Async.create(String spaceId,
String environmentId,
CMAContentType contentType,
CMACallback<CMAContentType> callback)
Create a new Content Type in the given environment.
|
CMACallback<CMAArray<CMAContentType>> |
ModuleContentTypes.Async.fetchAll(CMACallback<CMAArray<CMAContentType>> callback)
Fetch all Content Types from the configured space and environment.
|
CMACallback<CMAArray<CMAContentType>> |
ModuleContentTypes.Async.fetchAll(Map<String,String> query,
CMACallback<CMAArray<CMAContentType>> callback)
Fetch all Content Types from the configured space and environment with a query.
|
CMACallback<CMAArray<CMAContentType>> |
ModuleContentTypes.Async.fetchAll(String spaceId,
String environmentId,
CMACallback<CMAArray<CMAContentType>> callback)
Fetch all Content Types from the given space and environment.
|
CMACallback<CMAArray<CMAContentType>> |
ModuleContentTypes.Async.fetchAll(String spaceId,
String environmentId,
Map<String,String> query,
CMACallback<CMAArray<CMAContentType>> callback)
Fetch all Content Types from the given space and environment using a query.
|
CMACallback<CMAContentType> |
ModuleContentTypes.Async.fetchOne(String contentTypeId,
CMACallback<CMAContentType> callback)
Fetch a Content Type with the given
contentTypeId from the configured space and
environment. |
CMACallback<CMAContentType> |
ModuleContentTypes.Async.fetchOne(String spaceId,
String environmentId,
String contentTypeId,
CMACallback<CMAContentType> callback)
Fetch a Content Type with the given
contentTypeId from the given space. |
CMACallback<CMAContentType> |
ModuleContentTypes.Async.publish(CMAContentType contentType,
CMACallback<CMAContentType> callback)
Publish a Content Type.
|
CMACallback<CMAContentType> |
ModuleContentTypes.Async.unPublish(CMAContentType contentType,
CMACallback<CMAContentType> callback)
Un-Publish a Content Type.
|
CMACallback<CMAContentType> |
ModuleContentTypes.Async.update(CMAContentType contentType,
CMACallback<CMAContentType> callback)
Update a Content Type.
|
| Modifier and Type | Method and Description |
|---|---|
CMAContentType |
CMAContentType.addField(CMAField field)
Adds a new field.
|
CMAContentType |
CMAContentType.setDescription(String description)
Sets the description field for this Content Type.
|
CMAContentType |
CMAContentType.setDisplayField(String displayField)
Sets the display field for this Content Type.
|
CMAContentType |
CMAContentType.setEnvironmentId(String environmentId)
Convenience method for setting an environment id.
|
CMAContentType |
CMAContentType.setFields(List<CMAField> fields)
Sets a list of fields for this Content Type.
|
CMAContentType |
CMAContentType.setId(String id)
Convenience: Update the id of this entry without going through
CMAResource.getSystem(). |
CMAContentType |
CMAContentType.setName(String name)
Sets the name for this Content Type.
|
CMAContentType |
CMAContentType.setSpaceId(String spaceId)
Convenience: Update the space id of this entry without going through
CMAResource.getSystem(). |
CMAContentType |
CMAContentType.setSystem(CMASystem system)
Sets the system field.
|
CMAContentType |
CMAContentType.setVersion(Integer version)
Convenience: Update the version of this entry without going through
CMAResource.getSystem(). |
Copyright © 2026 Contentful, GmbH.. All rights reserved.