Package com.moesif.api
Interface IAPIController
-
- All Known Implementing Classes:
APIController
public interface IAPIController
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Map<String,String>createEvent(EventModel body)Add Single API Event CallvoidcreateEventAsync(EventModel body, APICallBack<HttpResponse> callBack)Add Single API Event CallMap<String,String>createEventsBatch(List<EventModel> body)Add multiple API Events in a single batchvoidcreateEventsBatchAsync(List<EventModel> body, APICallBack<HttpResponse> callBack)Add multiple API Events in a single batchHttpResponsegetAppConfig()Get the Application configvoidgetAppConfigAsync(APICallBack<HttpResponse> callBack)Get the Application config asyncHttpResponsegetGovernanceRules()Get 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 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 Detail
-
createEvent
Map<String,String> createEvent(EventModel body) throws Throwable
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
Map<String,String> createEventsBatch(List<EventModel> body) throws Throwable
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 com.fasterxml.jackson.core.JsonProcessingException
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 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 updatecallBack- 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 updatecallBack- Called after the HTTP response is received- Throws:
com.fasterxml.jackson.core.JsonProcessingException- on error creating event
-
getAppConfig
HttpResponse getAppConfig() throws Throwable
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
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 updatecallBack- 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 updatecallBack- Called after the HTTP response is received- Throws:
com.fasterxml.jackson.core.JsonProcessingException- on error updating companies
-
-