public final class ModuleOrganizations
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
class |
ModuleOrganizations.Async
Async module.
|
Constructor and Description |
---|
ModuleOrganizations(retrofit2.Retrofit retrofit,
java.util.concurrent.Executor callbackExecutor,
boolean environmentIdConfigured)
Create the organizations module.
|
Modifier and Type | Method and Description |
---|---|
ModuleOrganizations.Async |
async() |
protected com.contentful.java.cma.ServiceOrganizations |
createService(retrofit2.Retrofit retrofit) |
CMAArray<CMAOrganization> |
fetchAll()
Fetch all organizations the token has access to.
|
CMAArray<CMAOrganization> |
fetchAll(java.util.Map<java.lang.String,java.lang.String> query)
Fetch specific organizations the token has access to.
|
public ModuleOrganizations(retrofit2.Retrofit retrofit, java.util.concurrent.Executor callbackExecutor, boolean environmentIdConfigured)
retrofit
- the retrofit instance to be used to create the service.callbackExecutor
- to tell on which thread it should run.environmentIdConfigured
- internal helper to see if environment was set.protected com.contentful.java.cma.ServiceOrganizations createService(retrofit2.Retrofit retrofit)
public CMAArray<CMAOrganization> fetchAll()
CMAOrganization
result instancepublic CMAArray<CMAOrganization> fetchAll(java.util.Map<java.lang.String,java.lang.String> query)
query
- the criteria to narrow down the search result.CMAOrganization
result instancepublic ModuleOrganizations.Async async()
Copyright © 2019 Contentful, GmbH.. All Rights Reserved.