-
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.
Merge pull request #590 from bcgov/feature/GRAD2-2389
GRAD2-2389, 2390, 2412: task is complete.
- Loading branch information
Showing
10 changed files
with
450 additions
and
90 deletions.
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
api/src/main/java/ca/bc/gov/educ/api/gradstudent/constant/FieldName.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 ca.bc.gov.educ.api.gradstudent.constant; | ||
|
||
public enum FieldName { | ||
SCHOOL_OF_RECORD, | ||
GRAD_PROGRAM, | ||
ADULT_START_DATE, | ||
SLP_DATE, | ||
STUDENT_GRADE, | ||
CITIZENSHIP, | ||
STUDENT_STATUS, | ||
|
||
RECALC_GRAD_ALG, | ||
RECALC_TVR | ||
|
||
} |
6 changes: 6 additions & 0 deletions
6
api/src/main/java/ca/bc/gov/educ/api/gradstudent/constant/FieldType.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,6 @@ | ||
package ca.bc.gov.educ.api.gradstudent.constant; | ||
|
||
public enum FieldType { | ||
STRING, | ||
DATE | ||
} |
18 changes: 18 additions & 0 deletions
18
api/src/main/java/ca/bc/gov/educ/api/gradstudent/constant/TraxEventType.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,18 @@ | ||
package ca.bc.gov.educ.api.gradstudent.constant; | ||
|
||
public enum TraxEventType { | ||
/* =========================================================== | ||
Incremental updates from Trax to Grad | ||
=============================================================*/ | ||
/** | ||
* Trax update type | ||
*/ | ||
NEWSTUDENT, | ||
UPD_DEMOG, | ||
UPD_GRAD, | ||
UPD_STD_STATUS, | ||
XPROGRAM, | ||
ASSESSMENT, | ||
COURSE, | ||
FI10ADD | ||
} |
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
38 changes: 38 additions & 0 deletions
38
api/src/main/java/ca/bc/gov/educ/api/gradstudent/model/dto/OngoingUpdateFieldDTO.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,38 @@ | ||
package ca.bc.gov.educ.api.gradstudent.model.dto; | ||
|
||
import ca.bc.gov.educ.api.gradstudent.constant.FieldName; | ||
import ca.bc.gov.educ.api.gradstudent.constant.FieldType; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
|
||
import java.util.Objects; | ||
|
||
@Builder | ||
@Data | ||
public class OngoingUpdateFieldDTO { | ||
private FieldType type; | ||
private FieldName name; | ||
private Object value; | ||
|
||
@Override | ||
public boolean equals(Object o) { | ||
if (this == o) return true; | ||
if (o == null || getClass() != o.getClass()) return false; | ||
OngoingUpdateFieldDTO that = (OngoingUpdateFieldDTO) o; | ||
return getName() == that.getName(); | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
return Objects.hash(getName()); | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "OngoingUpdateFieldDTO{" + | ||
"type=" + type + | ||
", name=" + name + | ||
", value=" + value + | ||
'}'; | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
api/src/main/java/ca/bc/gov/educ/api/gradstudent/model/dto/OngoingUpdateRequestDTO.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,17 @@ | ||
package ca.bc.gov.educ.api.gradstudent.model.dto; | ||
|
||
import ca.bc.gov.educ.api.gradstudent.constant.TraxEventType; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
|
||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
@NoArgsConstructor | ||
@Data | ||
public class OngoingUpdateRequestDTO { | ||
private String studentID; | ||
private String pen; | ||
private TraxEventType eventType; | ||
private List<OngoingUpdateFieldDTO> updateFields = new ArrayList<>(); | ||
} |
Oops, something went wrong.