public class CustomViewsService
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected ServiceExecutor |
serviceExecutor |
| Constructor and Description |
|---|
CustomViewsService(MambuAPIService mambuAPIService)
Create a new service
|
| Modifier and Type | Method and Description |
|---|---|
<T> java.util.List<T> |
getCustomViewEntities(com.mambu.api.server.handler.customviews.model.ApiViewType apiViewType,
java.lang.String branchId,
boolean fullDetails,
java.lang.String customViewKey,
java.lang.String offset,
java.lang.String limit)
Get entities for a Custom View
|
<T> java.util.List<T> |
getCustomViewEntities(com.mambu.api.server.handler.customviews.model.ApiViewType apiViewType,
java.lang.String branchId,
java.lang.String customViewKey,
java.lang.String offset,
java.lang.String limit)
Convenience method to get "Basic" entities for a Custom View (entities without full details)
|
com.mambu.api.server.handler.customviews.model.CustomViewEntitiesSummaryWrapper |
getCustomViewSummary(com.mambu.api.server.handler.customviews.model.ApiViewType apiViewType,
java.lang.String branchId,
java.lang.String customViewKey)
Get summary for a custom view
|
protected ServiceExecutor serviceExecutor
@Inject public CustomViewsService(MambuAPIService mambuAPIService)
mambuAPIService - the service responsible with the connection to the serverpublic <T> java.util.List<T> getCustomViewEntities(com.mambu.api.server.handler.customviews.model.ApiViewType apiViewType,
java.lang.String branchId,
boolean fullDetails,
java.lang.String customViewKey,
java.lang.String offset,
java.lang.String limit)
throws MambuApiException
apiViewType - API view type. Example, ApiViewType.LOANS, or ApiViewType.CLIENTSbranchId - an optional branch ID filtering parameter. If null, entities for all branches managed by the API user
are retrievedfullDetails - boolean indicating if entities with fullDetails shall be returned. Applicable to Clients, Groups, Loan
Accounts and Savings AccountscustomViewKey - the encoded key for the custom view. Must not be nulloffset - pagination offset. If not null it must be an integer greater or equal to zerolimit - pagination limit. If not null it must be an integer greater than zeroMambuApiExceptionpublic <T> java.util.List<T> getCustomViewEntities(com.mambu.api.server.handler.customviews.model.ApiViewType apiViewType,
java.lang.String branchId,
java.lang.String customViewKey,
java.lang.String offset,
java.lang.String limit)
throws MambuApiException
apiViewType - API view type. Example, ApiViewType.LOANS, or ApiViewType.CLIENTSbranchId - an optional branch ID filtering parameter. If null, entities for all branches managed by the API user
are retrievedcustomViewKey - the encoded key for the custom view. Must not be nulloffset - pagination offset. If not null it must be an integer greater or equal to zerolimit - pagination limit. If not null it must be an integer greater than zeroMambuApiExceptionpublic com.mambu.api.server.handler.customviews.model.CustomViewEntitiesSummaryWrapper getCustomViewSummary(com.mambu.api.server.handler.customviews.model.ApiViewType apiViewType,
java.lang.String branchId,
java.lang.String customViewKey)
throws MambuApiException
apiViewType - API view type. Example, ApiViewType.LOANS, or ApiViewType.CLIENTSbranchId - an optional branch ID filtering parameter. If null, summary for entities in all branches managed by
the API user are retrievedcustomViewKey - the encoded key for the custom view. Must not be nullMambuApiException