Interface IAPIController

  • All Known Implementing Classes:
    APIController

    public interface IAPIController
    • Method Detail

      • createEventAsync

        void createEventAsync​(EventModel body,
                              APICallBack<HttpResponse> callBack)
                       throws com.fasterxml.jackson.core.JsonProcessingException
        Add Single API Event Call
        Parameters:
        body - The event to create
        callBack - Called after the HTTP response is received
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException - on error creating event
      • createEventsBatchAsync

        void createEventsBatchAsync​(List<EventModel> body,
                                    APICallBack<HttpResponse> callBack)
                             throws IOException
        Add multiple API Events in a single batch
        Parameters:
        body - The events to create
        callBack - Called after the HTTP response is received
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException - on error creating event
        IOException
      • createEventsBatchAsync

        void createEventsBatchAsync​(List<EventModel> body,
                                    APICallBack<HttpResponse> callBack,
                                    boolean useGzip)
                             throws IOException
        Add multiple API Events in a single batch
        Parameters:
        body - The events to create
        callBack - Called after the HTTP response is received
        useGzip - Option to convert body to gzip type
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException - on error creating event
        IOException
      • updateUser

        void updateUser​(UserModel body)
                 throws Throwable
        Update a Single User
        Parameters:
        body - The user to update
        Throws:
        Throwable - on error creating event
      • updateUserAsync

        void updateUserAsync​(UserModel body,
                             APICallBack<HttpResponse> callBack)
                      throws com.fasterxml.jackson.core.JsonProcessingException
        Update a Single User async
        Parameters:
        body - The user to update
        callBack - Called after the HTTP response is received
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException - on error creating event
      • updateUsersBatch

        void updateUsersBatch​(List<UserModel> body)
                       throws Throwable
        Update multiple Users in a single batch
        Parameters:
        body - The list of users to update
        Throws:
        Throwable - on error creating event
      • updateUsersBatchAsync

        void updateUsersBatchAsync​(List<UserModel> body,
                                   APICallBack<HttpResponse> callBack)
                            throws com.fasterxml.jackson.core.JsonProcessingException
        Update multiple Users in a single batch async
        Parameters:
        body - The list of users to update
        callBack - Called after the HTTP response is received
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException - on error creating event
      • getAppConfigAsync

        void getAppConfigAsync​(APICallBack<HttpResponse> callBack)
                        throws com.fasterxml.jackson.core.JsonProcessingException
        Get the Application config async
        Parameters:
        callBack - Called after the HTTP response is received
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException - on error getting app config
      • getGovernanceRules

        HttpResponse getGovernanceRules()
                                 throws Throwable
        Get the Governance rules
        Throws:
        Throwable - on error getting governance rules
      • getGovernanceRulesAsync

        void getGovernanceRulesAsync​(APICallBack<HttpResponse> callBack)
                              throws com.fasterxml.jackson.core.JsonProcessingException
        Get the Governance rules async
        Parameters:
        callBack - Called after the HTTP response is received
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException - on error getting governance rules
      • updateCompany

        void updateCompany​(CompanyModel body)
                    throws Throwable
        Update a Single Company
        Parameters:
        body - The company to update
        Throws:
        Throwable - on error updating a company
      • updateCompanyAsync

        void updateCompanyAsync​(CompanyModel body,
                                APICallBack<HttpResponse> callBack)
                         throws com.fasterxml.jackson.core.JsonProcessingException
        Update a Single Company async
        Parameters:
        body - The company to update
        callBack - Called after the HTTP response is received
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException - on error updating a company
      • updateCompaniesBatch

        void updateCompaniesBatch​(List<CompanyModel> body)
                           throws Throwable
        Update multiple Companies in a single batch
        Parameters:
        body - The list of companies to update
        Throws:
        Throwable - on error updating companies
      • updateCompaniesBatchAsync

        void updateCompaniesBatchAsync​(List<CompanyModel> body,
                                       APICallBack<HttpResponse> callBack)
                                throws com.fasterxml.jackson.core.JsonProcessingException
        Update multiple Companies in a single batch async
        Parameters:
        body - The list of companies to update
        callBack - Called after the HTTP response is received
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException - on error updating companies
      • updateSubscription

        void updateSubscription​(SubscriptionModel body)
                         throws Throwable
        Update a Single Subscription
        Parameters:
        body - The subscriptuon to update
        Throws:
        Throwable - on error creating event
      • updateSubscriptionAsync

        void updateSubscriptionAsync​(SubscriptionModel body,
                                     APICallBack<HttpResponse> callBack)
                              throws com.fasterxml.jackson.core.JsonProcessingException
        Update a Single Subscription async
        Parameters:
        body - The subscription to update
        callBack - Called after the HTTP response is received
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException - on error creating event
      • updateSubscriptionsBatch

        void updateSubscriptionsBatch​(List<SubscriptionModel> body)
                               throws Throwable
        Update multiple Subscriptions in a single batch
        Parameters:
        body - The list of subscriptions to update
        Throws:
        Throwable - on error creating event
      • updateSubscriptionsBatchAsync

        void updateSubscriptionsBatchAsync​(List<SubscriptionModel> body,
                                           APICallBack<HttpResponse> callBack)
                                    throws com.fasterxml.jackson.core.JsonProcessingException
        Update multiple Subscriptions in a single batch async
        Parameters:
        body - The list of subscriptions to update
        callBack - Called after the HTTP response is received
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException - on error creating event