mirror of
https://github.com/Stirling-Tools/Stirling-PDF.git
synced 2026-09-03 13:20:08 +03:00
Compare commits
19
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
664300d39a | ||
|
|
007815ba86 | ||
|
|
2818efef81 | ||
|
|
52a0c23411 | ||
|
|
0012c35dfb | ||
|
|
cd816f249b | ||
|
|
2b3dd8b4c4 | ||
|
|
aed9859e80 | ||
|
|
102162965d | ||
|
|
3de1339362 | ||
|
|
e37287013a | ||
|
|
09588f6136 | ||
|
|
ca59ed2f70 | ||
|
|
ef46d5bd76 | ||
|
|
cd27ae9a30 | ||
|
|
8853e44840 | ||
|
|
c6a498a57e | ||
|
|
f2cb51f45e | ||
|
|
d0ca9361d3 |
File diff suppressed because it is too large
Load Diff
-2
@@ -6,14 +6,12 @@ import org.springframework.data.jpa.repository.JpaRepository;
|
||||
import org.springframework.data.jpa.repository.Modifying;
|
||||
import org.springframework.data.jpa.repository.Query;
|
||||
import org.springframework.data.repository.query.Param;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import stirling.software.proprietary.access.model.PrincipalType;
|
||||
import stirling.software.proprietary.access.model.ResourceGrant;
|
||||
import stirling.software.proprietary.access.model.ResourceType;
|
||||
import stirling.software.proprietary.security.model.User;
|
||||
|
||||
@Repository
|
||||
public interface ResourceGrantRepository extends JpaRepository<ResourceGrant, Long> {
|
||||
|
||||
List<ResourceGrant> findByResourceTypeAndResourceId(
|
||||
|
||||
-2
@@ -3,9 +3,7 @@ package stirling.software.proprietary.accountlink;
|
||||
import java.util.Optional;
|
||||
|
||||
import org.springframework.data.jpa.repository.JpaRepository;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
@Repository
|
||||
public interface DeviceCredentialRepository extends JpaRepository<DeviceCredential, Long> {
|
||||
|
||||
/** The singleton credential, if this instance has linked. */
|
||||
|
||||
-2
@@ -3,14 +3,12 @@ package stirling.software.proprietary.integration.repository;
|
||||
import java.util.List;
|
||||
|
||||
import org.springframework.data.jpa.repository.JpaRepository;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import stirling.software.proprietary.access.model.OwnerScope;
|
||||
import stirling.software.proprietary.integration.model.IntegrationConfig;
|
||||
import stirling.software.proprietary.model.Team;
|
||||
import stirling.software.proprietary.security.model.User;
|
||||
|
||||
@Repository
|
||||
public interface IntegrationConfigRepository extends JpaRepository<IntegrationConfig, Long> {
|
||||
|
||||
List<IntegrationConfig> findByOwnerUser(User ownerUser);
|
||||
|
||||
-2
@@ -7,7 +7,6 @@ import org.springframework.data.jpa.repository.JpaRepository;
|
||||
import org.springframework.data.jpa.repository.Modifying;
|
||||
import org.springframework.data.jpa.repository.Query;
|
||||
import org.springframework.data.repository.query.Param;
|
||||
import org.springframework.stereotype.Repository;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
/**
|
||||
@@ -15,7 +14,6 @@ import org.springframework.transaction.annotation.Transactional;
|
||||
* clause the state it was decided against, so a racing claim loses cleanly with 0 rows updated.
|
||||
* Transactional per call so the ledger can run them without an enclosing transaction.
|
||||
*/
|
||||
@Repository
|
||||
public interface ProcessedFileRepository
|
||||
extends JpaRepository<ProcessedFileEntity, ProcessedFileId> {
|
||||
|
||||
|
||||
-2
@@ -7,10 +7,8 @@ import org.springframework.data.jpa.repository.JpaRepository;
|
||||
import org.springframework.data.jpa.repository.Modifying;
|
||||
import org.springframework.data.jpa.repository.Query;
|
||||
import org.springframework.data.repository.query.Param;
|
||||
import org.springframework.stereotype.Repository;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
@Repository
|
||||
public interface SourceDocCountRepository
|
||||
extends JpaRepository<SourceDocCountEntity, SourceDocCountId> {
|
||||
|
||||
|
||||
-2
@@ -7,10 +7,8 @@ import org.springframework.data.jpa.repository.JpaRepository;
|
||||
import org.springframework.data.jpa.repository.Modifying;
|
||||
import org.springframework.data.jpa.repository.Query;
|
||||
import org.springframework.data.repository.query.Param;
|
||||
import org.springframework.stereotype.Repository;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
@Repository
|
||||
public interface SourceDocTotalRepository extends JpaRepository<SourceDocTotalEntity, String> {
|
||||
|
||||
/**
|
||||
|
||||
-2
@@ -5,9 +5,7 @@ import java.util.List;
|
||||
import org.springframework.data.jpa.repository.JpaRepository;
|
||||
import org.springframework.data.jpa.repository.Query;
|
||||
import org.springframework.data.repository.query.Param;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
@Repository
|
||||
public interface SourceRepository extends JpaRepository<SourceEntity, String> {
|
||||
|
||||
/**
|
||||
|
||||
-2
@@ -6,11 +6,9 @@ import org.springframework.data.jpa.repository.JpaRepository;
|
||||
import org.springframework.data.jpa.repository.Lock;
|
||||
import org.springframework.data.jpa.repository.Query;
|
||||
import org.springframework.data.repository.query.Param;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import jakarta.persistence.LockModeType;
|
||||
|
||||
@Repository
|
||||
public interface PolicyRepository extends JpaRepository<PolicyEntity, String> {
|
||||
|
||||
/**
|
||||
|
||||
-2
@@ -10,12 +10,10 @@ import org.springframework.data.jpa.repository.JpaRepository;
|
||||
import org.springframework.data.jpa.repository.Modifying;
|
||||
import org.springframework.data.jpa.repository.Query;
|
||||
import org.springframework.data.repository.query.Param;
|
||||
import org.springframework.stereotype.Repository;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import stirling.software.proprietary.model.security.PersistentAuditEvent;
|
||||
|
||||
@Repository
|
||||
public interface PersistentAuditEventRepository extends JpaRepository<PersistentAuditEvent, Long> {
|
||||
|
||||
// Basic queries
|
||||
|
||||
-2
@@ -3,11 +3,9 @@ package stirling.software.proprietary.security.database.repository;
|
||||
import java.util.Set;
|
||||
|
||||
import org.springframework.data.jpa.repository.JpaRepository;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import stirling.software.proprietary.security.model.Authority;
|
||||
|
||||
@Repository
|
||||
public interface AuthorityRepository extends JpaRepository<Authority, Long> {
|
||||
// Set<Authority> findByUsername(String username);
|
||||
Set<Authority> findByUser_Username(String username);
|
||||
|
||||
-2
@@ -1,11 +1,9 @@
|
||||
package stirling.software.proprietary.security.database.repository;
|
||||
|
||||
import org.springframework.data.jpa.repository.JpaRepository;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import stirling.software.proprietary.security.model.PersistentLogin;
|
||||
|
||||
@Repository
|
||||
public interface PersistentLoginRepository extends JpaRepository<PersistentLogin, String> {
|
||||
void deleteByUsername(String username);
|
||||
}
|
||||
|
||||
-2
@@ -7,13 +7,11 @@ import org.springframework.data.jpa.repository.JpaRepository;
|
||||
import org.springframework.data.jpa.repository.Modifying;
|
||||
import org.springframework.data.jpa.repository.Query;
|
||||
import org.springframework.data.repository.query.Param;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import jakarta.transaction.Transactional;
|
||||
|
||||
import stirling.software.proprietary.security.model.SessionEntity;
|
||||
|
||||
@Repository
|
||||
public interface SessionRepository extends JpaRepository<SessionEntity, String> {
|
||||
List<SessionEntity> findByPrincipalName(String principalName);
|
||||
|
||||
|
||||
-2
@@ -12,12 +12,10 @@ import org.springframework.data.jpa.repository.JpaRepository;
|
||||
import org.springframework.data.jpa.repository.Modifying;
|
||||
import org.springframework.data.jpa.repository.Query;
|
||||
import org.springframework.data.repository.query.Param;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import stirling.software.proprietary.model.Team;
|
||||
import stirling.software.proprietary.security.model.User;
|
||||
|
||||
@Repository
|
||||
public interface UserRepository extends JpaRepository<User, Long> {
|
||||
Optional<User> findByUsernameIgnoreCase(String username);
|
||||
|
||||
|
||||
-2
@@ -8,11 +8,9 @@ import org.springframework.data.jpa.repository.JpaRepository;
|
||||
import org.springframework.data.jpa.repository.Modifying;
|
||||
import org.springframework.data.jpa.repository.Query;
|
||||
import org.springframework.data.repository.query.Param;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import stirling.software.proprietary.security.model.InviteToken;
|
||||
|
||||
@Repository
|
||||
public interface InviteTokenRepository extends JpaRepository<InviteToken, Long> {
|
||||
|
||||
Optional<InviteToken> findByToken(String token);
|
||||
|
||||
-2
@@ -7,13 +7,11 @@ import org.springframework.data.jpa.repository.JpaRepository;
|
||||
import org.springframework.data.jpa.repository.Modifying;
|
||||
import org.springframework.data.jpa.repository.Query;
|
||||
import org.springframework.data.repository.query.Param;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import stirling.software.common.model.enumeration.TeamRole;
|
||||
import stirling.software.proprietary.model.TeamMembership;
|
||||
import stirling.software.proprietary.security.model.User;
|
||||
|
||||
@Repository
|
||||
public interface TeamMembershipRepository extends JpaRepository<TeamMembership, Long> {
|
||||
|
||||
/**
|
||||
|
||||
-2
@@ -5,12 +5,10 @@ import java.util.Optional;
|
||||
|
||||
import org.springframework.data.jpa.repository.JpaRepository;
|
||||
import org.springframework.data.jpa.repository.Query;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import stirling.software.proprietary.model.Team;
|
||||
import stirling.software.proprietary.model.dto.TeamWithUserCountDTO;
|
||||
|
||||
@Repository
|
||||
public interface TeamRepository extends JpaRepository<Team, Long> {
|
||||
Optional<Team> findByName(String name);
|
||||
|
||||
|
||||
-2
@@ -3,11 +3,9 @@ package stirling.software.proprietary.security.repository;
|
||||
import java.util.Optional;
|
||||
|
||||
import org.springframework.data.jpa.repository.JpaRepository;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import stirling.software.proprietary.model.UserLicenseSettings;
|
||||
|
||||
@Repository
|
||||
public interface UserLicenseSettingsRepository extends JpaRepository<UserLicenseSettings, Long> {
|
||||
|
||||
/**
|
||||
|
||||
-2
@@ -5,11 +5,9 @@ import java.util.Optional;
|
||||
import org.springframework.data.jpa.repository.JpaRepository;
|
||||
import org.springframework.data.jpa.repository.Query;
|
||||
import org.springframework.data.repository.query.Param;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import stirling.software.proprietary.workflow.model.UserServerCertificateEntity;
|
||||
|
||||
@Repository
|
||||
public interface UserServerCertificateRepository
|
||||
extends JpaRepository<UserServerCertificateEntity, Long> {
|
||||
|
||||
|
||||
-2
@@ -7,7 +7,6 @@ import org.springframework.data.jpa.repository.JpaRepository;
|
||||
import org.springframework.data.jpa.repository.Modifying;
|
||||
import org.springframework.data.jpa.repository.Query;
|
||||
import org.springframework.data.repository.query.Param;
|
||||
import org.springframework.stereotype.Repository;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import stirling.software.proprietary.security.model.User;
|
||||
@@ -15,7 +14,6 @@ import stirling.software.proprietary.workflow.model.ParticipantStatus;
|
||||
import stirling.software.proprietary.workflow.model.WorkflowParticipant;
|
||||
import stirling.software.proprietary.workflow.model.WorkflowSession;
|
||||
|
||||
@Repository
|
||||
public interface WorkflowParticipantRepository extends JpaRepository<WorkflowParticipant, Long> {
|
||||
|
||||
/** Find participant by share token */
|
||||
|
||||
-2
@@ -6,14 +6,12 @@ import java.util.Optional;
|
||||
import org.springframework.data.jpa.repository.JpaRepository;
|
||||
import org.springframework.data.jpa.repository.Query;
|
||||
import org.springframework.data.repository.query.Param;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import stirling.software.proprietary.security.model.User;
|
||||
import stirling.software.proprietary.workflow.model.WorkflowSession;
|
||||
import stirling.software.proprietary.workflow.model.WorkflowStatus;
|
||||
import stirling.software.proprietary.workflow.model.WorkflowType;
|
||||
|
||||
@Repository
|
||||
public interface WorkflowSessionRepository extends JpaRepository<WorkflowSession, Long> {
|
||||
|
||||
/** Find workflow session by unique session ID */
|
||||
|
||||
-2
@@ -7,12 +7,10 @@ import java.util.UUID;
|
||||
import org.springframework.data.jpa.repository.JpaRepository;
|
||||
import org.springframework.data.jpa.repository.Query;
|
||||
import org.springframework.data.repository.query.Param;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import stirling.software.saas.billing.model.BillingSubscription;
|
||||
|
||||
/** Read/write access to the Stripe subscription mirror table. */
|
||||
@Repository
|
||||
public interface BillingSubscriptionRepository extends JpaRepository<BillingSubscription, String> {
|
||||
|
||||
List<BillingSubscription> findByUserId(UUID userId);
|
||||
|
||||
@@ -7,7 +7,7 @@ import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
|
||||
|
||||
/**
|
||||
* Registers the {@code :saas} module's entities and repositories with Spring Data JPA. Any new
|
||||
* package holding {@code @Repository} or {@code @Entity} classes must be added here, or the beans
|
||||
* package holding repository interfaces or {@code @Entity} classes must be added here, or the beans
|
||||
* won't wire at startup.
|
||||
*/
|
||||
@Configuration
|
||||
|
||||
-2
@@ -9,14 +9,12 @@ import org.springframework.data.jpa.repository.JpaRepository;
|
||||
import org.springframework.data.jpa.repository.Modifying;
|
||||
import org.springframework.data.jpa.repository.Query;
|
||||
import org.springframework.data.repository.query.Param;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import stirling.software.saas.payg.job.JobArtifactHash;
|
||||
import stirling.software.saas.payg.job.JobArtifactHash.JobArtifactHashId;
|
||||
import stirling.software.saas.payg.lineage.LineageMatch;
|
||||
import stirling.software.saas.payg.model.JobStatus;
|
||||
|
||||
@Repository
|
||||
public interface JobArtifactHashRepository
|
||||
extends JpaRepository<JobArtifactHash, JobArtifactHashId> {
|
||||
|
||||
|
||||
-2
@@ -9,12 +9,10 @@ import org.springframework.data.jpa.repository.JpaRepository;
|
||||
import org.springframework.data.jpa.repository.Modifying;
|
||||
import org.springframework.data.jpa.repository.Query;
|
||||
import org.springframework.data.repository.query.Param;
|
||||
import org.springframework.stereotype.Repository;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import stirling.software.saas.payg.meter.PaygMeterEventLog;
|
||||
|
||||
@Repository
|
||||
public interface PaygMeterEventLogRepository extends JpaRepository<PaygMeterEventLog, Long> {
|
||||
|
||||
/**
|
||||
|
||||
-2
@@ -8,11 +8,9 @@ import java.util.UUID;
|
||||
import org.springframework.data.jpa.repository.JpaRepository;
|
||||
import org.springframework.data.jpa.repository.Query;
|
||||
import org.springframework.data.repository.query.Param;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import stirling.software.saas.payg.shadow.PaygShadowCharge;
|
||||
|
||||
@Repository
|
||||
public interface PaygShadowChargeRepository extends JpaRepository<PaygShadowCharge, Long> {
|
||||
|
||||
@Query(
|
||||
|
||||
-2
@@ -7,13 +7,11 @@ import org.springframework.data.jpa.repository.Lock;
|
||||
import org.springframework.data.jpa.repository.Modifying;
|
||||
import org.springframework.data.jpa.repository.Query;
|
||||
import org.springframework.data.repository.query.Param;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import jakarta.persistence.LockModeType;
|
||||
|
||||
import stirling.software.saas.payg.policy.PaygTeamExtensions;
|
||||
|
||||
@Repository
|
||||
public interface PaygTeamExtensionsRepository extends JpaRepository<PaygTeamExtensions, Long> {
|
||||
|
||||
Optional<PaygTeamExtensions> findByStripeCustomerId(String stripeCustomerId);
|
||||
|
||||
-2
@@ -5,11 +5,9 @@ import java.util.Optional;
|
||||
import org.springframework.data.jpa.repository.JpaRepository;
|
||||
import org.springframework.data.jpa.repository.Modifying;
|
||||
import org.springframework.data.jpa.repository.Query;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import stirling.software.saas.payg.policy.PricingPolicy;
|
||||
|
||||
@Repository
|
||||
public interface PricingPolicyRepository extends JpaRepository<PricingPolicy, Long> {
|
||||
|
||||
Optional<PricingPolicy> findByVersion(String version);
|
||||
|
||||
-2
@@ -7,12 +7,10 @@ import java.util.UUID;
|
||||
import org.springframework.data.jpa.repository.JpaRepository;
|
||||
import org.springframework.data.jpa.repository.Query;
|
||||
import org.springframework.data.repository.query.Param;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import stirling.software.saas.payg.job.ProcessingJob;
|
||||
import stirling.software.saas.payg.model.JobStatus;
|
||||
|
||||
@Repository
|
||||
public interface ProcessingJobRepository extends JpaRepository<ProcessingJob, UUID> {
|
||||
|
||||
List<ProcessingJob> findByOwnerUserIdAndStatus(Long ownerUserId, JobStatus status);
|
||||
|
||||
-2
@@ -4,11 +4,9 @@ import java.util.List;
|
||||
import java.util.UUID;
|
||||
|
||||
import org.springframework.data.jpa.repository.JpaRepository;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import stirling.software.saas.payg.job.ProcessingJobStep;
|
||||
|
||||
@Repository
|
||||
public interface ProcessingJobStepRepository extends JpaRepository<ProcessingJobStep, Long> {
|
||||
|
||||
List<ProcessingJobStep> findByJobIdOrderByStartedAtAsc(UUID jobId);
|
||||
|
||||
-2
@@ -3,12 +3,10 @@ package stirling.software.saas.payg.repository;
|
||||
import java.util.Optional;
|
||||
|
||||
import org.springframework.data.jpa.repository.JpaRepository;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import stirling.software.saas.payg.entitlement.WalletEntitlementSnapshot;
|
||||
import stirling.software.saas.payg.entitlement.WalletEntitlementSnapshot.WalletEntitlementSnapshotId;
|
||||
|
||||
@Repository
|
||||
public interface WalletEntitlementSnapshotRepository
|
||||
extends JpaRepository<WalletEntitlementSnapshot, WalletEntitlementSnapshotId> {
|
||||
|
||||
|
||||
-2
@@ -6,12 +6,10 @@ import java.util.List;
|
||||
import org.springframework.data.jpa.repository.JpaRepository;
|
||||
import org.springframework.data.jpa.repository.Query;
|
||||
import org.springframework.data.repository.query.Param;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import stirling.software.saas.payg.model.LedgerEntryType;
|
||||
import stirling.software.saas.payg.wallet.WalletLedgerEntry;
|
||||
|
||||
@Repository
|
||||
public interface WalletLedgerRepository extends JpaRepository<WalletLedgerEntry, Long> {
|
||||
|
||||
/** Most recent entries for the Plan page activity feed. */
|
||||
|
||||
-2
@@ -3,11 +3,9 @@ package stirling.software.saas.payg.repository;
|
||||
import java.util.Optional;
|
||||
|
||||
import org.springframework.data.jpa.repository.JpaRepository;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import stirling.software.saas.payg.wallet.WalletPolicy;
|
||||
|
||||
@Repository
|
||||
public interface WalletPolicyRepository extends JpaRepository<WalletPolicy, Long> {
|
||||
|
||||
Optional<WalletPolicy> findByTeamId(Long teamId);
|
||||
|
||||
-2
@@ -6,11 +6,9 @@ import org.springframework.data.jpa.repository.JpaRepository;
|
||||
import org.springframework.data.jpa.repository.Modifying;
|
||||
import org.springframework.data.jpa.repository.Query;
|
||||
import org.springframework.data.repository.query.Param;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import stirling.software.saas.model.SaasTeamExtensions;
|
||||
|
||||
@Repository
|
||||
public interface SaasTeamExtensionsRepository extends JpaRepository<SaasTeamExtensions, Long> {
|
||||
|
||||
Optional<SaasTeamExtensions> findByTeamId(Long teamId);
|
||||
|
||||
-2
@@ -6,11 +6,9 @@ import java.util.UUID;
|
||||
import org.springframework.data.jpa.repository.JpaRepository;
|
||||
import org.springframework.data.jpa.repository.Query;
|
||||
import org.springframework.data.repository.query.Param;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import stirling.software.saas.model.SaasUserExtensions;
|
||||
|
||||
@Repository
|
||||
public interface SaasUserExtensionsRepository extends JpaRepository<SaasUserExtensions, Long> {
|
||||
|
||||
Optional<SaasUserExtensions> findByUserId(Long userId);
|
||||
|
||||
@@ -9,11 +9,9 @@ import org.springframework.data.jpa.repository.JpaRepository;
|
||||
import org.springframework.data.jpa.repository.Modifying;
|
||||
import org.springframework.data.jpa.repository.Query;
|
||||
import org.springframework.data.repository.query.Param;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import stirling.software.saas.model.SupabaseUser;
|
||||
|
||||
@Repository
|
||||
public interface SupabaseUserRepository extends JpaRepository<SupabaseUser, UUID> {
|
||||
|
||||
/**
|
||||
|
||||
@@ -8,12 +8,10 @@ import org.springframework.data.jpa.repository.JpaRepository;
|
||||
import org.springframework.data.jpa.repository.Modifying;
|
||||
import org.springframework.data.jpa.repository.Query;
|
||||
import org.springframework.data.repository.query.Param;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import stirling.software.common.model.enumeration.InvitationStatus;
|
||||
import stirling.software.saas.model.TeamInvitation;
|
||||
|
||||
@Repository
|
||||
public interface TeamInvitationRepository extends JpaRepository<TeamInvitation, Long> {
|
||||
|
||||
/**
|
||||
|
||||
@@ -46,7 +46,7 @@ class SaasJpaConfigScanTest {
|
||||
|
||||
Set<String> actual = Set.copyOf(Arrays.asList(annotation.basePackages()));
|
||||
assertThat(actual)
|
||||
.as("Every package holding @Repository interfaces must be listed")
|
||||
.as("Every package holding repository interfaces must be listed")
|
||||
.containsAll(EXPECTED_REPO_PACKAGES);
|
||||
}
|
||||
|
||||
|
||||
+18
-2
@@ -2,7 +2,7 @@ plugins {
|
||||
id "java"
|
||||
id "jacoco"
|
||||
id "io.spring.dependency-management" version "1.1.7"
|
||||
id "org.springframework.boot" version "4.0.6"
|
||||
id "org.springframework.boot" version "4.1.0"
|
||||
id "org.springdoc.openapi-gradle-plugin" version "1.9.0"
|
||||
id "io.swagger.swaggerhub" version "1.3.2"
|
||||
id "com.diffplug.spotless" version "8.8.0"
|
||||
@@ -21,7 +21,7 @@ import org.gradle.jvm.toolchain.JavaLanguageVersion
|
||||
import stirling.software.gradle.ModuleLicenseOverrideFilter
|
||||
|
||||
ext {
|
||||
springBootVersion = "4.0.6"
|
||||
springBootVersion = "4.1.0"
|
||||
pdfboxVersion = "3.0.8"
|
||||
imageioVersion = "3.13.1"
|
||||
lombokVersion = "1.18.46"
|
||||
@@ -73,6 +73,19 @@ ext.isSecurityDisabled = { ->
|
||||
System.getProperty('DISABLE_ADDITIONAL_FEATURES') == 'true')
|
||||
}
|
||||
|
||||
ext.getEnv = { ->
|
||||
def sel = System.getenv('SECURITY_ENABLELOGIN')
|
||||
logger.lifecycle("SECURITY_ENABLELOGIN: ${sel}")
|
||||
def des = System.getenv('DOCKER_ENABLE_SECURITY')
|
||||
logger.lifecycle("DOCKER_ENABLE_SECURITY: ${des}")
|
||||
def flavorValue = System.getenv('STIRLING_FLAVOR')
|
||||
logger.lifecycle("STIRLING_FLAVOR: ${flavorValue}")
|
||||
def saas = System.getenv('ENABLE_SAAS')
|
||||
logger.lifecycle("ENABLE_SAAS: ${saas}")
|
||||
def daf = System.getenv('DISABLE_ADDITIONAL_FEATURES')
|
||||
logger.lifecycle("DISABLE_ADDITIONAL_FEATURES: ${daf}")
|
||||
}
|
||||
|
||||
ext.mavenUrl = System.getenv("MAVEN_PUBLIC_URL") ?: ""
|
||||
ext.username = System.getenv('MAVEN_USER') ?: ""
|
||||
ext.password = System.getenv('MAVEN_PASSWORD') ?: ""
|
||||
@@ -251,6 +264,8 @@ subprojects {
|
||||
resolutionStrategy.force "org.bouncycastle:bcprov-jdk18on:${bouncycastleVersion}"
|
||||
resolutionStrategy.force "org.bouncycastle:bcpkix-jdk18on:${bouncycastleVersion}"
|
||||
resolutionStrategy.force "org.bouncycastle:bcutil-jdk18on:${bouncycastleVersion}"
|
||||
resolutionStrategy.force "org.apache.santuario:xmlsec:4.0.4"
|
||||
resolutionStrategy.force "com.google.guava:guava:${guavaVersion}"
|
||||
}
|
||||
|
||||
dependencyManagement {
|
||||
@@ -654,6 +669,7 @@ dependencies {
|
||||
if (rootProject.ext.isSecurityDisabled()) {
|
||||
implementation project(':proprietary')
|
||||
}
|
||||
rootProject.ext.getEnv()
|
||||
|
||||
testImplementation 'org.springframework.boot:spring-boot-starter-test'
|
||||
testRuntimeOnly "org.junit.platform:junit-platform-launcher"
|
||||
|
||||
Reference in New Issue
Block a user