private BusinessObjectDataNotificationRegistrationEntity createBusinessObjectDataNotificationEntity(NamespaceEntity namespaceEntity,NotificationEventTypeEntity notificationEventTypeEntity,BusinessObjectDefinitionEntity businessObjectDefinitionEntity,FileTypeEntity fileTypeEntity,StorageEntity storageEntity,BusinessObjectDataStatusEntity newBusinessObjectDataStatusEntity,BusinessObjectDataStatusEntity oldBusinessObjectDataStatusEntity,NotificationRegistrationKey key,BusinessObjectDataNotificationFilter businessObjectDataNotificationFilter,List<JobAction> jobActions,NotificationRegistrationStatusEntity notificationRegistrationStatusEntity){
  BusinessObjectDataNotificationRegistrationEntity businessObjectDataNotificationRegistrationEntity=new BusinessObjectDataNotificationRegistrationEntity();
  businessObjectDataNotificationRegistrationEntity.setNamespace(namespaceEntity);
  businessObjectDataNotificationRegistrationEntity.setName(key.getNotificationName());
  businessObjectDataNotificationRegistrationEntity.setNotificationEventType(notificationEventTypeEntity);
  businessObjectDataNotificationRegistrationEntity.setBusinessObjectDefinition(businessObjectDefinitionEntity);
  if (StringUtils.isNotBlank(businessObjectDataNotificationFilter.getBusinessObjectFormatUsage())) {
    businessObjectDataNotificationRegistrationEntity.setUsage(businessObjectDataNotificationFilter.getBusinessObjectFormatUsage());
  }
  businessObjectDataNotificationRegistrationEntity.setFileType(fileTypeEntity);
  businessObjectDataNotificationRegistrationEntity.setBusinessObjectFormatVersion(businessObjectDataNotificationFilter.getBusinessObjectFormatVersion());
  businessObjectDataNotificationRegistrationEntity.setStorage(storageEntity);
  businessObjectDataNotificationRegistrationEntity.setNewBusinessObjectDataStatus(newBusinessObjectDataStatusEntity);
  businessObjectDataNotificationRegistrationEntity.setOldBusinessObjectDataStatus(oldBusinessObjectDataStatusEntity);
  businessObjectDataNotificationRegistrationEntity.setNotificationRegistrationStatus(notificationRegistrationStatusEntity);
  List<NotificationActionEntity> notificationActionEntities=new ArrayList<>();
  businessObjectDataNotificationRegistrationEntity.setNotificationActions(notificationActionEntities);
  for (  JobAction jobAction : jobActions) {
    JobDefinitionEntity jobDefinitionEntity=jobDefinitionDaoHelper.getJobDefinitionEntity(jobAction.getNamespace(),jobAction.getJobName());
    NotificationJobActionEntity notificationJobActionEntity=new NotificationJobActionEntity();
    notificationActionEntities.add(notificationJobActionEntity);
    notificationJobActionEntity.setJobDefinition(jobDefinitionEntity);
    notificationJobActionEntity.setCorrelationData(jobAction.getCorrelationData());
    notificationJobActionEntity.setNotificationRegistration(businessObjectDataNotificationRegistrationEntity);
  }
  return businessObjectDataNotificationRegistrationEntity;
}

private BusinessObjectDataNotificationRegistrationEntity createBusinessObjectDataNotificationEntity ( NamespaceEntity namespaceEntity , NotificationEventTypeEntity notificationEventTypeEntity , BusinessObjectDefinitionEntity businessObjectDefinitionEntity , FileTypeEntity fileTypeEntity , StorageEntity storageEntity , BusinessObjectDataStatusEntity newBusinessObjectDataStatusEntity , BusinessObjectDataStatusEntity oldBusinessObjectDataStatusEntity , NotificationRegistrationKey key , BusinessObjectDataNotificationFilter businessObjectDataNotificationFilter , List < JobAction > jobActions , NotificationRegistrationStatusEntity notificationRegistrationStatusEntity ) { BusinessObjectDataNotificationRegistrationEntity businessObjectDataNotificationRegistrationEntity = new BusinessObjectDataNotificationRegistrationEntity ( ) ; businessObjectDataNotificationRegistrationEntity . setNamespace ( namespaceEntity ) ; businessObjectDataNotificationRegistrationEntity . setName ( key . getNotificationName ( ) ) ; businessObjectDataNotificationRegistrationEntity . setNotificationEventType ( notificationEventTypeEntity ) ; businessObjectDataNotificationRegistrationEntity . setBusinessObjectDefinition ( businessObjectDefinitionEntity ) ; if ( StringUtils . isNotBlank ( businessObjectDataNotificationFilter . getBusinessObjectFormatUsage ( ) ) ) { businessObjectDataNotificationRegistrationEntity . setUsage ( businessObjectDataNotificationFilter . getBusinessObjectFormatUsage ( ) ) ; } businessObjectDataNotificationRegistrationEntity . setFileType ( fileTypeEntity ) ; businessObjectDataNotificationRegistrationEntity . setBusinessObjectFormatVersion ( businessObjectDataNotificationFilter . getBusinessObjectFormatVersion ( ) ) ; businessObjectDataNotificationRegistrationEntity . setStorage ( storageEntity ) ; businessObjectDataNotificationRegistrationEntity . setNewBusinessObjectDataStatus ( newBusinessObjectDataStatusEntity ) ; businessObjectDataNotificationRegistrationEntity . setOldBusinessObjectDataStatus ( oldBusinessObjectDataStatusEntity ) ; businessObjectDataNotificationRegistrationEntity . setNotificationRegistrationStatus ( notificationRegistrationStatusEntity ) ; List < NotificationActionEntity > notificationActionEntities = new ArrayList < > ( ) ; businessObjectDataNotificationRegistrationEntity . setNotificationActions ( notificationActionEntities ) ; for ( JobAction jobAction : jobActions ) { JobDefinitionEntity jobDefinitionEntity = jobDefinitionDaoHelper . getJobDefinitionEntity ( jobAction . getNamespace ( ) , jobAction . getJobName ( ) ) ; NotificationJobActionEntity notificationJobActionEntity = new NotificationJobActionEntity ( ) ; notificationActionEntities . add ( notificationJobActionEntity ) ; notificationJobActionEntity . setJobDefinition ( jobDefinitionEntity ) ; notificationJobActionEntity . setCorrelationData ( jobAction . getCorrelationData ( ) ) ; notificationJobActionEntity . setNotificationRegistration ( businessObjectDataNotificationRegistrationEntity ) ; } return businessObjectDataNotificationRegistrationEntity ; }
creates a new business object data notification registration entity from the request information .
