Package com.moesif.api
Interface IAPIController
- All Known Implementing Classes:
APIController
public interface IAPIController
-
Method Summary
Modifier and TypeMethodDescriptioncreateEvent(EventModel body) Add Single API Event CallvoidcreateEventAsync(EventModel body, APICallBack<HttpResponse> callBack) Add Single API Event CallcreateEventsBatch(List<EventModel> body) Add multiple API Events in a single batchvoidcreateEventsBatchAsync(List<EventModel> body, APICallBack<HttpResponse> callBack) Add multiple API Events in a single batchvoidcreateEventsBatchAsync(List<EventModel> body, APICallBack<HttpResponse> callBack, boolean useGzip) Add multiple API Events in a single batchGet the Application configvoidgetAppConfigAsync(APICallBack<HttpResponse> callBack) Get the Application config asyncGet the Governance rulesvoidgetGovernanceRulesAsync(APICallBack<HttpResponse> callBack) Get the Governance rules asyncvoidupdateCompaniesBatch(List<CompanyModel> body) Update multiple Companies in a single batchvoidupdateCompaniesBatchAsync(List<CompanyModel> body, APICallBack<HttpResponse> callBack) Update multiple Companies in a single batch asyncvoidupdateCompany(CompanyModel body) Update a Single CompanyvoidupdateCompanyAsync(CompanyModel body, APICallBack<HttpResponse> callBack) Update a Single Company asyncvoidUpdate a Single SubscriptionvoidupdateSubscriptionAsync(SubscriptionModel body, APICallBack<HttpResponse> callBack) Update a Single Subscription asyncvoidUpdate multiple Subscriptions in a single batchvoidupdateSubscriptionsBatchAsync(List<SubscriptionModel> body, APICallBack<HttpResponse> callBack) Update multiple Subscriptions in a single batch asyncvoidupdateUser(UserModel body) Update a Single UservoidupdateUserAsync(UserModel body, APICallBack<HttpResponse> callBack) Update a Single User asyncvoidupdateUsersBatch(List<UserModel> body) Update multiple Users in a single batchvoidupdateUsersBatchAsync(List<UserModel> body, APICallBack<HttpResponse> callBack) Update multiple Users in a single batch async
-
Method Details
-
createEvent
Add Single API Event Call- Parameters:
body- The event to create- Throws:
Throwable- on error creating event
-
createEventAsync
void createEventAsync(EventModel body, APICallBack<HttpResponse> callBack) throws com.fasterxml.jackson.core.JsonProcessingException Add Single API Event Call- Parameters:
body- The event to createcallBack- Called after the HTTP response is received- Throws:
com.fasterxml.jackson.core.JsonProcessingException- on error creating event
-
createEventsBatch
Add multiple API Events in a single batch- Parameters:
body- The events to create- Throws:
Throwable- 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 createcallBack- Called after the HTTP response is received- Throws:
com.fasterxml.jackson.core.JsonProcessingException- on error creating eventIOException
-
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 createcallBack- Called after the HTTP response is receiveduseGzip- Option to convert body to gzip type- Throws:
com.fasterxml.jackson.core.JsonProcessingException- on error creating eventIOException
-
updateUser
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 updatecallBack- Called after the HTTP response is received- Throws:
com.fasterxml.jackson.core.JsonProcessingException- on error creating event
-
updateUsersBatch
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 updatecallBack- Called after the HTTP response is received- Throws:
com.fasterxml.jackson.core.JsonProcessingException- on error creating event
-
getAppConfig
Get the Application config- Throws:
Throwable- on error getting app config
-
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
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
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 updatecallBack- Called after the HTTP response is received- Throws:
com.fasterxml.jackson.core.JsonProcessingException- on error updating a company
-
updateCompaniesBatch
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 updatecallBack- Called after the HTTP response is received- Throws:
com.fasterxml.jackson.core.JsonProcessingException- on error updating companies
-
updateSubscription
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 updatecallBack- Called after the HTTP response is received- Throws:
com.fasterxml.jackson.core.JsonProcessingException- on error creating event
-
updateSubscriptionsBatch
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 updatecallBack- Called after the HTTP response is received- Throws:
com.fasterxml.jackson.core.JsonProcessingException- on error creating event
-