| Package | Description |
|---|---|
| com.contentful.java.cma | |
| com.contentful.java.cma.model |
| Modifier and Type | Method and Description |
|---|---|
CMAContentType |
ModuleContentTypes.create(java.lang.String spaceId,
CMAContentType contentType)
Create a new Content Type.
|
CMAContentType |
ModuleContentTypes.fetchOne(java.lang.String spaceId,
java.lang.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(java.lang.String spaceId,
CMAContentType contentType,
CMACallback<CMAContentType> callback)
Create a new Content Type.
|
CMAArray<CMAContentType> |
ModuleContentTypes.fetchAll(java.lang.String spaceId)
Fetch all Content Types from a Space, using default query parameter.
|
CMACallback<CMAArray<CMAContentType>> |
ModuleContentTypes.Async.fetchAll(java.lang.String spaceId,
CMACallback<CMAArray<CMAContentType>> callback)
Fetch all Content Types from a Space.
|
CMAArray<CMAContentType> |
ModuleContentTypes.fetchAll(java.lang.String spaceId,
java.util.Map<java.lang.String,java.lang.String> query)
Fetch all Content Types from a Space with query parameters.
|
CMACallback<CMAArray<CMAContentType>> |
ModuleContentTypes.Async.fetchAll(java.lang.String spaceId,
java.util.Map<java.lang.String,java.lang.String> query,
CMACallback<CMAArray<CMAContentType>> callback)
Fetch all Content Types from a Space with a query.
|
CMACallback<CMAContentType> |
ModuleContentTypes.Async.fetchOne(java.lang.String spaceId,
java.lang.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(java.lang.String spaceId,
CMAContentType contentType)
Create a new Content Type.
|
CMACallback<CMAContentType> |
ModuleContentTypes.Async.create(java.lang.String spaceId,
CMAContentType contentType,
CMACallback<CMAContentType> callback)
Create a new 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,
java.lang.String snapshotId)
Fetch a specific snapshot of this content type.
|
CMACallback<CMASnapshot> |
ModuleContentTypes.Async.fetchOneSnapshot(CMAContentType contentType,
java.lang.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(java.lang.String spaceId,
CMAContentType contentType,
CMACallback<CMAContentType> callback)
Create a new Content Type.
|
CMACallback<CMAArray<CMAContentType>> |
ModuleContentTypes.Async.fetchAll(java.lang.String spaceId,
CMACallback<CMAArray<CMAContentType>> callback)
Fetch all Content Types from a Space.
|
CMACallback<CMAArray<CMAContentType>> |
ModuleContentTypes.Async.fetchAll(java.lang.String spaceId,
java.util.Map<java.lang.String,java.lang.String> query,
CMACallback<CMAArray<CMAContentType>> callback)
Fetch all Content Types from a Space with a query.
|
CMACallback<CMAContentType> |
ModuleContentTypes.Async.fetchOne(java.lang.String spaceId,
java.lang.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(java.lang.String description)
Sets the description field for this Content Type.
|
CMAContentType |
CMAContentType.setDisplayField(java.lang.String displayField)
Sets the display field for this Content Type.
|
CMAContentType |
CMAContentType.setFields(java.util.List<CMAField> fields)
Sets a list of fields for this Content Type.
|
CMAContentType |
CMAContentType.setId(java.lang.String id)
Convenience: Update the id of this entry without going through
CMAResource.getSystem(). |
CMAContentType |
CMAContentType.setName(java.lang.String name)
Sets the name for this Content Type.
|
CMAContentType |
CMAContentType.setSpaceId(java.lang.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(java.lang.Integer version)
Convenience: Update the version of this entry without going through
CMAResource.getSystem(). |
Copyright © 2018 Contentful, GmbH.. All Rights Reserved.