Skip to content

Commit c78aa85

Browse files
chore(be): fixed checkstlye violations
1 parent 6800262 commit c78aa85

32 files changed

Lines changed: 280 additions & 122 deletions

processor/src/main/java/ca/bc/gov/app/configuration/GlobalServiceConfiguration.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
package ca.bc.gov.app.configuration;
22

3-
import static org.springframework.web.reactive.function.client.ExchangeFilterFunctions.basicAuthentication;
4-
53
import ca.bc.gov.app.dto.SubmissionInformationDto;
64
import lombok.extern.slf4j.Slf4j;
75
import org.springframework.aot.hint.annotation.RegisterReflectionForBinding;
86
import org.springframework.context.annotation.Bean;
97
import org.springframework.context.annotation.Configuration;
8+
import org.springframework.web.reactive.function.client.ExchangeFilterFunctions;
109
import org.springframework.web.reactive.function.client.WebClient;
1110

1211
@Configuration
@@ -25,7 +24,7 @@ public WebClient forestClientApi(
2524
return webClientBuilder
2625
.baseUrl(configuration.getBackend().getUri())
2726
.filter(
28-
basicAuthentication(
27+
ExchangeFilterFunctions.basicAuthentication(
2928
configuration.getSecurity().getServiceAccountName(),
3029
configuration.getSecurity().getServiceAccountSecret()
3130
)

processor/src/main/java/ca/bc/gov/app/configuration/SchedulerConfiguration.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@
66

77
@EnableScheduling
88
@Configuration
9-
@ConditionalOnProperty(value = "ca.bc.gov.nrs.processor.scheduling", havingValue = "true", matchIfMissing = true)
9+
@ConditionalOnProperty(
10+
value = "ca.bc.gov.nrs.processor.scheduling",
11+
havingValue = "true",
12+
matchIfMissing = true
13+
)
1014
public class SchedulerConfiguration {
1115

1216
}

processor/src/main/java/ca/bc/gov/app/entity/SubmissionDetailEntity.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,9 @@ public String getIdentificationCode() {
113113

114114
if (
115115
(
116-
IdentificationTypeEnum.CDDL.equals(IdentificationTypeEnum.valueOf(identificationTypeCode))
116+
IdentificationTypeEnum.CDDL.equals(
117+
IdentificationTypeEnum.valueOf(identificationTypeCode)
118+
)
117119
||
118120
IdentificationTypeEnum.USDL.equals(
119121
IdentificationTypeEnum.valueOf(identificationTypeCode))

processor/src/main/java/ca/bc/gov/app/entity/SubmissionLocationContactEntity.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@
1010
import org.springframework.data.relational.core.mapping.Column;
1111
import org.springframework.data.relational.core.mapping.Table;
1212

13-
@Table(name = "submission_location_contact_xref", schema = ApplicationConstant.POSTGRES_ATTRIBUTE_SCHEMA)
13+
@Table(
14+
name = "submission_location_contact_xref",
15+
schema = ApplicationConstant.POSTGRES_ATTRIBUTE_SCHEMA
16+
)
1417
@Data
1518
@Builder
1619
@NoArgsConstructor

processor/src/main/java/ca/bc/gov/app/entity/SubmissionMatchDetailEntity.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ public class SubmissionMatchDetailEntity {
6060
private Map<String, Object> matchers;
6161

6262
public boolean isBeingProcessed() {
63-
return this.processingTime != null && this.processingTime.isAfter(LocalDateTime.now().minusMinutes(2));
63+
return this.processingTime != null
64+
&& this.processingTime.isAfter(LocalDateTime.now().minusMinutes(2));
6465
}
6566

6667
}

processor/src/main/java/ca/bc/gov/app/matchers/ContactMatcher.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
import reactor.core.publisher.Mono;
1212

1313
/**
14-
* This class is a component that matches contacts. It implements the ProcessorMatcher interface. It
14+
* This class is a component that matches contacts. It implements the
15+
* ProcessorMatcher interface. It
1516
* uses a WebClient to interact with the legacy client API and a SubmissionContactRepository to
1617
* retrieve submission contacts.
1718
*/

processor/src/main/java/ca/bc/gov/app/matchers/DoingBusinessAsProcessorMatcher.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,9 @@ public String fieldName() {
5757

5858
/**
5959
* This method performs the matching operation for a given submission.
60-
* It retrieves the "Doing Business As" name for the submission and sends a request to the legacy service to find matches.
61-
* It then collects the client numbers of the matches into a MatcherResult.
60+
* It retrieves the "Doing Business As" name for the submission and sends a request
61+
* to the legacy service to find matches. It then collects the client numbers of the
62+
* matches into a MatcherResult.
6263
*
6364
* @param submission A SubmissionInformationDto object.
6465
* @return A Mono of MatcherResult containing the client numbers of the matches.

processor/src/main/java/ca/bc/gov/app/matchers/IndividualProcessorMatcher.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ public class IndividualProcessorMatcher implements ProcessorMatcher {
2424
private final WebClient legacyClientApi;
2525

2626
/**
27-
* This constructor initializes the IndividualProcessorMatcher with a WebClient for the legacy client API.
27+
* This constructor initializes the IndividualProcessorMatcher with a
28+
* WebClient for the legacy client API.
2829
*
2930
* @param legacyClientApi A WebClient for the legacy client API.
3031
*/
@@ -68,8 +69,9 @@ public String fieldName() {
6869

6970
/**
7071
* This method performs the matching operation for a given submission.
71-
* It sends a request to the legacy client API to find matches based on the first name, last name, and date of birth.
72-
* It then collects the client numbers of the matches into a MatcherResult.
72+
* It sends a request to the legacy client API to find matches based on the
73+
* first name, last name, and date of birth. It then collects the client
74+
* numbers of the matches into a MatcherResult.
7375
*
7476
* @param submission A SubmissionInformationDto object.
7577
* @return A Mono of MatcherResult containing the client numbers of the matches.

processor/src/main/java/ca/bc/gov/app/matchers/LegalNameProcessorMatcher.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ public class LegalNameProcessorMatcher implements ProcessorMatcher {
2323
private final WebClient legacyClientApi;
2424

2525
/**
26-
* This constructor initializes the LegalNameProcessorMatcher with a WebClient for the legacy client API.
26+
* This constructor initializes the LegalNameProcessorMatcher with a WebClient
27+
* for the legacy client API.
2728
*
2829
* @param legacyClientApi A WebClient for the legacy client API.
2930
*/

processor/src/main/java/ca/bc/gov/app/matchers/LocationMatcher.java

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
/**
1414
* This class is a component that matches submissions based on location.
1515
* It implements the ProcessorMatcher interface.
16-
* It uses a WebClient to interact with the legacy client API and a SubmissionLocationRepository to interact with the submission location data.
16+
* It uses a WebClient to interact with the legacy client API and a
17+
* SubmissionLocationRepository to interact with the submission location data.
1718
*/
1819
@Component
1920
@Slf4j
@@ -23,7 +24,8 @@ public class LocationMatcher implements ProcessorMatcher {
2324
private final SubmissionLocationRepository locationRepository;
2425

2526
/**
26-
* This constructor initializes the LocationMatcher with a WebClient for the legacy client API and a SubmissionLocationRepository.
27+
* This constructor initializes the LocationMatcher with a WebClient for the
28+
* legacy client API and a SubmissionLocationRepository.
2729
*
2830
* @param legacyClientApi A WebClient for the legacy client API.
2931
* @param locationRepository A SubmissionLocationRepository for the submission location data.
@@ -70,8 +72,10 @@ public String fieldName() {
7072

7173
/**
7274
* This method performs the matching operation for a given submission.
73-
* It retrieves the location for the submission from the SubmissionLocationRepository and sends a request to the legacy client API to find matches based on the address and postal code.
74-
* It then collects the client numbers of the matches into a MatcherResult.
75+
* It retrieves the location for the submission from the
76+
* SubmissionLocationRepository and sends a request to the legacy client API
77+
* to find matches based on the address and postal code. It then collects the
78+
* client numbers of the matches into a MatcherResult.
7579
*
7680
* @param submission A SubmissionInformationDto object.
7781
* @return A Mono of MatcherResult containing the client numbers of the matches.

0 commit comments

Comments
 (0)