@FrameworkRestController @FrameworkMapping(path="/api/export") @ConditionalOnExport @ConditionalOnAdmin public class AdminAdvancedOfferExportEndpoint extends Object
| Modifier and Type | Field and Description |
|---|---|
protected CodeGeneratorService |
codeGeneratorService |
protected org.springframework.context.ApplicationContext |
context |
protected org.springframework.core.env.Environment |
environment |
static int |
PAGE_SIZE_DEFAULT |
static String |
PAGE_SIZE_PROPERTY_NAME |
| Constructor and Description |
|---|
AdminAdvancedOfferExportEndpoint(org.springframework.context.ApplicationContext applicationContext,
CodeGeneratorService codeGeneratorService,
org.springframework.core.env.Environment environment) |
| Modifier and Type | Method and Description |
|---|---|
OfferCodeBatchDTO |
getBatchOfferCodesByCodeGenerationId(Long firstId,
Integer count,
Long codeGroupId) |
public static final int PAGE_SIZE_DEFAULT
public static final String PAGE_SIZE_PROPERTY_NAME
protected CodeGeneratorService codeGeneratorService
protected org.springframework.context.ApplicationContext context
protected org.springframework.core.env.Environment environment
@Autowired
public AdminAdvancedOfferExportEndpoint(org.springframework.context.ApplicationContext applicationContext,
CodeGeneratorService codeGeneratorService,
org.springframework.core.env.Environment environment)
@FrameworkMapping(path="/offer/codes/{codeGroupId}",
method=GET)
public OfferCodeBatchDTO getBatchOfferCodesByCodeGenerationId(@RequestParam(required=false)
Long firstId,
@RequestParam(required=false)
Integer count,
@PathVariable
Long codeGroupId)
Copyright © 2020. All rights reserved.