mirror of
https://github.com/arsvendg/Stirling-PDF.git
synced 2026-07-14 18:44:05 +02:00
+23

![github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>](/assets/img/avatar_default.png)







Anthony Stirling
GitHub
Tarun Kumar S
Ian Jennings
Corbinian Grimm
albanobattistella
Eric
github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
GitHub Action
swanemar
pixeebot[bot] <104101892+pixeebot[bot]@users.noreply.github.com>
github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Manuel Mora Gordillo
Manu
Ludy
dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Florian Fish
reecebrowne
Dimitrios Kaitantzidis
Rania Amina
Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
Ludovic Ortega
Philip H.
Saud Fatayerji
MaratheHarshad
Harshad Marathe
ninjat
Peter Dave Hello
Rafael Encinas
Renan
leo-jmateo
S. Neuhaus
Dimitris Kaitantzidis
e0f553c15a
* initial Commit * update prerun * tweak the prompt * update the test * finetune prompt * change the prompt * minor change to retry test * add debug --------- # Description Please provide a summary of the changes, including relevant motivation and context. Closes #(issue_number) ## Checklist - [ ] I have read the [Contribution Guidelines](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/CONTRIBUTING.md) - [ ] I have performed a self-review of my own code - [ ] I have commented my code, particularly in hard-to-understand areas - [ ] My changes generate no new warnings - [ ] I have read the section [Add New Translation Tags](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/HowToAddNewLanguage.md#add-new-translation-tags) (for new translation tags only) --------- Signed-off-by: GitHub Action <[email protected]> Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: Ludovic Ortega <[email protected]> Co-authored-by: Tarun Kumar S <[email protected]> Co-authored-by: Ian Jennings <[email protected]> Co-authored-by: Corbinian Grimm <[email protected]> Co-authored-by: albanobattistella <[email protected]> Co-authored-by: Eric <[email protected]> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: GitHub Action <[email protected]> Co-authored-by: swanemar <[email protected]> Co-authored-by: pixeebot[bot] <104101892+pixeebot[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Manuel Mora Gordillo <[email protected]> Co-authored-by: Manu <[email protected]> Co-authored-by: Ludy <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Florian Fish <[email protected]> Co-authored-by: reecebrowne <[email protected]> Co-authored-by: Dimitrios Kaitantzidis <[email protected]> Co-authored-by: Rania Amina <[email protected]> Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> Co-authored-by: Ludovic Ortega <[email protected]> Co-authored-by: Philip H. <[email protected]> Co-authored-by: Saud Fatayerji <[email protected]> Co-authored-by: MaratheHarshad <[email protected]> Co-authored-by: Harshad Marathe <harshad@DESKTOP-1MNKUHA> Co-authored-by: ninjat <[email protected]> Co-authored-by: Peter Dave Hello <[email protected]> Co-authored-by: Rafael Encinas <[email protected]> Co-authored-by: Renan <[email protected]> Co-authored-by: leo-jmateo <[email protected]> Co-authored-by: S. Neuhaus <[email protected]> Co-authored-by: Dimitris Kaitantzidis <[email protected]>
36 lines
1.1 KiB
Java
36 lines
1.1 KiB
Java
package stirling.software.SPDF.EE;
|
|
|
|
import org.springframework.context.annotation.Bean;
|
|
import org.springframework.context.annotation.Configuration;
|
|
import org.springframework.core.Ordered;
|
|
import org.springframework.core.annotation.Order;
|
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import stirling.software.SPDF.model.ApplicationProperties;
|
|
|
|
@Configuration
|
|
@Order(Ordered.HIGHEST_PRECEDENCE)
|
|
@Slf4j
|
|
public class EEAppConfig {
|
|
|
|
private final ApplicationProperties applicationProperties;
|
|
|
|
private final LicenseKeyChecker licenseKeyChecker;
|
|
|
|
public EEAppConfig(
|
|
ApplicationProperties applicationProperties, LicenseKeyChecker licenseKeyChecker) {
|
|
this.applicationProperties = applicationProperties;
|
|
this.licenseKeyChecker = licenseKeyChecker;
|
|
}
|
|
|
|
@Bean(name = "runningEE")
|
|
public boolean runningEnterpriseEdition() {
|
|
return licenseKeyChecker.getEnterpriseEnabledResult();
|
|
}
|
|
|
|
@Bean(name = "SSOAutoLogin")
|
|
public boolean ssoAutoLogin() {
|
|
return applicationProperties.getEnterpriseEdition().isSsoAutoLogin();
|
|
}
|
|
}
|