Class ModuleOrganizations


  • public class ModuleOrganizations
    extends java.lang.Object
    Organizations Module.
    • Constructor Summary

      Constructors 
      Constructor Description
      ModuleOrganizations​(retrofit2.Retrofit retrofit, java.util.concurrent.Executor callbackExecutor, boolean environmentIdConfigured)
      Create the organizations module.
    • Constructor Detail

      • ModuleOrganizations

        public ModuleOrganizations​(retrofit2.Retrofit retrofit,
                                   java.util.concurrent.Executor callbackExecutor,
                                   boolean environmentIdConfigured)
        Create the organizations module.
        Parameters:
        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.
    • Method Detail

      • createService

        protected com.contentful.java.cma.ServiceOrganizations createService​(retrofit2.Retrofit retrofit)
      • fetchAll

        public CMAArray<CMAOrganization> fetchAll​(java.util.Map<java.lang.String,​java.lang.String> query)
        Fetch specific organizations the token has access to.
        Parameters:
        query - the criteria to narrow down the search result.
        Returns:
        CMAOrganization result instance