diff --git a/src/main/java/org/ntlab/nemophila/models/accounts/AccountManager.java b/src/main/java/org/ntlab/nemophila/models/accounts/AccountManager.java index 1e3221f..6abf378 100644 --- a/src/main/java/org/ntlab/nemophila/models/accounts/AccountManager.java +++ b/src/main/java/org/ntlab/nemophila/models/accounts/AccountManager.java @@ -18,6 +18,12 @@ } return theInstance; } + + // //全てのアカウントの取得 + public HashMap getAccountsMap() { + return accountsMap; + } + //アカウントの取得 public Account getAccount(String id){ @@ -27,7 +33,7 @@ public Account createAccount(String name, String pw){ //ランダムにトークンを作成 UUID uuid = UUID.randomUUID(); - String token = (String) uuid.toString(); + String token = uuid.toString(); Account ac = new Account(name, pw); ac.setToken(token); //IDの作成 @@ -41,7 +47,7 @@ public Account updateAccount(String id) { Account ac = accountsMap.get(id); UUID uuid = UUID.randomUUID(); - String token = (String) uuid.toString(); + String token = uuid.toString(); ac.setToken(token); return ac; }