'Create a new masking view.
:param serial_number: the array serial number
:param masking_view_dict: the masking view dict
:param maskingview_name: the masking view name
:param default_sg_name: the name of the default sg
:param extra_specs: the extra specifications
:returns: error_message'

def _create_new_masking_view(self, serial_number, masking_view_dict, maskingview_name, default_sg_name, extra_specs):

    init_group_name = masking_view_dict[utils.IG_NAME]
    parent_sg_name = masking_view_dict[utils.PARENT_SG_NAME]
    storagegroup_name = masking_view_dict[utils.SG_NAME]
    connector = masking_view_dict[utils.CONNECTOR]
    port_group_name = masking_view_dict[utils.PORTGROUPNAME]
    LOG.info('Port    Group    in    masking    view    operation:    %(port_group_name)s.', {'port_group_name': port_group_name})
    error_message = self._get_or_create_storage_group(serial_number, masking_view_dict, parent_sg_name, extra_specs, parent=True)
    if error_message:
        return error_message
    error_message = self._get_or_create_storage_group(serial_number, masking_view_dict, storagegroup_name, extra_specs)
    if error_message:
        return error_message
    (__, error_message) = self._check_port_group(serial_number, port_group_name)
    if error_message:
        return error_message
    (init_group_name, error_message) = self._get_or_create_initiator_group(serial_number, init_group_name, connector, extra_specs)
    if error_message:
        return error_message
    error_message = self._move_vol_from_default_sg(serial_number, masking_view_dict[utils.DEVICE_ID], masking_view_dict[utils.VOL_NAME], default_sg_name, storagegroup_name, extra_specs)
    if error_message:
        return error_message
    error_message = self._check_add_child_sg_to_parent_sg(serial_number, storagegroup_name, parent_sg_name, masking_view_dict[utils.EXTRA_SPECS])
    if error_message:
        return error_message
    error_message = self.create_masking_view(serial_number, maskingview_name, parent_sg_name, port_group_name, init_group_name, extra_specs)
    return error_message
