keycloak
クラス | 公開メンバ関数 | 静的公開メンバ関数 | 非公開変数類 | 全メンバ一覧
org.keycloak.models.cache.infinispan.stream.HasRolePredicate クラス
org.keycloak.models.cache.infinispan.stream.HasRolePredicate の継承関係図
Inheritance graph
org.keycloak.models.cache.infinispan.stream.HasRolePredicate 連携図
Collaboration graph

クラス

class  ExternalizerImpl
 

公開メンバ関数

HasRolePredicate role (String role)
 
boolean test (Map.Entry< String, Revisioned > entry)
 

静的公開メンバ関数

static HasRolePredicate create ()
 

非公開変数類

String role
 

詳解

著者
Bill Burke
バージョン
Revision
1

関数詳解

◆ create()

static HasRolePredicate org.keycloak.models.cache.infinispan.stream.HasRolePredicate.create ( )
inlinestatic
28  {
29  return new HasRolePredicate();
30  }

◆ role()

HasRolePredicate org.keycloak.models.cache.infinispan.stream.HasRolePredicate.role ( String  role)
inline
32  {
33  this.role = role;
34  return this;
35  }
String role
Definition: HasRolePredicate.java:26

◆ test()

boolean org.keycloak.models.cache.infinispan.stream.HasRolePredicate.test ( Map.Entry< String, Revisioned entry)
inline
38  {
39  Object value = entry.getValue();
40  if (value == null) return false;
41  if (value instanceof CachedRole) {
42  CachedRole cachedRole = (CachedRole)value;
43  if (cachedRole.getComposites().contains(role)) return true;
44  }
45  if (value instanceof CachedGroup) {
46  CachedGroup cachedRole = (CachedGroup)value;
47  if (cachedRole.getRoleMappings().contains(role)) return true;
48  }
49  if (value instanceof RoleQuery) {
50  RoleQuery roleQuery = (RoleQuery)value;
51  if (roleQuery.getRoles().contains(role)) return true;
52  }
53  if (value instanceof CachedClient) {
54  CachedClient cachedClient = (CachedClient)value;
55  if (cachedClient.getScope().contains(role)) return true;
56 
57  }
58  if (value instanceof CachedClientScope) {
59  CachedClientScope cachedClientScope = (CachedClientScope)value;
60  if (cachedClientScope.getScope().contains(role)) return true;
61 
62  }
63  return false;
64  }
String role
Definition: HasRolePredicate.java:26

メンバ詳解

◆ role

String org.keycloak.models.cache.infinispan.stream.HasRolePredicate.role
private

このクラス詳解は次のファイルから抽出されました: