public class CardOrchestratorContext extends Object implements CreditScoreContext, CreditCardContext, DebitCardContext, CardSelectorContext, ValidationContext<CardApplication>
| Constructor and Description |
|---|
CardOrchestratorContext() |
| Modifier and Type | Method and Description |
|---|---|
CardApplication |
getApplication() |
int |
getCreditScore() |
List<String> |
getHistory() |
int |
getRiskScore() |
String |
getSsn() |
void |
init(CardApplication cardApplication) |
boolean |
isApproved() |
void |
logHistory(String history) |
void |
setCardApproveStatus(boolean isApproved) |
void |
setCreditScore(int score) |
void |
setRiskScore(Future<Integer> score) |
public void init(CardApplication cardApplication)
public String getSsn()
getSsn in interface AsyncCheckRiskContextgetSsn in interface CreditScoreContextpublic void setRiskScore(Future<Integer> score)
setRiskScore in interface AsyncCheckRiskContextpublic void setCreditScore(int score)
setCreditScore in interface CreditScoreContextpublic CardApplication getApplication()
getApplication in interface CreditCardContextgetApplication in interface DebitCardContextgetApplication in interface ValidationContext<CardApplication>public int getCreditScore()
getCreditScore in interface CreditCardContextpublic int getRiskScore()
getRiskScore in interface CreditCardContextpublic void setCardApproveStatus(boolean isApproved)
setCardApproveStatus in interface CreditCardContextsetCardApproveStatus in interface DebitCardContextpublic boolean isApproved()
public void logHistory(String history)
logHistory in interface HistoryContext<String>Copyright © 2017 Pivotal Software, Inc.. All rights reserved.