????????????????????????
???????????? ???????[ 2013/6/5 10:27:20 ] ????????
public interface ICustomerTransactions {
//State-changing methods
public void createPurchaseRecordForProduct(Long productId)
throws CustomerTransactionsSystemException;
public void loadAllPurchaseRecords()
throws CustomerTransactionsSystemException;
//Behavior method
public void isCustomerEligibleForDiscount();
}
????????μ????????洢??????????????????????????????????????仯????????????????????????????????????????????????????????е??????????Ч????μ?????????Щ?·???????????????ICustomerAccount????CustomerAccount?????????????
public interface ICustomerAccount {
//State-changing methods
public void createNewActiveAccount()
throws CustomerAccountsSystemOutageException;
public void loadAccountStatus()
throws CustomerAccountsSystemOutageException;
public void createPurchaseRecordForProduct(Long productId)
throws CustomerAccountsSystemOutageException;
public void loadAllPurchaseRecords()
throws CustomerAccountsSystemOutageException;
//Behavior methods
public boolean isRequestedUsernameValid();
public boolean isRequestedPasswordValid();
public boolean isActiveForPurchasing();
public String getPostLogonMessage();
public void isCustomerEligibleForDiscount();
}
?????????濴????????????????????????κ????????????????????????????????????????????Ч???????????????????????????????????????????????????е????С?????????????Щ??
???????4?????????????С??????????
????????????????????????????С???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????洢?豸????????????????г????????????????????????????????????????????????????Щ??????????????????????????????????????????????????????磬getPostLogonMessage()?????????accountStatus??????????????
public String getPostLogonMessage() {
if("A".equals(this.accountStatus)){
return "Your purchasing account is active.";
} else if("E".equals(this.accountStatus)) {
return "Your purchasing account has " +
"expired due to a lack of activity.";
} else {
return "Your purchasing account cannot be " +
"found?? please call customer service "+
"for assistance.";
}
}
??????
???·???
??????????????????
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