|
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||
java.lang.Objectjp.go.nict.langrid.dao.hibernate.HibernateDao
jp.go.nict.langrid.dao.hibernate.HibernateCRUDDao<User>
jp.go.nict.langrid.dao.hibernate.HibernateUserDao
public class HibernateUserDao
Hibernateを使ったUserDaoの実装。
| 入れ子のクラスの概要 |
|---|
| クラス jp.go.nict.langrid.dao.hibernate.HibernateDao から継承された入れ子のクラス/インタフェース |
|---|
HibernateDao.DaoBlock, HibernateDao.DaoBlockR<R> |
| コンストラクタの概要 | |
|---|---|
HibernateUserDao(HibernateDaoContext context)
コンストラクタ。 |
|
| メソッドの概要 | |
|---|---|
void |
addUser(User user,
String... userRoles)
ユーザを追加する。 |
void |
clear()
ユーザ情報を消去する。 |
void |
clearExceptAdmins()
ロールが管理者の者を除いてユーザ情報を消去する。 |
void |
deleteUser(String userGridId,
String userId)
ユーザを削除する。 |
void |
deleteUsersOfGrid(String userGridId)
指定されたグリッドのユーザを削除する。 |
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)
パスワード変更が必要なユーザを検索する。 |
| クラス jp.go.nict.langrid.dao.hibernate.HibernateCRUDDao から継承されたメソッド |
|---|
add, add, clearEach, createCriteria, createDeleteQuery, delete, delete, exists, get, list, update |
| クラス jp.go.nict.langrid.dao.hibernate.HibernateDao から継承されたメソッド |
|---|
createDeleteQuery, createDeleteQuery, deleteEntities, getContext, getSession, logAdditionalInfo, logWhenRollbacking, transact, transact |
| クラス java.lang.Object から継承されたメソッド |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| コンストラクタの詳細 |
|---|
public HibernateUserDao(HibernateDaoContext context)
context - DaoContext| メソッドの詳細 |
|---|
public void clear()
throws DaoException
UserDao の記述:
UserDao 内の clearHibernateCRUDDao<User> 内の clearDaoException - 処理に失敗した
public void clearExceptAdmins()
throws DaoException
UserDao の記述:
UserDao 内の clearExceptAdminsDaoException - 処理に失敗した
public List<User> dumpAllUsers(String userGridId)
throws DaoException
UserDao の記述:
UserDao 内の dumpAllUsersuserGridId - ユーザのグリッドID
DaoException - 処理に失敗した
public List<User> listAllUsers(String userGridId)
throws DaoException
UserDao の記述:
UserDao 内の listAllUsersuserGridId - ユーザのグリッドID
DaoException - 処理に失敗した
public UserSearchResult searchUsers(int startIndex,
int maxCount,
String userGridId,
MatchingCondition[] conditions,
Order[] orders)
throws DaoException
UserDao の記述:
UserDao 内の searchUsersstartIndex - 開始インデックスmaxCount - 最大件数userGridId - ユーザのグリッドIDconditions - 検索条件orders - ソート順
DaoException - 処理に失敗した
public boolean isUserExist(String userGridId,
String userId)
throws DaoException
UserDao の記述:
UserDao 内の isUserExistuserGridId - ユーザのグリッドIDuserId - ユーザ名
DaoException - 処理に失敗した
public void addUser(User user,
String... userRoles)
throws DaoException,
UserAlreadyExistsException
UserDao の記述:
UserDao 内の addUseruser - 追加するユーザuserRoles - ユーザのロール(TomcatでのBASIC認証に使用される)
DaoException - 処理に失敗した
UserAlreadyExistsException - 指定されたユーザは既に存在する
public void deleteUsersOfGrid(String userGridId)
throws DaoException
UserDao の記述:
UserDao 内の deleteUsersOfGriduserGridId - グリッドID
DaoException - 処理に失敗した
UserNotFoundException - 指定されたユーザは存在しない
public void deleteUser(String userGridId,
String userId)
throws DaoException,
UserNotFoundException
UserDao の記述:
UserDao 内の deleteUseruserGridId - ユーザのグリッドIDuserId - ユーザ名
DaoException - 処理に失敗した
UserNotFoundException - 指定されたユーザは存在しない
public User getUser(String userGridId,
String userId)
throws DaoException,
UserNotFoundException
UserDao の記述:
UserDao 内の getUseruserGridId - ユーザのグリッドIDuserId - ユーザ名
DaoException - 処理に失敗した
UserNotFoundException - 指定されたユーザは存在しない
public boolean hasUserRole(String userGridId,
String userId,
String role)
throws DaoException
UserDao の記述:
UserDao 内の hasUserRoleuserGridId - ユーザのグリッドIDuserId - ユーザIDrole - ロール
DaoException - 処理に失敗した
UserNotFoundException - 指定されたユーザは存在しない
public UserSearchResult searchUsersShouldChangePassword(int startIndex,
int maxCount,
String userGridId,
Calendar dateTime,
Order[] orders)
throws DaoException
UserDao の記述:
UserDao 内の searchUsersShouldChangePasswordstartIndex - 開始インデックスmaxCount - 最大件数userGridId - ユーザのグリッドIDdateTime - この日時以降パスワードを更新していないユーザが対象orders - ソート順
DaoException - 処理に失敗した
|
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||