| Package | Description |
|---|---|
| com.contentful.java.cma | |
| com.contentful.java.cma.model |
| Modifier and Type | Method and Description |
|---|---|
CMAContentType |
ModuleContentTypes.create(String spaceId,
CMAContentType contentType)
Create a new Content Type.
|
CMAContentType |
ModuleContentTypes.fetchOne(String spaceId,
String contentTypeId)
Fetch a Content Type with the given
contentTypeId from a Space. |
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(String spaceId,
CMAContentType contentType,
CMACallback<CMAContentType> callback)
Create a new Content Type.
|
CMAArray<CMAContentType> |
ModuleContentTypes.fetchAll(String spaceId)
Fetch all Content Types from a Space, using default query parameter.
|
CMACallback<CMAArray<CMAContentType>> |
ModuleContentTypes.Async.fetchAll(String spaceId,
CMACallback<CMAArray<CMAContentType>> callback)
Fetch all Content Types from a Space.
|
CMAArray<CMAContentType> |
ModuleContentTypes.fetchAll(String spaceId,
Map<String,String> query)
Fetch all Content Types from a Space with query parameters.
|
CMACallback<CMAArray<CMAContentType>> |
ModuleContentTypes.Async.fetchAll(String spaceId,
Map<String,String> query,
CMACallback<CMAArray<CMAContentType>> callback)
Fetch all Content Types from a Space with a query.
|
CMACallback<CMAContentType> |
ModuleContentTypes.Async.fetchOne(String spaceId,
String contentTypeId,
CMACallback<CMAContentType> callback)
Fetch a Content Type with the given
contentTypeId from a 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(String spaceId,
CMAContentType contentType)
Create a new Content Type.
|
CMACallback<CMAContentType> |
ModuleContentTypes.Async.create(String spaceId,
CMAContentType contentType,
CMACallback<CMAContentType> callback)
Create a new 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(String spaceId,
CMAContentType contentType,
CMACallback<CMAContentType> callback)
Create a new Content Type.
|
CMACallback<CMAArray<CMAContentType>> |
ModuleContentTypes.Async.fetchAll(String spaceId,
CMACallback<CMAArray<CMAContentType>> callback)
Fetch all Content Types from a Space.
|
CMACallback<CMAArray<CMAContentType>> |
ModuleContentTypes.Async.fetchAll(String spaceId,
Map<String,String> query,
CMACallback<CMAArray<CMAContentType>> callback)
Fetch all Content Types from a Space with a query.
|
CMACallback<CMAContentType> |
ModuleContentTypes.Async.fetchOne(String spaceId,
String contentTypeId,
CMACallback<CMAContentType> callback)
Fetch a Content Type with the given
contentTypeId from a 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.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 © 2017 Contentful, GmbH.. All Rights Reserved.