Skip to content

Commit

Permalink
chore: updating classes to add channels
Browse files Browse the repository at this point in the history
  • Loading branch information
paulushcgcj committed Nov 22, 2023
1 parent f543904 commit bfbec83
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@ boolean filterByType(String clientTypeCode) {
return !List.of("RSP", "USP", "I").contains(clientTypeCode);
}

@Override
String getNextChannel() {
return ApplicationConstant.SUBMISSION_LEGACY_OTHER_CHANNEL;
}

@ServiceActivator(
inputChannel = ApplicationConstant.SUBMISSION_LEGACY_OTHER_CHANNEL,
outputChannel = ApplicationConstant.SUBMISSION_LEGACY_CLIENT_PERSIST_CHANNEL,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ boolean filterByType(String clientTypeCode) {
return StringUtils.equalsIgnoreCase(clientTypeCode,"I");
}

@Override
String getNextChannel() {
return ApplicationConstant.SUBMISSION_LEGACY_INDIVIDUAL_CHANNEL;
}

/**
* Generate the individual to be persisted into forest client database.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,11 @@ boolean filterByType(String clientTypeCode) {
return StringUtils.equalsIgnoreCase(clientTypeCode, "RSP");
}

@Override
String getNextChannel() {
return ApplicationConstant.SUBMISSION_LEGACY_RSP_CHANNEL;
}

@ServiceActivator(
inputChannel = ApplicationConstant.SUBMISSION_LEGACY_RSP_CHANNEL,
outputChannel = ApplicationConstant.SUBMISSION_LEGACY_CLIENT_PERSIST_CHANNEL,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@ boolean filterByType(String clientTypeCode) {
return StringUtils.equalsIgnoreCase(clientTypeCode,"USP");
}

@Override
String getNextChannel() {
return ApplicationConstant.SUBMISSION_LEGACY_USP_CHANNEL;
}

/**
* This method is responsible for generating the forest client for unregistered sole proprietorship.
* @param message - the message containing the submission id.
Expand Down

0 comments on commit bfbec83

Please sign in to comment.