public class ActivitiesService
extends java.lang.Object
Constructor and Description |
---|
ActivitiesService(MambuAPIService mambuAPIService)
Create a new activities service
|
Modifier and Type | Method and Description |
---|---|
java.util.List<com.mambu.api.server.handler.activityfeed.model.JSONActivity> |
getActivities(java.util.Date fromDate,
java.util.Date toDate)
A convenience method to GET All activities within a specified date interval
|
java.util.List<com.mambu.api.server.handler.activityfeed.model.JSONActivity> |
getActivities(java.util.Date fromDate,
java.util.Date toDate,
java.lang.Class mambuEntity,
java.lang.String entityId)
GET all activity feed items within a specified date interval and (optionally) for a specified Mambu entity Allows
retrieving a list of activities within a date range which can be filtered by entity key.
|
java.util.List<com.mambu.api.server.handler.activityfeed.model.JSONActivity> |
getActivities(java.util.Date fromDate,
java.util.Date toDate,
java.lang.Class mambuEntity,
java.lang.String entityId,
java.lang.Integer offset,
java.lang.Integer limit)
GET all activity feed items within a specified date interval and (optionally) for a specified Mambu entity Allows
retrieving a list of activities within a date range which can be filtered by entity key.
|
java.util.List<com.mambu.api.server.handler.activityfeed.model.JSONActivity> |
getActivities(java.util.Date fromDate,
java.util.Date toDate,
java.lang.Integer offset,
java.lang.Integer limit)
A convenience method to GET All activities within a specified date interval
|
@Inject public ActivitiesService(MambuAPIService mambuAPIService)
mambuAPIService
- the service responsible with the connection to the serverpublic java.util.List<com.mambu.api.server.handler.activityfeed.model.JSONActivity> getActivities(java.util.Date fromDate, java.util.Date toDate, java.lang.Class mambuEntity, java.lang.String entityId, java.lang.Integer offset, java.lang.Integer limit) throws MambuApiException
fromDate
- starting date for the time interval (mandatory). Only the full date without time is used, the date is
inclusivetoDate
- end date for the time interval (mandatory). Only the full date without time is used,the date is
inclusivemambuEntity
- Mambu Entity for requested activities. If Mambu entity is null then all available activities for all
entities supported by API are returned. The following classes are currently supported: Client, Group,
Centre, Branch, LoanProduct, SavingsProduct, LoanAccount, SvaingsAccount, UserentityId
- the Id for the Mambu entity for requested activitiesoffset
- offset to start pagination. If null, the default value of 0 (zero) will be used.limit
- page-size. If null, the default value of 50 (fifty) will be used.MambuApiException
public java.util.List<com.mambu.api.server.handler.activityfeed.model.JSONActivity> getActivities(java.util.Date fromDate, java.util.Date toDate, java.lang.Class mambuEntity, java.lang.String entityId) throws MambuApiException
fromDate
- starting date for the time interval (mandatory). Only the full date without time is used, the date is
inclusivetoDate
- end date for the time interval (mandatory). Only the full date without time is used,the date is
inclusivemambuEntity
- Mambu Entity for requested activities. If Mambu entity is null then all available activities for all
entities supported by API are returned. The following classes are currently supported: Client, Group,
Centre, Branch, LoanProduct, SavingsProduct, LoanAccount, SvaingsAccount, UserentityId
- the Id for the Mambu entity for requested activitiesMambuApiException
public java.util.List<com.mambu.api.server.handler.activityfeed.model.JSONActivity> getActivities(java.util.Date fromDate, java.util.Date toDate, java.lang.Integer offset, java.lang.Integer limit) throws MambuApiException
fromDate
- starting date for the time interval (mandatory).Only the full date without time is used, the date is
inclusivetoDate
- end date for the time interval (mandatory). Only the full date without time is used,the date is
inclusiveoffset
- offset to start pagination. If null, the default value of 0 (zero) will be used.limit
- page-size. If null, the default value of 50 (fifty) will be used.MambuApiException
public java.util.List<com.mambu.api.server.handler.activityfeed.model.JSONActivity> getActivities(java.util.Date fromDate, java.util.Date toDate) throws MambuApiException
fromDate
- starting date for the time interval (mandatory).Only the full date without time is used, the date is
inclusivetoDate
- end date for the time interval (mandatory). Only the full date without time is used,the date is
inclusiveMambuApiException