インターフェース RoleHierarchy
- すべての既知の実装クラス:
NullRoleHierarchy
,RoleHierarchyImpl
public interface RoleHierarchy
ロール階層のシンプルなインターフェース。
メソッドのサマリー
修飾子と型メソッド説明CollectionSE<? extends GrantedAuthority>
getReachableGrantedAuthorities
(CollectionSE<? extends GrantedAuthority> authorities) 到達可能なすべての権限の配列を返します。
メソッドの詳細
getReachableGrantedAuthorities
CollectionSE<? extends GrantedAuthority> getReachableGrantedAuthorities(CollectionSE<? extends GrantedAuthority> authorities) 到達可能なすべての権限の配列を返します。到達可能権限は、直接割り当てられた権限に加えて、ロール階層内でそれらから(推移的に)到達可能なすべての権限です。
例:
ロール階層: ROLE_A> ROLE_B> ROLE_C。
直接割り当てられた権限: ROLE_A。
到達可能な権限: ROLE_A、ROLE_B、ROLE_C。- パラメーター:
authorities
- - 直接割り当てられた権限のリスト。- 戻り値:
- 割り当てられた権限を指定されたすべての到達可能な権限のリスト。