public function indexAction()
 {
     $dumpOrg = new OrgCustomerModel();
     $this->_helper->allowed('list', $dumpOrg);
     $params = $this->_getPaginatorParams();
     $filters = $this->_getFilterParams();
     if (isset($filters['customerID'])) {
         $filters['customerId'] = $filters['customerID'];
         unset($filters['customerID']);
     }
     if (isset($filters['billingAccountID'])) {
         $filters['billingAccountId'] = $filters['billingAccountID'];
         unset($filters['billingAccountID']);
     }
     if (isset($filters['startDate'])) {
         $filters['creationPeriod'] = $filters['startDate'] . '<>';
         unset($filters['startDate']);
     }
     if (isset($filters['endDate'])) {
         if (!isset($filters['creationPeriod'])) {
             $filters['creationPeriod'] = '<>';
         }
         $filters['creationPeriod'] .= $filters['endDate'];
         unset($filters['endDate']);
     }
     $this->_checkFilterParams($filters, array_merge(CustomerFilterFields::getWhiteList(), array('id')));
     $filters['type'] = OrgCustomerModel::ORG_TYPE;
     $filterList = $this->_orgSrv->buildFilterList($filters);
     $this->_helper->filterNotAllowedFilters('filter_by', $filterList);
     if ($filterList !== null) {
         $params['filterList'] = $filterList;
     }
     $customerList = $this->_orgSrv->listAll(Application\Model\Organization\OrgCustomerModel::ORG_TYPE, $params);
     $orgs = array();
     if (!$customerList instanceof Application\Model\ListResultModel) {
         throw new AppEx\UnexpectedException('No list returned');
     }
     $items = $customerList->getItems();
     // Pagination
     $items = array_slice($items, $params['startIndex'], $params['maxBatchSize']);
     foreach ($items as $item) {
         try {
             $org = $this->_orgSrv->load($item->id);
             $this->_helper->filterNotAllowedFields('read_field', $org);
             if ($org) {
                 $orgs[] = $this->_mapToSdp($org->exportData());
             }
         } catch (Exception $e) {
         }
     }
     // Make data available on the view
     $this->view->customerData = $orgs;
 }