@Override protected void addData( HttpServletRequest req, HttpServletResponse resp, User user, Collection<VehicleType> result, int pageSize, int page, String searchText, int limit) { result.addAll( VehicleTypeUtil.getInstance() .findByCompany(user.getCompany(), pageSize, page, searchText, limit)); }
@Override protected int getTotalItems(User user) { return VehicleTypeUtil.getInstance().getTotalItems(user.getCompany()); }