protected function _mapEnumValue(\DrSlump\Protobuf\Field $descriptor, \App_ListFilter_Interface $filter, \App_ListFilter $filterList)
 {
     if ($filter->getFieldName() == StockFilterFields::LIFE_CYCLE_STATUS) {
         return StockMapper::getInstance()->mapInitialLifeCycleStatusToEricsson($filter->getValue());
     }
     return parent::_mapEnumValue($descriptor, $filter, $filterList);
 }
 protected function _mapSimpleValue(\DrSlump\Protobuf\Field $descriptor, \App_ListFilter_Interface $filter, \App_ListFilter $filterList)
 {
     switch ($filter->getFieldName()) {
         case CommercialGroupFilterFields::AGGREGATOR_ID:
             return OrganizationMapper::cleanOrgId(parent::_mapSimpleValue($descriptor, $filter, $filterList));
     }
     return parent::_mapSimpleValue($descriptor, $filter, $filterList);
 }
 protected function _mapSimpleValue(\DrSlump\Protobuf\Field $descriptor, \App_ListFilter_Interface $filter, \App_ListFilter $filterList)
 {
     switch ($filter->getFieldName()) {
         case PreBillFilterFields::CUSTOMER:
             return OrganizationMapper::cleanOrgId(parent::_mapSimpleValue($descriptor, $filter, $filterList));
     }
     return parent::_mapSimpleValue($descriptor, $filter, $filterList);
 }
 /**
  * (non-PHPdoc)
  * @see Application\Model\Mapper.FilterMapperAbstract::_mapMessageValue()
  */
 protected function _mapMessageValue(\DrSlump\Protobuf\Field $descriptor, \App_ListFilter_Interface $filter, \App_ListFilter $filterList)
 {
     if ($descriptor->getReference() == '\\Application\\Proto\\Report\\Target') {
         return $this->_mapTarget($descriptor, $filter, $filterList);
     }
     $result = parent::_mapMessageValue($descriptor, $filter, $filterList);
     if (!is_null($result)) {
         return $result;
     }
     return;
 }
 /**
  * Maps an enum value
  * @param  \DrSlump\Protobuf\Field   $descriptor
  * @param  \App_ListFilter_Interface $filter
  * @return mixed                     Enum value.
  */
 protected function _mapEnumValue(\DrSlump\Protobuf\Field $descriptor, \App_ListFilter_Interface $filter, \App_ListFilter $filterList)
 {
     $alarmRuleMapper = AlarmRuleMapper::getInstance();
     $alarmMapper = AlarmMapper::getInstance();
     switch ($filter->getFieldName()) {
         case AlarmFilterFields::RULE_CONDITION:
             return $alarmRuleMapper->mapConditionToEricsson($filter->getValue());
         case AlarmFilterFields::UNIVERSE_TYPE:
             return $alarmRuleMapper->mapUniverseToEricsson($filter->getValue());
         case AlarmFilterFields::SEVERITY:
             return $alarmRuleMapper->mapSeverityToEricsson($filter->getValue());
         case AlarmFilterFields::STATE:
             return $alarmMapper->mapStateToEricsson($filter->getValue());
         case AlarmFilterFields::ALARM_TYPE:
             return $alarmMapper->mapTypeToEricsson($filter->getValue());
     }
     parent::_mapEnumValue($descriptor, $filter, $filterList);
 }
 protected function _createCriteria(\App_ListFilter_Interface $filter, \App_ListFilter $filterList)
 {
     switch ($filter->getFieldName()) {
         case SimFilterFields::ALARM_TYPE:
         case SimFilterFields::ALARM_SEVERITY:
         case SimFilterFields::ALARM_ATTENDED:
             if ($this->_isAlarmFilterMapped) {
                 return;
             }
             break;
     }
     return parent::_createCriteria($filter, $filterList);
 }