Wednesday, 15 December 2010

NextReports : History Pagination

NextReports Server has a Monitor panel where user can see all processes that are running and all scheduled processes that are active. Also , here it can be seen a history of all executed processes and if they finished successfully or not.

History data has security permissions, meaning a user will see only history for those reports he has rights to.

Problem: Because security is done using @Secured spring annotation :

@Transactional(readOnly = true)
@Secured("AFTER_ACL_COLLECTION_READ")
public List getRunHistory() {... }

our data provider  has to load all history data , which will become time consuming soon enough. Pagination is used, but in this case it is only a mode to show less data at a time.

Solution: History will be load only for the current day. A day filter is added to our history panel to allow for seeing history for any other previous day.

No comments:

Post a Comment