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 com.fasterxml.jackson.core.JsonProcessingException
        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
      • 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