mirror of
https://github.com/Stirling-Tools/Stirling-PDF.git
synced 2025-08-05 03:55:21 +00:00
fix for qualifer bean
This commit is contained in:
parent
44b38e3246
commit
1ce676f95b
@ -60,7 +60,6 @@ import static stirling.software.common.util.ProviderUtils.validateProvider;
|
|||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/api/v1/proprietary/ui-data")
|
@RequestMapping("/api/v1/proprietary/ui-data")
|
||||||
@Tag(name = "Proprietary UI Data", description = "APIs for React UI data (Proprietary features)")
|
@Tag(name = "Proprietary UI Data", description = "APIs for React UI data (Proprietary features)")
|
||||||
@RequiredArgsConstructor
|
|
||||||
@EnterpriseEndpoint
|
@EnterpriseEndpoint
|
||||||
public class ProprietaryUIDataController {
|
public class ProprietaryUIDataController {
|
||||||
|
|
||||||
@ -74,6 +73,26 @@ public class ProprietaryUIDataController {
|
|||||||
private final boolean runningEE;
|
private final boolean runningEE;
|
||||||
private final ObjectMapper objectMapper;
|
private final ObjectMapper objectMapper;
|
||||||
|
|
||||||
|
public ProprietaryUIDataController(
|
||||||
|
ApplicationProperties applicationProperties,
|
||||||
|
AuditConfigurationProperties auditConfig,
|
||||||
|
SessionPersistentRegistry sessionPersistentRegistry,
|
||||||
|
UserRepository userRepository,
|
||||||
|
TeamRepository teamRepository,
|
||||||
|
SessionRepository sessionRepository,
|
||||||
|
DatabaseService databaseService,
|
||||||
|
ObjectMapper objectMapper,
|
||||||
|
@Qualifier("runningEE") boolean runningEE) {
|
||||||
|
this.applicationProperties = applicationProperties;
|
||||||
|
this.auditConfig = auditConfig;
|
||||||
|
this.sessionPersistentRegistry = sessionPersistentRegistry;
|
||||||
|
this.userRepository = userRepository;
|
||||||
|
this.teamRepository = teamRepository;
|
||||||
|
this.sessionRepository = sessionRepository;
|
||||||
|
this.databaseService = databaseService;
|
||||||
|
this.objectMapper = objectMapper;
|
||||||
|
this.runningEE = runningEE;
|
||||||
|
}
|
||||||
|
|
||||||
@GetMapping("/audit-dashboard")
|
@GetMapping("/audit-dashboard")
|
||||||
@PreAuthorize("hasRole('ADMIN')")
|
@PreAuthorize("hasRole('ADMIN')")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user