return;
}
// TODO:他の条件が入った場合修正
- final Account account = this.accountService.fetchAccountByNickName(form
+ final Account account = this.accountService.getAccountByNickName(form
.getNickName());
final List<Account> accList = new ArrayList<Account>(1);
map.addAttribute("accounts", accList);
// TODO: 管理者チェック
Account account = null;
if (accountId != null) {
- account = this.accountService.fetchAccountById(accountId);
+ account = this.accountService.getAccountById(accountId);
}
if (account == null) {
// TODO: 管理者チェック
if (accountId != null) {
final Account accForDel = this.accountService
- .fetchAccountById(accountId);
+ .getAccountById(accountId);
// TODO: 取得できたかチェック
this.accountService.deleteAccount(accForDel);
// TODO: ランタイム例外の処理
try {
// nickName重複チェック
- if (this.accountService.fetchAccountByNickName(account
+ if (this.accountService.getAccountByNickName(account
.getNickName()) != null) {
result.rejectValue("nickName", "Account.nickName[duplicate]");
Sht.log(this).finer("nickName重複チェックエラー");
* 検索するアカウントのニックネーム
* @return 見つかったアカウント。無い場合null。
*/
- public Account fetchAccountByNickName(String nickName) {
+ public Account getAccountByNickName(String nickName) {
final Account account = this.accountDao.findAccountByNickName(nickName);
return account;
}
* 検索対象のID
* @return 見つかったアカウント。見つからない場合null。
*/
- public Account fetchAccountById(Long id) {
+ public Account getAccountById(Long id) {
try {
return this.accountDao.get(id);
} catch (final DataRetrievalFailureException e) {
}
/**
- * @return the firstSuperUser
- */
- public String getFirstSuperUser() {
- return this.firstSuperUser;
- }
-
- /**
* @param firstSuperUser
* the firstSuperUser to set
*/