|
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||
public interface TemporaryUserDao
一時ユーザの管理を行うDAO。
| メソッドの概要 | |
|---|---|
void |
addUser(TemporaryUser user)
一時ユーザを追加する。 |
void |
clear()
一時ユーザ情報を消去する。 |
void |
clearExpiredUsers()
有効期間を過ぎた一時ユーザ情報を消去する。 |
void |
deleteUser(String userGridId,
String userId)
一時ユーザを削除する。 |
void |
deleteUsersOfGrid(String userGridId)
指定されたグリッドの一時ユーザを削除する。 |
String |
getParentUserIdIfUserAvailable(String userGridId,
String userId,
String password)
一時ユーザが存在し、有効期間内の場合、親ユーザのIDを返す。 |
TemporaryUser |
getUser(String userGridId,
String userId)
一時ユーザを取得する。 |
boolean |
isParent(String userGridId,
String ownerUserId,
String userId)
あるユーザが一時ユーザのオーナーであるかどうかを返す。 |
boolean |
isUserExists(String userGridId,
String userId)
一時ユーザが存在する場合trueを返す。 |
List<TemporaryUser> |
listAllUsers(String userGridId)
全一時ユーザを列挙する。 |
TemporaryUserSearchResult |
searchUsers(int startIndex,
int maxCount,
String userGridId,
MatchingCondition[] conditions,
Order[] orders)
一時ユーザを検索する。 |
TemporaryUserSearchResult |
searchUsers(int startIndex,
int maxCount,
String userGridId,
String parentUserId,
MatchingCondition[] conditions,
Order[] orders)
指定されたユーザが作成した一時ユーザを検索する。 |
void |
setAvailableDateTime(TemporaryUser user,
Calendar beginAvailableDateTime,
Calendar endAvailableDateTime)
一時ユーザの有効期間を設定する。 |
| メソッドの詳細 |
|---|
void clear()
throws DaoException
DaoException - 処理に失敗した
void clearExpiredUsers()
throws DaoException
DaoException - 処理に失敗した
List<TemporaryUser> listAllUsers(String userGridId)
throws DaoException
userGridId - ユーザのグリッドID
DaoException - 処理に失敗した
TemporaryUserSearchResult searchUsers(int startIndex,
int maxCount,
String userGridId,
String parentUserId,
MatchingCondition[] conditions,
Order[] orders)
throws DaoException
startIndex - 開始インデックスmaxCount - 最大件数userGridId - ユーザのグリッドIDparentUserId - 一時ユーザを作成したユーザconditions - 検索条件orders - ソート順
DaoException - 処理に失敗した
TemporaryUserSearchResult searchUsers(int startIndex,
int maxCount,
String userGridId,
MatchingCondition[] conditions,
Order[] orders)
throws DaoException
startIndex - 開始インデックスmaxCount - 最大件数userGridId - ユーザのグリッドIDconditions - 検索条件orders - ソート順
DaoException - 処理に失敗した
boolean isUserExists(String userGridId,
String userId)
throws DaoException
userGridId - ユーザのグリッドIDuserId - 一時ユーザのID
DaoException - 処理に失敗した
String getParentUserIdIfUserAvailable(String userGridId,
String userId,
String password)
throws DaoException
userGridId - ユーザのグリッドIDuserId - 一時ユーザ名password - パスワード
DaoException - 処理に失敗した
boolean isParent(String userGridId,
String ownerUserId,
String userId)
throws DaoException,
UserNotFoundException
userGridId - ユーザのグリッドIDownerUserId - オーナーユーザのIDuserId - 一時ユーザのID
DaoException - 処理に失敗した
UserNotFoundException - ユーザが見つからない
void addUser(TemporaryUser user)
throws DaoException,
UserAlreadyExistsException
user - 追加する一時ユーザ
DaoException - 処理に失敗した
UserAlreadyExistsException - 指定されたユーザは既に存在する
void setAvailableDateTime(TemporaryUser user,
Calendar beginAvailableDateTime,
Calendar endAvailableDateTime)
throws DaoException
user - ユーザbeginAvailableDateTime - 有効期間開始日時endAvailableDateTime - 有効期間終了日時
DaoException - 処理に失敗した
void deleteUser(String userGridId,
String userId)
throws DaoException,
UserNotFoundException
userGridId - ユーザのグリッドIDuserId - 一時ユーザ名
DaoException - 処理に失敗した
UserNotFoundException - 指定されたユーザは存在しない
void deleteUsersOfGrid(String userGridId)
throws DaoException
userGridId - ユーザのグリッドID
DaoException - 処理に失敗した
UserNotFoundException - 指定されたユーザは存在しない
TemporaryUser getUser(String userGridId,
String userId)
throws DaoException,
UserNotFoundException
userGridId - ユーザのグリッドIDuserId - 一時ユーザ名
DaoException - 処理に失敗した
UserNotFoundException - 指定されたユーザは存在しない
|
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||