????????????????????????
???????????? ???????[ 2013/6/5 10:27:20 ] ????????
?????????????????????getPostLogonMessage()??а????κε??????????????????????????this.postLogonMessage?????????????????????????????????????????????“post logon message”???????????????????????????????????????????????????????getPostLogonMessage()??????????????????????????loadAccountStatus()?????????????????????????£?CustomerAccountsSystemOutageException???????????÷?????????this.postLogonMessage?????????????????????????????????????????????getPostLogonMessage()????????????????CustomerAccount????????????????????????????????????????????????????????accountStatus???????“E”???????????????????????????????????????????????á??????????????????????????????????????????????佫???2???????????????????????????????????????????????loadAccountStatus()????????????????????????????????£????????????????????????????????????????????
???????5???????????????κ??????±?????
???????????????????????????????????????????????????????????????????仰???????????????????????????????κ???????á???????????????????????????磬CustomerAccount?????isActiveForPurchasing()??getPostLogonMessage()??????????????????????accountStatus???????????????????????????????????????????磬??????????isActiveForPurchasing()??????????????getPostLogonMessage()??
ICustomerAccount ca = new CustomerAccount(username?? password);
ca.loadAccountStatus();
if(ca.isActiveForPurchasing()){
//go to "begin purchasing" display
...
//show post logon message.
ca.getPostLogonMessage();
} else {
//go to "activate account" display
...
//show post logon message.
ca.getPostLogonMessage();
}
???????????????????getPostLogonMessage()????????????isActiveForPurchasing()??
ICustomerAccount ca = new CustomerAccount(username?? password);
ca.loadAccountStatus();
//go to "welcome back" display
...
//show post logon message.
ca.getPostLogonMessage();
???????getPostLogonMessage()???isActiveForPurchasing()?????????????CustomerAccount??????????????????????磬????????????????????postLogonMessage??????????????????????????????????????м???????????????????????????????????
public boolean isActiveForPurchasing() {
boolean returnValue = false;
if("A".equals(this.accountStatus)){
this.postLogonMessage = "Your purchasing account is active.";
returnValue = true;
} else if("E".equals(this.accountStatus)) {
this.postLogonMessage = "Your purchasing account has " +
"expired due to a lack of activity.";
returnValue = false;
} else {
this.postLogonMessage = "Your purchasing account cannot be " +
"found?? please call customer service "+
"for assistance.";
returnValue = false;
}
return returnValue;
}
public String getPostLogonMessage() {
return this.postLogonMessage;
}
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11