generated from CDCgov/template
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CNDE-2064: Pre-processing service integration for User Profile update (…
- Loading branch information
Showing
16 changed files
with
282 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
54 changes: 54 additions & 0 deletions
54
person-service/src/main/java/gov/cdc/etldatapipeline/person/model/dto/user/AuthUser.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
package gov.cdc.etldatapipeline.person.model.dto.user; | ||
|
||
import com.fasterxml.jackson.databind.PropertyNamingStrategies; | ||
import com.fasterxml.jackson.databind.annotation.JsonNaming; | ||
import jakarta.persistence.Column; | ||
import jakarta.persistence.Entity; | ||
import jakarta.persistence.Id; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
|
||
@Data | ||
@Entity | ||
@Builder @NoArgsConstructor @AllArgsConstructor | ||
@JsonNaming(PropertyNamingStrategies.SnakeCaseStrategy.class) | ||
public class AuthUser { | ||
@Id | ||
@Column(name = "auth_user_uid") | ||
private Long authUserUid; | ||
|
||
@Column(name = "user_id") | ||
private String userId; | ||
|
||
@Column(name = "firstNm") | ||
private String firstNm; | ||
|
||
@Column(name = "lastNm") | ||
private String lastNm; | ||
|
||
@Column(name = "nedss_entry_id") | ||
private Long nedssEntryId; | ||
|
||
@Column(name = "provider_uid") | ||
private Long providerUid; | ||
|
||
@Column(name = "add_user_id") | ||
private Long addUserId; | ||
|
||
@Column(name = "last_chg_user_id") | ||
private Long lastChgUserId; | ||
|
||
@Column(name = "add_time") | ||
private String addTime; | ||
|
||
@Column(name = "last_chg_time") | ||
private String lastChgTime; | ||
|
||
@Column(name = "record_status_cd") | ||
private String recordStatusCd; | ||
|
||
@Column(name = "record_status_time") | ||
private String recordStatusTime; | ||
} |
15 changes: 15 additions & 0 deletions
15
person-service/src/main/java/gov/cdc/etldatapipeline/person/model/dto/user/AuthUserKey.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package gov.cdc.etldatapipeline.person.model.dto.user; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import com.fasterxml.jackson.databind.PropertyNamingStrategies; | ||
import com.fasterxml.jackson.databind.annotation.JsonNaming; | ||
import lombok.*; | ||
|
||
@Data | ||
@Builder @NoArgsConstructor @AllArgsConstructor | ||
@JsonNaming(PropertyNamingStrategies.SnakeCaseStrategy.class) | ||
public class AuthUserKey { | ||
@NonNull | ||
@JsonProperty("auth_user_uid") | ||
private Long authUserUid; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
person-service/src/main/java/gov/cdc/etldatapipeline/person/repository/UserRepository.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package gov.cdc.etldatapipeline.person.repository; | ||
|
||
import gov.cdc.etldatapipeline.person.model.dto.user.AuthUser; | ||
import org.springframework.data.jpa.repository.JpaRepository; | ||
import org.springframework.data.jpa.repository.Query; | ||
import org.springframework.data.repository.query.Param; | ||
|
||
import java.util.List; | ||
import java.util.Optional; | ||
|
||
public interface UserRepository extends JpaRepository<AuthUser, String> { | ||
@Query(nativeQuery = true, value = "execute sp_auth_user_event :user_uids") | ||
Optional<List<AuthUser>> computeAuthUsers(@Param("user_uids") String userUids); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.