|
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||
java.lang.Objectjp.go.nict.langrid.dao.hibernate.HibernateDao
jp.go.nict.langrid.dao.hibernate.HibernateCRUDDao<AccessRight>
jp.go.nict.langrid.dao.hibernate.HibernateAccessRightDao
public class HibernateAccessRightDao
アクセス権を扱うDAO。
| 入れ子のクラスの概要 |
|---|
| クラス jp.go.nict.langrid.dao.hibernate.HibernateDao から継承された入れ子のクラス/インタフェース |
|---|
HibernateDao.DaoBlock, HibernateDao.DaoBlockR<R> |
| コンストラクタの概要 | |
|---|---|
HibernateAccessRightDao(HibernateDaoContext context)
コンストラクタ。 |
|
| メソッドの概要 | |
|---|---|
void |
adjustGridDefaultRights(String serviceGridId,
String serviceId,
boolean permitted)
サービスデフォルトに合わせてグリッドデフォルトの情報を調整する。 |
void |
adjustUserRights(String userGridId,
String serviceGridId,
String serviceId,
String ownerUserId,
boolean permitted)
グリッドデフォルトに合わせてユーザの情報を調整する。 |
void |
clear()
アクセス権情報をクリアする。 |
void |
clearExceptDefaults()
デフォルト設定を除いてアクセス権情報をクリアする。 |
void |
deleteAccessRight(String userGridId,
String userId,
String serviceGridId,
String serviceId)
アクセス権情報を削除する。 |
void |
deleteAccessRightsOfGrid(String serviceGridId)
指定されたグリッドのアクセス権を全て削除する。 |
void |
deleteAccessRightsOfService(String serviceGridId,
String serviceId)
指定されたサービスのアクセス権を全て削除する。 |
void |
deleteAccessRightsOfUser(String userGridId,
String userId)
指定されたユーザのアクセス権を全て削除する。 |
void |
deleteGridDefaultAccessRight(String userGridId,
String serviceGridId,
String serviceId)
グリッドのデフォルトアクセス権情報を削除する。 |
AccessRight |
getAccessRight(String userGridId,
String userId,
String serviceGridId,
String serviceId)
アクセス権情報を取得する。 |
AccessRight |
getGridDefaultAccessRight(String userGridId,
String serviceGridId,
String serviceId)
グリッドのデフォルトアクセス権情報を取得する。 |
AccessRight |
getServiceDefaultAccessRight(String serviceGridId,
String serviceId)
サービスのデフォルトアクセス権情報を取得する。 |
Iterable<ServicePK> |
listAccessibleServices(String userGridId,
String userId)
ユーザがアクセスできるサービス一覧を取得する。 |
List<AccessRight> |
listAccessRights(String serviceGridId)
特定のグリッドのアクセス権情報一覧を返す。 |
AccessRightSearchResult |
searchAccessRights(int startIndex,
int maxCount,
String userGridId,
String userId,
String serviceGridId,
String[] serviceIds,
Order[] orders)
アクセス権情報を検索する。 |
AccessRightSearchResult |
searchAccessRightsAccordingToDefaultAndOwner(int startIndex,
int maxCount,
String userGridId,
String userId,
String serviceAndOwnerGridId,
String[] serviceIds,
String ownerUserId,
Order[] orders)
アクセス権情報を検索する。 |
AccessRight |
setAccessRight(String userGridId,
String userId,
String serviceGridId,
String serviceId,
boolean permitted)
アクセス権情報を設定する。 |
AccessRight |
setGridDefaultAccessRight(String userGridId,
String serviceGridId,
String serviceId,
boolean permitted)
グリッドのデフォルトアクセス権情報を設定する。 |
AccessRight |
setServiceDefaultAccessRight(String serviceGridId,
String serviceId,
boolean permitted)
サービスのデフォルトアクセス権情報を設定する。 |
| クラス 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 HibernateAccessRightDao(HibernateDaoContext context)
context - DaoContext| メソッドの詳細 |
|---|
public void clear()
throws DaoException
AccessRightDao の記述:
AccessRightDao 内の clearHibernateCRUDDao<AccessRight> 内の clearDaoException - 処理に失敗した
public void clearExceptDefaults()
throws DaoException
AccessRightDao の記述:
AccessRightDao 内の clearExceptDefaultsDaoException - 処理に失敗した
public List<AccessRight> listAccessRights(String serviceGridId)
throws DaoException
AccessRightDao の記述:
AccessRightDao 内の listAccessRightsserviceGridId - サービスのグリッドID
DaoException - 処理に失敗した
public Iterable<ServicePK> listAccessibleServices(String userGridId,
String userId)
throws DaoException
AccessRightDao の記述:
AccessRightDao 内の listAccessibleServicesuserGridId - ユーザのグリッドID
DaoException - 処理に失敗した
public AccessRightSearchResult searchAccessRights(int startIndex,
int maxCount,
String userGridId,
String userId,
String serviceGridId,
String[] serviceIds,
Order[] orders)
throws DaoException
AccessRightDao の記述:
AccessRightDao 内の searchAccessRightsstartIndex - 開始番号maxCount - 最大件数userGridId - ユーザのグリッドID。指定しない倍は空文字列userId - ユーザID。指定しない場合は空文字列serviceGridId - サービスのグリッドID。指定しない場合は空文字列serviceIds - サービスID。指定しない場合は空配列orders - ソート順
DaoException - 処理に失敗した
public AccessRightSearchResult searchAccessRightsAccordingToDefaultAndOwner(int startIndex,
int maxCount,
String userGridId,
String userId,
String serviceAndOwnerGridId,
String[] serviceIds,
String ownerUserId,
Order[] orders)
throws DaoException
AccessRightDao の記述:
AccessRightDao 内の searchAccessRightsAccordingToDefaultAndOwnerstartIndex - 開始番号maxCount - 最大件数userGridId - ユーザのグリッドID。指定しない倍は空文字列userId - ユーザID。指定しない場合は空文字列serviceIds - サービスID。指定しない場合はnullownerUserId - サービスオーナーのユーザID。結果からは省かれる。指定しない場合は空文字列orders - ソート順
DaoException - 処理に失敗した
public AccessRight getAccessRight(String userGridId,
String userId,
String serviceGridId,
String serviceId)
throws DaoException
AccessRightDao の記述:
AccessRightDao 内の getAccessRightuserGridId - ユーザのグリッドIDuserId - ユーザIDserviceGridId - サービスのグリッドIDserviceId - サービスID
DaoException - 処理に失敗した
public AccessRight setAccessRight(String userGridId,
String userId,
String serviceGridId,
String serviceId,
boolean permitted)
throws DaoException
AccessRightDao の記述:
AccessRightDao 内の setAccessRightuserGridId - ユーザのグリッドIDuserId - ユーザIDserviceGridId - サービスのグリッドIDserviceId - サービスIDpermitted - 許可フラグ
DaoException - 処理に失敗した
public void deleteAccessRight(String userGridId,
String userId,
String serviceGridId,
String serviceId)
throws AccessRightNotFoundException,
DaoException
AccessRightDao の記述:
AccessRightDao 内の deleteAccessRightuserGridId - ユーザのグリッドIDuserId - ユーザIDserviceGridId - サービスのグリッドIDserviceId - サービスID
AccessRightNotFoundException - 指定されたアクセス権は存在しない
DaoException - 処理に失敗した
public AccessRight getServiceDefaultAccessRight(String serviceGridId,
String serviceId)
throws DaoException
AccessRightDao の記述:
AccessRightDao 内の getServiceDefaultAccessRightserviceGridId - サービスのグリッドIDserviceId - サービスID
DaoException - 処理に失敗した
public AccessRight setServiceDefaultAccessRight(String serviceGridId,
String serviceId,
boolean permitted)
throws DaoException
AccessRightDao の記述:
AccessRightDao 内の setServiceDefaultAccessRightserviceGridId - サービスのグリッドIDserviceId - サービスIDpermitted - 許可フラグ
DaoException - 処理に失敗した
public void adjustGridDefaultRights(String serviceGridId,
String serviceId,
boolean permitted)
throws DaoException
AccessRightDao の記述:
AccessRightDao 内の adjustGridDefaultRightsserviceGridId - サービスのグリッドIDserviceId - サービスIDpermitted - 許可フラグ
DaoException - 処理に失敗した
public AccessRight getGridDefaultAccessRight(String userGridId,
String serviceGridId,
String serviceId)
throws DaoException
AccessRightDao の記述:
AccessRightDao 内の getGridDefaultAccessRightuserGridId - ユーザのグリッドIDserviceGridId - サービスのグリッドIDserviceId - サービスID
DaoException - 処理に失敗した
public AccessRight setGridDefaultAccessRight(String userGridId,
String serviceGridId,
String serviceId,
boolean permitted)
throws DaoException
AccessRightDao の記述:
AccessRightDao 内の setGridDefaultAccessRightuserGridId - ユーザのグリッドIDserviceGridId - サービスのグリッドIDserviceId - サービスIDpermitted - 許可フラグ
DaoException - 処理に失敗した
public void deleteGridDefaultAccessRight(String userGridId,
String serviceGridId,
String serviceId)
throws AccessRightNotFoundException,
DaoException
AccessRightDao の記述:
AccessRightDao 内の deleteGridDefaultAccessRightuserGridId - ユーザのグリッドIDserviceGridId - サービスのグリッドIDserviceId - サービスID
DaoException - 処理に失敗した
AccessRightNotFoundException
public void deleteAccessRightsOfGrid(String serviceGridId)
throws DaoException
AccessRightDao の記述:
AccessRightDao 内の deleteAccessRightsOfGridserviceGridId - グリッドID
DaoException - 処理に失敗した
public void adjustUserRights(String userGridId,
String serviceGridId,
String serviceId,
String ownerUserId,
boolean permitted)
throws DaoException
AccessRightDao の記述:
AccessRightDao 内の adjustUserRightsuserGridId - ユーザのグリッドIDserviceGridId - サービスのグリッドIDserviceId - サービスIDownerUserId - サービスオーナーのユーザIDpermitted - 許可フラグ
DaoException - 処理に失敗した
public void deleteAccessRightsOfService(String serviceGridId,
String serviceId)
throws DaoException
AccessRightDao の記述:
AccessRightDao 内の deleteAccessRightsOfServiceserviceGridId - サービスのグリッドIDserviceId - サービスID
DaoException - 処理に失敗した
public void deleteAccessRightsOfUser(String userGridId,
String userId)
throws DaoException
AccessRightDao の記述:
AccessRightDao 内の deleteAccessRightsOfUseruserGridId - ユーザのグリッドIDuserId - ユーザID
DaoException - 処理に失敗した
|
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||