| Package | Description |
|---|---|
| com.contentful.java.cma | |
| com.contentful.java.cma.model |
| Modifier and Type | Method and Description |
|---|---|
CMALocale |
ModuleLocales.create(String spaceId,
CMALocale locale)
Create a new locale.
|
CMALocale |
ModuleLocales.fetchOne(String spaceId,
String localeId)
Fetches one locale by its id from Contentful.
|
CMALocale |
ModuleLocales.update(CMALocale locale)
Update the given locale instance on Contentful.
|
| Modifier and Type | Method and Description |
|---|---|
io.reactivex.Flowable<CMALocale> |
ServiceLocales.create(String spaceId,
CMALocale locale) |
CMACallback<CMALocale> |
ModuleLocales.Async.create(String spaceId,
CMALocale locale,
CMACallback<CMALocale> callback)
Asynchronously create a new locale.
|
CMAArray<CMALocale> |
ModuleLocales.fetchAll(String spaceId)
Fetch all locales of this space.
|
io.reactivex.Flowable<CMAArray<CMALocale>> |
ServiceLocales.fetchAll(String spaceId) |
CMACallback<CMAArray<CMALocale>> |
ModuleLocales.Async.fetchAll(String spaceId,
CMACallback<CMAArray<CMALocale>> callback)
Fetch all locales of this space, asynchronously.
|
CMAArray<CMALocale> |
ModuleLocales.fetchAll(String spaceId,
Map<String,String> query)
Fetch specific locales of this space.
|
io.reactivex.Flowable<CMAArray<CMALocale>> |
ServiceLocales.fetchAll(String spaceId,
Map<String,String> query) |
CMACallback<CMAArray<CMALocale>> |
ModuleLocales.Async.fetchAll(String spaceId,
Map<String,String> query,
CMACallback<CMAArray<CMALocale>> callback)
Fetch specific locales of this space.
|
CMAArray<CMALocale> |
ModuleSpaces.fetchLocales(String spaceId)
Fetch Locales for a Space.
|
CMACallback<CMAArray<CMALocale>> |
ModuleSpaces.Async.fetchLocales(String spaceId,
CMACallback<CMAArray<CMALocale>> callback)
Fetch Locales for a Space.
|
CMAArray<CMALocale> |
ModuleSpaces.fetchLocales(String spaceId,
Map<String,String> query)
Fetch specific Locales for a Space.
|
CMACallback<CMAArray<CMALocale>> |
ModuleSpaces.Async.fetchLocales(String spaceId,
Map<String,String> query,
CMACallback<CMAArray<CMALocale>> callback)
Fetch Locales for a Space, using a query.
|
io.reactivex.Flowable<CMALocale> |
ServiceLocales.fetchOne(String spaceId,
String localeId) |
CMACallback<CMALocale> |
ModuleLocales.Async.fetchOne(String spaceId,
String localeId,
CMACallback<CMALocale> callback)
Fetches one locale by its id from Contentful 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(String spaceId,
String localeId,
CMALocale locale,
Integer version) |
| Modifier and Type | Method and Description |
|---|---|
CMALocale |
ModuleLocales.create(String spaceId,
CMALocale locale)
Create a new locale.
|
io.reactivex.Flowable<CMALocale> |
ServiceLocales.create(String spaceId,
CMALocale locale) |
CMACallback<CMALocale> |
ModuleLocales.Async.create(String spaceId,
CMALocale locale,
CMACallback<CMALocale> callback)
Asynchronously create a new locale.
|
int |
ModuleLocales.delete(String spaceId,
CMALocale locale)
Delete the given locale instance.
|
CMACallback<Integer> |
ModuleLocales.Async.delete(String spaceId,
CMALocale locale,
CMACallback<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(String spaceId,
String localeId,
CMALocale locale,
Integer version) |
| Modifier and Type | Method and Description |
|---|---|
CMACallback<CMALocale> |
ModuleLocales.Async.create(String spaceId,
CMALocale locale,
CMACallback<CMALocale> callback)
Asynchronously create a new locale.
|
CMACallback<CMAArray<CMALocale>> |
ModuleLocales.Async.fetchAll(String spaceId,
CMACallback<CMAArray<CMALocale>> callback)
Fetch all locales of this space, asynchronously.
|
CMACallback<CMAArray<CMALocale>> |
ModuleLocales.Async.fetchAll(String spaceId,
Map<String,String> query,
CMACallback<CMAArray<CMALocale>> callback)
Fetch specific locales of this space.
|
CMACallback<CMAArray<CMALocale>> |
ModuleSpaces.Async.fetchLocales(String spaceId,
CMACallback<CMAArray<CMALocale>> callback)
Fetch Locales for a Space.
|
CMACallback<CMAArray<CMALocale>> |
ModuleSpaces.Async.fetchLocales(String spaceId,
Map<String,String> query,
CMACallback<CMAArray<CMALocale>> callback)
Fetch Locales for a Space, using a query.
|
CMACallback<CMALocale> |
ModuleLocales.Async.fetchOne(String spaceId,
String localeId,
CMACallback<CMALocale> callback)
Fetches one locale by its id from Contentful 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 |
|---|---|
CMALocale |
CMALocale.setCode(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)
Change this locale to be the default, or remove this flag from it.
|
CMALocale |
CMALocale.setFallbackCode(String fallbackCode)
Set the fallback locale to be used once a localized field is not set in CDA.
|
CMALocale |
CMALocale.setId(String id)
Convenience: Update the id of this entry without going through
CMAResource.getSystem(). |
CMALocale |
CMALocale.setName(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(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(Integer version)
Convenience: Update the version of this entry without going through
CMAResource.getSystem(). |
Copyright © 2017 Contentful, GmbH.. All Rights Reserved.