Package | Description |
---|---|
com.contentful.java.cma | |
com.contentful.java.cma.gson | |
com.contentful.java.cma.model |
Modifier and Type | Method and Description |
---|---|
CMALocale |
ModuleLocales.create(CMALocale locale)
Create a new locale in the configured space and environment.
|
CMALocale |
ModuleLocales.create(java.lang.String spaceId,
java.lang.String environmentId,
CMALocale locale)
Create a new locale in the given space and environment.
|
CMALocale |
ModuleLocales.fetchOne(java.lang.String localeId)
Fetches one locale by its id using the configured space and environment.
|
CMALocale |
ModuleLocales.fetchOne(java.lang.String spaceId,
java.lang.String environmentId,
java.lang.String localeId)
Fetches one locale by its id from the given space and environment.
|
CMALocale |
ModuleLocales.update(CMALocale locale)
Update the given locale instance on Contentful.
|
Modifier and Type | Method and Description |
---|---|
CMACallback<CMALocale> |
ModuleLocales.Async.create(CMALocale locale,
CMACallback<CMALocale> callback)
Asynchronously create a new locale in the configured space and environment.
|
io.reactivex.Flowable<CMALocale> |
ServiceLocales.create(java.lang.String spaceId,
java.lang.String environmentId,
CMALocale locale) |
CMACallback<CMALocale> |
ModuleLocales.Async.create(java.lang.String spaceId,
java.lang.String environmentId,
CMALocale locale,
CMACallback<CMALocale> callback)
Asynchronously create a new locale.
|
CMAArray<CMALocale> |
ModuleLocales.fetchAll()
Fetch all locales of the configured space.
|
CMACallback<CMAArray<CMALocale>> |
ModuleLocales.Async.fetchAll(CMACallback<CMAArray<CMALocale>> callback)
Fetch all locales from the configured space and environment, asynchronously.
|
CMAArray<CMALocale> |
ModuleLocales.fetchAll(java.lang.String spaceId,
java.lang.String environmentId)
Fetch all locales of the given space and environment.
|
io.reactivex.Flowable<CMAArray<CMALocale>> |
ServiceLocales.fetchAll(java.lang.String spaceId,
java.lang.String environmentId) |
CMACallback<CMAArray<CMALocale>> |
ModuleLocales.Async.fetchAll(java.lang.String spaceId,
java.lang.String environmentId,
CMACallback<CMAArray<CMALocale>> callback)
Fetch all locales of the given space and environment, asynchronously.
|
CMACallback<CMALocale> |
ModuleLocales.Async.fetchOne(java.lang.String localeId,
CMACallback<CMALocale> callback)
Fetches one locale by the configured space and environment, asynchronously.
|
io.reactivex.Flowable<CMALocale> |
ServiceLocales.fetchOne(java.lang.String spaceId,
java.lang.String environmentId,
java.lang.String localeId) |
CMACallback<CMALocale> |
ModuleLocales.Async.fetchOne(java.lang.String spaceId,
java.lang.String environmentId,
java.lang.String localeId,
CMACallback<CMALocale> callback)
Fetches one locale by its id and the given space and environment, asynchronously.
|
CMACallback<CMALocale> |
ModuleLocales.Async.update(CMALocale locale,
CMACallback<CMALocale> callback)
Update the given locale instance on Contentful, asynchronously.
|
io.reactivex.Flowable<CMALocale> |
ServiceLocales.update(java.lang.String spaceId,
java.lang.String environmentId,
java.lang.String localeId,
CMALocale locale,
java.lang.Integer version) |
Modifier and Type | Method and Description |
---|---|
CMALocale |
ModuleLocales.create(CMALocale locale)
Create a new locale in the configured space and environment.
|
CMACallback<CMALocale> |
ModuleLocales.Async.create(CMALocale locale,
CMACallback<CMALocale> callback)
Asynchronously create a new locale in the configured space and environment.
|
CMALocale |
ModuleLocales.create(java.lang.String spaceId,
java.lang.String environmentId,
CMALocale locale)
Create a new locale in the given space and environment.
|
io.reactivex.Flowable<CMALocale> |
ServiceLocales.create(java.lang.String spaceId,
java.lang.String environmentId,
CMALocale locale) |
CMACallback<CMALocale> |
ModuleLocales.Async.create(java.lang.String spaceId,
java.lang.String environmentId,
CMALocale locale,
CMACallback<CMALocale> callback)
Asynchronously create a new locale.
|
int |
ModuleLocales.delete(CMALocale locale)
Delete the given locale instance.
|
CMACallback<java.lang.Integer> |
ModuleLocales.Async.delete(CMALocale locale,
CMACallback<java.lang.Integer> callback)
Delete the given locale instance asynchronously.
|
CMALocale |
ModuleLocales.update(CMALocale locale)
Update the given locale instance on Contentful.
|
CMACallback<CMALocale> |
ModuleLocales.Async.update(CMALocale locale,
CMACallback<CMALocale> callback)
Update the given locale instance on Contentful, asynchronously.
|
io.reactivex.Flowable<CMALocale> |
ServiceLocales.update(java.lang.String spaceId,
java.lang.String environmentId,
java.lang.String localeId,
CMALocale locale,
java.lang.Integer version) |
Modifier and Type | Method and Description |
---|---|
CMACallback<CMALocale> |
ModuleLocales.Async.create(CMALocale locale,
CMACallback<CMALocale> callback)
Asynchronously create a new locale in the configured space and environment.
|
CMACallback<CMALocale> |
ModuleLocales.Async.create(java.lang.String spaceId,
java.lang.String environmentId,
CMALocale locale,
CMACallback<CMALocale> callback)
Asynchronously create a new locale.
|
CMACallback<CMAArray<CMALocale>> |
ModuleLocales.Async.fetchAll(CMACallback<CMAArray<CMALocale>> callback)
Fetch all locales from the configured space and environment, asynchronously.
|
CMACallback<CMAArray<CMALocale>> |
ModuleLocales.Async.fetchAll(java.lang.String spaceId,
java.lang.String environmentId,
CMACallback<CMAArray<CMALocale>> callback)
Fetch all locales of the given space and environment, asynchronously.
|
CMACallback<CMALocale> |
ModuleLocales.Async.fetchOne(java.lang.String localeId,
CMACallback<CMALocale> callback)
Fetches one locale by the configured space and environment, asynchronously.
|
CMACallback<CMALocale> |
ModuleLocales.Async.fetchOne(java.lang.String spaceId,
java.lang.String environmentId,
java.lang.String localeId,
CMACallback<CMALocale> callback)
Fetches one locale by its id and the given space and environment, asynchronously.
|
CMACallback<CMALocale> |
ModuleLocales.Async.update(CMALocale locale,
CMACallback<CMALocale> callback)
Update the given locale instance on Contentful, asynchronously.
|
Modifier and Type | Method and Description |
---|---|
com.google.gson.JsonElement |
LocaleSerializer.serialize(CMALocale src,
java.lang.reflect.Type typeOfSrc,
com.google.gson.JsonSerializationContext context) |
Modifier and Type | Method and Description |
---|---|
CMALocale |
CMALocale.setCode(java.lang.String code)
Set the code of the locale.
|
CMALocale |
CMALocale.setContentDeliveryApi(boolean contentDeliveryApi)
Change this locale to be available in the content deliver api.
|
CMALocale |
CMALocale.setContentManagementApi(boolean contentManagementApi)
Change this locale to be the used on the management api.
|
CMALocale |
CMALocale.setDefault(boolean isDefault)
Deprecated.
Setting this to default will not get send to the backend. This method will get
removed in the next major release.
|
CMALocale |
CMALocale.setFallbackCode(java.lang.String fallbackCode)
Set the fallback locale to be used once a localized field is not set in CDA.
|
CMALocale |
CMALocale.setId(java.lang.String id)
Convenience: Update the id of this entry without going through
CMAResource.getSystem() . |
CMALocale |
CMALocale.setName(java.lang.String name)
Change or create a human readable name of this locale.
|
CMALocale |
CMALocale.setOptional(boolean optional)
Control whether this locale is optional.
|
CMALocale |
CMALocale.setSpaceId(java.lang.String spaceId)
Convenience: Update the space id of this entry without going through
CMAResource.getSystem() . |
CMALocale |
CMALocale.setSystem(CMASystem system)
Sets the system field.
|
CMALocale |
CMALocale.setVersion(java.lang.Integer version)
Convenience: Update the version of this entry without going through
CMAResource.getSystem() . |
Copyright © 2019 Contentful, GmbH.. All Rights Reserved.