Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CIN-685] update copyright header for 2025 #790

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* #%L
* Alfresco HX Insight Connector
* %%
* Copyright (C) 2023 - 2024 Alfresco Software Limited
* Copyright (C) 2023 - 2025 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
* If the software was purchased under a paid Alfresco license, the terms of
Expand Down Expand Up @@ -169,8 +169,7 @@ private Optional<Serializable> getPersistedValue(PropertyValue propertyValue)
case DOUBLE -> of(propertyValue.getDoubleValue());
case STRING -> of(propertyValue.getStringValue());
case SERIALIZABLE -> deserializeObject(propertyValue);
default ->
{
default -> {
log.error("Property {} type not recognized. Cannot extract value {}. Node: {}", propertyName, propertyValue, alfrescoNode.getId());

yield empty();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* #%L
* Alfresco HX Insight Connector
* %%
* Copyright (C) 2023 - 2024 Alfresco Software Limited
* Copyright (C) 2023 - 2025 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
* If the software was purchased under a paid Alfresco license, the terms of
Expand Down Expand Up @@ -47,16 +47,13 @@
@AllArgsConstructor
public class AuthenticationResult
{
@NotBlank
@JsonProperty("access_token")
@NotBlank @JsonProperty("access_token")
String accessToken;
@Positive @JsonProperty("expires_in")
int expiresIn;
TemporalUnit temporalUnit = ChronoUnit.SECONDS;
@NotBlank
@JsonProperty("token_type")
@NotBlank @JsonProperty("token_type")
String tokenType;
@NotBlank
String scope;
@NotBlank String scope;
Integer statusCode = EXPECTED_STATUS_CODE;
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* #%L
* Alfresco HX Insight Connector
* %%
* Copyright (C) 2023 - 2024 Alfresco Software Limited
* Copyright (C) 2023 - 2025 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
* If the software was purchased under a paid Alfresco license, the terms of
Expand Down Expand Up @@ -37,8 +37,7 @@
@NoArgsConstructor
public class DiscoveryApiResponse
{
@NotBlank
private RepositoryInfoEntry entry;
@NotBlank private RepositoryInfoEntry entry;

public String getFullVersion()
{
Expand All @@ -51,8 +50,7 @@ public String getFullVersion()
@NoArgsConstructor
public static class RepositoryInfoEntry
{
@NotBlank
private RepositoryInfo repository;
@NotBlank private RepositoryInfo repository;

}

Expand All @@ -62,10 +60,8 @@ public static class RepositoryInfoEntry
@JsonIgnoreProperties(ignoreUnknown = true)
public static class RepositoryInfo
{
@NotBlank
private String id;
@NotBlank
private RepositoryVersion version;
@NotBlank private String id;
@NotBlank private RepositoryVersion version;

}

Expand All @@ -75,12 +71,9 @@ public static class RepositoryInfo
@JsonIgnoreProperties(ignoreUnknown = true)
public static class RepositoryVersion
{
@NotBlank
private String major;
@NotBlank
private String minor;
@NotBlank
private String patch;
@NotBlank private String major;
@NotBlank private String minor;
@NotBlank private String patch;

}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* #%L
* Alfresco HX Insight Connector
* %%
* Copyright (C) 2023 - 2024 Alfresco Software Limited
* Copyright (C) 2023 - 2025 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
* If the software was purchased under a paid Alfresco license, the terms of
Expand Down Expand Up @@ -60,10 +60,8 @@ public class Retry
JsonEOFException.class,
MismatchedInputException.class);

@Min(-1)
private int attempts;
@PositiveOrZero
private int initialDelay;
@Min(-1) private int attempts;
@PositiveOrZero private int initialDelay;
@Positive private double delayMultiplier;
@NotNull private Set<Class<? extends Throwable>> reasons;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* #%L
* Alfresco HX Insight Connector
* %%
* Copyright (C) 2023 - 2024 Alfresco Software Limited
* Copyright (C) 2023 - 2025 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
* If the software was purchased under a paid Alfresco license, the terms of
Expand Down Expand Up @@ -45,8 +45,7 @@
@Builder
public class IngestEvent
{
@NotBlank
private String nodeId;
@NotBlank private String nodeId;
private ContentInfo contentInfo;
@NotNull private Map<String, Serializable> properties;
private long timestamp;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* #%L
* Alfresco HX Insight Connector
* %%
* Copyright (C) 2023 - 2024 Alfresco Software Limited
* Copyright (C) 2023 - 2025 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
* If the software was purchased under a paid Alfresco license, the terms of
Expand Down Expand Up @@ -103,12 +103,11 @@ void givenAuthException_whenAuthenticate_thenFailAfterRetry()
// then
assertThat(actualException).isInstanceOf(EndpointServerErrorException.class);
assertThat(testAppender.getEvents())
.hasSize(3)
.extracting(events -> events.getMessage().getFormattedMessage())
.containsExactlyInAnyOrder(
"Attempt 1 of 3 failed, retrying after 500ms",
"Attempt 2 of 3 failed, retrying after 1000ms",
"Attempt 3 of 3 failed"
);
.hasSize(3)
.extracting(events -> events.getMessage().getFormattedMessage())
.containsExactlyInAnyOrder(
"Attempt 1 of 3 failed, retrying after 500ms",
"Attempt 2 of 3 failed, retrying after 1000ms",
"Attempt 3 of 3 failed");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* #%L
* Alfresco HX Insight Connector
* %%
* Copyright (C) 2023 - 2024 Alfresco Software Limited
* Copyright (C) 2023 - 2025 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
* If the software was purchased under a paid Alfresco license, the terms of
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* #%L
* Alfresco HX Insight Connector
* %%
* Copyright (C) 2023 - 2024 Alfresco Software Limited
* Copyright (C) 2023 - 2025 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
* If the software was purchased under a paid Alfresco license, the terms of
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* #%L
* Alfresco HX Insight Connector
* %%
* Copyright (C) 2023 - 2024 Alfresco Software Limited
* Copyright (C) 2023 - 2025 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
* If the software was purchased under a paid Alfresco license, the terms of
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* #%L
* Alfresco HX Insight Connector
* %%
* Copyright (C) 2023 - 2024 Alfresco Software Limited
* Copyright (C) 2023 - 2025 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
* If the software was purchased under a paid Alfresco license, the terms of
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* #%L
* Alfresco HX Insight Connector
* %%
* Copyright (C) 2023 - 2024 Alfresco Software Limited
* Copyright (C) 2023 - 2025 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
* If the software was purchased under a paid Alfresco license, the terms of
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* #%L
* Alfresco HX Insight Connector
* %%
* Copyright (C) 2023 - 2024 Alfresco Software Limited
* Copyright (C) 2023 - 2025 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
* If the software was purchased under a paid Alfresco license, the terms of
Expand Down
Loading