return SolidFireUtil.getSolidFireAccountById(mVip, mPort, clusterAdminUsername, clusterAdminPassword, accountNumber);
}
private void updateCsDbWithAccountInfo(long csAccountId, SolidFireUtil.SolidFireAccount sfAccount) {
AccountDetailVO accountDetail = new AccountDetailVO(csAccountId,
SolidFireUtil.ACCOUNT_ID,
String.valueOf(sfAccount.getId()));
_accountDetailsDao.persist(accountDetail);
accountDetail = new AccountDetailVO(csAccountId,
SolidFireUtil.CHAP_INITIATOR_USERNAME,
String.valueOf(sfAccount.getName()));
_accountDetailsDao.persist(accountDetail);
accountDetail = new AccountDetailVO(csAccountId,
SolidFireUtil.CHAP_INITIATOR_SECRET,
String.valueOf(sfAccount.getInitiatorSecret()));
_accountDetailsDao.persist(accountDetail);
accountDetail = new AccountDetailVO(csAccountId,
SolidFireUtil.CHAP_TARGET_USERNAME,
sfAccount.getName());
_accountDetailsDao.persist(accountDetail);
accountDetail = new AccountDetailVO(csAccountId,
SolidFireUtil.CHAP_TARGET_SECRET,
sfAccount.getTargetSecret());
_accountDetailsDao.persist(accountDetail);
}