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

EVA-2889 - SS_SPLIT event #75

Merged
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 @@ -42,5 +42,11 @@ public enum EventType {
DEPRECATED,

// RS ID was back-propagated from a remapped assembly
RS_BACK_PROPAGATED
RS_BACK_PROPAGATED,

// Candidates for SS ID split
SS_SPLIT_CANDIDATES,

// new SS ID created because of SS split - as a result of processing SS_SPLIT_CANDIDATES
SS_SPLIT
}
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public void fill(EventType eventType, ACCESSION accessionIdOrigin, ACCESSION acc
String reason, List<INACTIVE_DOCUMENT> inactiveObjects) {
this.eventType = eventType;
this.accession = accessionIdOrigin;
if(eventType==EventType.RS_SPLIT){
if(eventType==EventType.RS_SPLIT || eventType == EventType.SS_SPLIT) {
this.splitInto = accessionIdDestiny;
}else if(eventType==EventType.MERGED){
this.mergeInto = accessionIdDestiny;
Expand Down Expand Up @@ -133,6 +133,10 @@ public String getId() {
return id;
}

public void setId(String id) {
this.id = id;
}

@Override
public boolean isNew() {
return true;
Expand Down