@FrameworkRestController @FrameworkMapping(path="/api/import") @ConditionalOnImport @ConditionalOnAdmin public class AdminAdvancedOfferImportEndpoint extends Object
| Modifier and Type | Field and Description |
|---|---|
protected AdvancedOfferImportService |
offerImportService |
protected org.broadleafcommerce.common.site.service.SiteService |
siteService |
| Constructor and Description |
|---|
AdminAdvancedOfferImportEndpoint() |
| Modifier and Type | Method and Description |
|---|---|
void |
importOfferCodesByCodeGenerationId(Long codeGroupId,
String importType,
Long sandboxId,
Long catalogId,
Long siteId,
InputStream body) |
protected org.broadleafcommerce.common.site.domain.Catalog |
resolveCatalogId(Long overrideCatalogId) |
protected org.broadleafcommerce.common.site.domain.Site |
resolveSiteId(Long overrideSiteId) |
@Autowired protected AdvancedOfferImportService offerImportService
@Autowired protected org.broadleafcommerce.common.site.service.SiteService siteService
@FrameworkMapping(path="/offer/codes/{codeGroup}",
method=POST)
public void importOfferCodesByCodeGenerationId(@PathVariable(value="codeGroup")
Long codeGroupId,
@RequestParam(value="importSpecification",defaultValue="CSV")
String importType,
@RequestParam(value="sandboxId",required=false)
Long sandboxId,
@RequestParam(value="catalog",required=false)
Long catalogId,
@RequestParam(value="site",required=false)
Long siteId,
InputStream body)
throws Exception
Exceptionprotected org.broadleafcommerce.common.site.domain.Site resolveSiteId(Long overrideSiteId)
protected org.broadleafcommerce.common.site.domain.Catalog resolveCatalogId(Long overrideCatalogId)
Copyright © 2020. All rights reserved.