Class AdvancedOfferImportServiceImpl
java.lang.Object
com.broadleafcommerce.advancedoffer.admin.dataimport.service.AdvancedOfferImportServiceImpl
- All Implemented Interfaces:
AdvancedOfferImportService
@Component("blAdvancedOfferImportService")
@ConditionalOnImport
@ConditionalOnAdmin
public class AdvancedOfferImportServiceImpl
extends Object
implements AdvancedOfferImportService
Service used to set the current offer code group id and offer id on the additional fields map before
scheduling the import via the import service
- Author:
- Jay Aisenbrey (cja769)
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringprotected com.broadleafcommerce.dataimport.service.ImportServiceprotected AdvOfferCodeDao -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidscheduleImport(Long offerCodeGroupId, InputStream file, String importType) Schedules the import of the offer code input stream via the import module's import service with a default ImportScheduleDefinitionvoidscheduleImport(Long offerCodeGroupId, InputStream file, String importType, com.broadleafcommerce.dataimport.service.ImportScheduleDefinition def) Schedules the import of the offer code input stream via the import module's import service with a specified ImportScheduleDefinition
-
Field Details
-
importService
@Autowired protected com.broadleafcommerce.dataimport.service.ImportService importService -
offerCodeDao
-
IMPORT_OFFER_GROUP_DETAIL
- See Also:
-
IMPORT_OFFER_DETAIL
- See Also:
-
-
Constructor Details
-
AdvancedOfferImportServiceImpl
public AdvancedOfferImportServiceImpl()
-
-
Method Details
-
scheduleImport
public void scheduleImport(Long offerCodeGroupId, InputStream file, String importType) throws Exception Description copied from interface:AdvancedOfferImportServiceSchedules the import of the offer code input stream via the import module's import service with a default ImportScheduleDefinition- Specified by:
scheduleImportin interfaceAdvancedOfferImportService- Throws:
Exception
-
scheduleImport
public void scheduleImport(Long offerCodeGroupId, InputStream file, String importType, com.broadleafcommerce.dataimport.service.ImportScheduleDefinition def) throws Exception Description copied from interface:AdvancedOfferImportServiceSchedules the import of the offer code input stream via the import module's import service with a specified ImportScheduleDefinition- Specified by:
scheduleImportin interfaceAdvancedOfferImportService- Throws:
Exception
-