|
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||
public interface UserDao
ユーザ管理を行うDAO。
| メソッドの概要 | |
|---|---|
void |
addUser(User user,
String... userRoles)
ユーザを追加する。 |
void |
clear()
ユーザ情報を消去する。 |
void |
clearExceptAdmins()
ロールが管理者の者を除いてユーザ情報を消去する。 |
void |
deleteUser(String userGridId,
String userId)
ユーザを削除する。 |
void |
deleteUsersOfGrid(String gridId)
指定されたグリッドのユーザを削除する。 |
List<User> |
dumpAllUsers(String userGridId)
全ユーザを列挙する。 |
User |
getUser(String userGridId,
String userId)
ユーザを取得する。 |
boolean |
hasUserRole(String userGridId,
String userId,
String role)
ユーザがロールを持っているかどうかを返す。 |
boolean |
isUserExist(String userGridId,
String userId)
ユーザが存在するかどうかを返す。 |
List<User> |
listAllUsers(String userGridId)
全ユーザを列挙する。 |
UserSearchResult |
searchUsers(int startIndex,
int maxCount,
String userGridId,
MatchingCondition[] conditions,
Order[] orders)
ユーザを検索する。 |
UserSearchResult |
searchUsersShouldChangePassword(int startIndex,
int maxCount,
String userGridId,
Calendar dateTime,
Order[] orders)
パスワード変更が必要なユーザを検索する。 |
| メソッドの詳細 |
|---|
void clear()
throws DaoException
DaoException - 処理に失敗した
void clearExceptAdmins()
throws DaoException
DaoException - 処理に失敗した
List<User> dumpAllUsers(String userGridId)
throws DaoException
userGridId - ユーザのグリッドID
DaoException - 処理に失敗した
List<User> listAllUsers(String userGridId)
throws DaoException
userGridId - ユーザのグリッドID
DaoException - 処理に失敗した
UserSearchResult searchUsers(int startIndex,
int maxCount,
String userGridId,
MatchingCondition[] conditions,
Order[] orders)
throws DaoException
startIndex - 開始インデックスmaxCount - 最大件数userGridId - ユーザのグリッドIDconditions - 検索条件orders - ソート順
DaoException - 処理に失敗した
boolean isUserExist(String userGridId,
String userId)
throws DaoException
userGridId - ユーザのグリッドIDuserId - ユーザ名
DaoException - 処理に失敗した
void addUser(User user,
String... userRoles)
throws DaoException,
UserAlreadyExistsException
user - 追加するユーザuserRoles - ユーザのロール(TomcatでのBASIC認証に使用される)
DaoException - 処理に失敗した
UserAlreadyExistsException - 指定されたユーザは既に存在する
void deleteUser(String userGridId,
String userId)
throws DaoException,
UserNotFoundException
userGridId - ユーザのグリッドIDuserId - ユーザ名
DaoException - 処理に失敗した
UserNotFoundException - 指定されたユーザは存在しない
void deleteUsersOfGrid(String gridId)
throws DaoException
gridId - グリッドID
DaoException - 処理に失敗した
UserNotFoundException - 指定されたユーザは存在しない
User getUser(String userGridId,
String userId)
throws DaoException,
UserNotFoundException
userGridId - ユーザのグリッドIDuserId - ユーザ名
DaoException - 処理に失敗した
UserNotFoundException - 指定されたユーザは存在しない
boolean hasUserRole(String userGridId,
String userId,
String role)
throws DaoException
userGridId - ユーザのグリッドIDuserId - ユーザIDrole - ロール
DaoException - 処理に失敗した
UserNotFoundException - 指定されたユーザは存在しない
UserSearchResult searchUsersShouldChangePassword(int startIndex,
int maxCount,
String userGridId,
Calendar dateTime,
Order[] orders)
throws DaoException
startIndex - 開始インデックスmaxCount - 最大件数userGridId - ユーザのグリッドIDdateTime - この日時以降パスワードを更新していないユーザが対象orders - ソート順
DaoException - 処理に失敗した
|
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||