Class ModuleApiKeys


  • public class ModuleApiKeys
    extends java.lang.Object
    Api Keys Module.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      class  ModuleApiKeys.Async
      Async module.
    • Constructor Summary

      Constructors 
      Constructor Description
      ModuleApiKeys​(retrofit2.Retrofit retrofit, java.util.concurrent.Executor callbackExecutor, java.lang.String spaceId, java.lang.String environmentId, boolean environmentIdConfigured)
      Create api keys module.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      ModuleApiKeys.Async async()  
      CMAApiKey create​(CMAApiKey key)
      Create a new delivery api key from the configured space.
      CMAApiKey create​(java.lang.String spaceId, CMAApiKey key)
      Create a new delivery api key.
      protected com.contentful.java.cma.ServiceApiKeys createService​(retrofit2.Retrofit retrofit)  
      int delete​(CMAApiKey key)
      Delete a given api key from the configured space.
      CMAArray<CMAApiKey> fetchAll()
      Fetch all delivery API keys from the configured space.
      CMAArray<CMAApiKey> fetchAll​(java.lang.String spaceId)
      Fetch all delivery api keys from the given space.
      CMAArray<CMAApiKey> fetchAll​(java.lang.String spaceId, java.util.Map<java.lang.String,​java.lang.String> query)
      Query for specific api keys, overriding the configuration set.
      CMAArray<CMAApiKey> fetchAll​(java.util.Map<java.lang.String,​java.lang.String> query)
      Query for specific api keys from the configured space.
      CMAApiKey fetchOne​(java.lang.String keyId)
      Fetch only one delivery api key from the configured space.
      CMAApiKey fetchOne​(java.lang.String spaceId, java.lang.String keyId)
      Fetch only one delivery api key.
      CMAApiKey update​(CMAApiKey key)
      Updates a delivery api key from the configured space.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ModuleApiKeys

        public ModuleApiKeys​(retrofit2.Retrofit retrofit,
                             java.util.concurrent.Executor callbackExecutor,
                             java.lang.String spaceId,
                             java.lang.String environmentId,
                             boolean environmentIdConfigured)
        Create api keys module.
        Parameters:
        retrofit - the retrofit instance to be used to create the service.
        callbackExecutor - to tell on which thread it should run.
        spaceId - the space to be used when not given.
        environmentId - the environment to be used when not given.
        environmentIdConfigured - internal helper to see if environment was set.