keycloak
公開メンバ関数 | 全メンバ一覧
org.keycloak.authorization.store.PolicyStore インタフェース
org.keycloak.authorization.store.PolicyStore の継承関係図
Inheritance graph
org.keycloak.authorization.store.PolicyStore 連携図
Collaboration graph

公開メンバ関数

Policy create (AbstractPolicyRepresentation representation, ResourceServer resourceServer)
 
void delete (String id)
 
Policy findById (String id, String resourceServerId)
 
Policy findByName (String name, String resourceServerId)
 
List< PolicyfindByResourceServer (String resourceServerId)
 
List< PolicyfindByResourceServer (Map< String, String[]> attributes, String resourceServerId, int firstResult, int maxResult)
 
List< PolicyfindByResource (String resourceId, String resourceServerId)
 
void findByResource (String resourceId, String resourceServerId, Consumer< Policy > consumer)
 
List< PolicyfindByResourceType (String resourceType, String resourceServerId)
 
List< PolicyfindByScopeIds (List< String > scopeIds, String resourceServerId)
 
List< PolicyfindByScopeIds (List< String > scopeIds, String resourceId, String resourceServerId)
 
void findByScopeIds (List< String > scopeIds, String resourceId, String resourceServerId, Consumer< Policy > consumer)
 
List< PolicyfindByType (String type, String resourceServerId)
 
List< PolicyfindDependentPolicies (String id, String resourceServerId)
 
void findByResourceType (String type, String id, Consumer< Policy > policyConsumer)
 

詳解

A PolicyStore is responsible to manage the persistence of Policy instances.

著者
Pedro Igor

関数詳解

◆ create()

Policy org.keycloak.authorization.store.PolicyStore.create ( AbstractPolicyRepresentation  representation,
ResourceServer  resourceServer 
)

Creates a new Policy instance. The new instance is not necessarily persisted though, which may require a call to the {#save} method to actually make it persistent.

引数
representationthe policy representation
resourceServerthe resource server to which this policy belongs
戻り値
a new instance of Policy

org.keycloak.models.cache.infinispan.authorization.StoreFactoryCacheSession.PolicyCache, org.keycloak.authorization.jpa.store.JPAPolicyStoreで実装されています。

◆ delete()

void org.keycloak.authorization.store.PolicyStore.delete ( String  id)

Deletes a policy from the underlying persistence mechanism.

引数
idthe id of the policy to delete

org.keycloak.models.cache.infinispan.authorization.StoreFactoryCacheSession.PolicyCache, org.keycloak.authorization.jpa.store.JPAPolicyStoreで実装されています。

◆ findById()

Policy org.keycloak.authorization.store.PolicyStore.findById ( String  id,
String  resourceServerId 
)

Returns a Policy with the given id

引数
idthe identifier of the policy
resourceServerIdthe resource server id
戻り値
a policy with the given identifier.

org.keycloak.models.cache.infinispan.authorization.StoreFactoryCacheSession.PolicyCache, org.keycloak.authorization.jpa.store.JPAPolicyStoreで実装されています。

◆ findByName()

Policy org.keycloak.authorization.store.PolicyStore.findByName ( String  name,
String  resourceServerId 
)

Returns a Policy with the given name

引数
namethe name of the policy
resourceServerIdthe resource server id
戻り値
a policy with the given name.

org.keycloak.models.cache.infinispan.authorization.StoreFactoryCacheSession.PolicyCache, org.keycloak.authorization.jpa.store.JPAPolicyStoreで実装されています。

◆ findByResource() [1/2]

List<Policy> org.keycloak.authorization.store.PolicyStore.findByResource ( String  resourceId,
String  resourceServerId 
)

Returns a list of Policy associated with a org.keycloak.authorization.core.model.Resource with the given resourceId.

引数
resourceIdthe identifier of a resource
resourceServerIdthe resource server id
戻り値
a list of policies associated with the given resource

org.keycloak.models.cache.infinispan.authorization.StoreFactoryCacheSession.PolicyCache, org.keycloak.authorization.jpa.store.JPAPolicyStoreで実装されています。

◆ findByResource() [2/2]

void org.keycloak.authorization.store.PolicyStore.findByResource ( String  resourceId,
String  resourceServerId,
Consumer< Policy consumer 
)

◆ findByResourceServer() [1/2]

List<Policy> org.keycloak.authorization.store.PolicyStore.findByResourceServer ( String  resourceServerId)

Returns a list of Policy associated with a ResourceServer with the given resourceServerId.

引数
resourceServerIdthe identifier of a resource server
戻り値
a list of policies that belong to the given resource server

org.keycloak.models.cache.infinispan.authorization.StoreFactoryCacheSession.PolicyCache, org.keycloak.authorization.jpa.store.JPAPolicyStoreで実装されています。

◆ findByResourceServer() [2/2]

List<Policy> org.keycloak.authorization.store.PolicyStore.findByResourceServer ( Map< String, String[]>  attributes,
String  resourceServerId,
int  firstResult,
int  maxResult 
)

Returns a list of Policy associated with a ResourceServer with the given resourceServerId.

引数
attributesa map holding the attributes that will be used as a filter
resourceServerIdthe identifier of a resource server
戻り値
a list of policies that belong to the given resource server

org.keycloak.models.cache.infinispan.authorization.StoreFactoryCacheSession.PolicyCache, org.keycloak.authorization.jpa.store.JPAPolicyStoreで実装されています。

◆ findByResourceType() [1/2]

List<Policy> org.keycloak.authorization.store.PolicyStore.findByResourceType ( String  resourceType,
String  resourceServerId 
)

Returns a list of Policy associated with a org.keycloak.authorization.core.model.Resource with the given type.

引数
resourceTypethe type of a resource
resourceServerIdthe resource server id
戻り値
a list of policies associated with the given resource type

org.keycloak.models.cache.infinispan.authorization.StoreFactoryCacheSession.PolicyCache, org.keycloak.authorization.jpa.store.JPAPolicyStoreで実装されています。

◆ findByResourceType() [2/2]

void org.keycloak.authorization.store.PolicyStore.findByResourceType ( String  type,
String  id,
Consumer< Policy policyConsumer 
)

◆ findByScopeIds() [1/3]

List<Policy> org.keycloak.authorization.store.PolicyStore.findByScopeIds ( List< String >  scopeIds,
String  resourceServerId 
)

Returns a list of Policy associated with a org.keycloak.authorization.core.model.Scope with the given scopeIds.

引数
scopeIdsthe id of the scopes
resourceServerIdthe resource server id
戻り値
a list of policies associated with the given scopes

org.keycloak.models.cache.infinispan.authorization.StoreFactoryCacheSession.PolicyCache, org.keycloak.authorization.jpa.store.JPAPolicyStoreで実装されています。

◆ findByScopeIds() [2/3]

List<Policy> org.keycloak.authorization.store.PolicyStore.findByScopeIds ( List< String >  scopeIds,
String  resourceId,
String  resourceServerId 
)

Returns a list of Policy associated with a org.keycloak.authorization.core.model.Scope with the given resourceId and scopeIds.

引数
scopeIdsthe id of the scopes
resourceIdthe id of the resource
resourceServerIdthe resource server id
戻り値
a list of policies associated with the given scopes

org.keycloak.models.cache.infinispan.authorization.StoreFactoryCacheSession.PolicyCache, org.keycloak.authorization.jpa.store.JPAPolicyStoreで実装されています。

◆ findByScopeIds() [3/3]

void org.keycloak.authorization.store.PolicyStore.findByScopeIds ( List< String >  scopeIds,
String  resourceId,
String  resourceServerId,
Consumer< Policy consumer 
)

◆ findByType()

List<Policy> org.keycloak.authorization.store.PolicyStore.findByType ( String  type,
String  resourceServerId 
)

Returns a list of Policy with the given type.

引数
typethe type of the policy
resourceServerIdthe resource server id
戻り値
a list of policies with the given type

org.keycloak.models.cache.infinispan.authorization.StoreFactoryCacheSession.PolicyCache, org.keycloak.authorization.jpa.store.JPAPolicyStoreで実装されています。

◆ findDependentPolicies()

List<Policy> org.keycloak.authorization.store.PolicyStore.findDependentPolicies ( String  id,
String  resourceServerId 
)

Returns a list of Policy that depends on another policy with the given id.

引数
idthe id of the policy to query its dependents
resourceServerIdthe resource server id
戻り値
a list of policies that depends on the a policy with the given identifier

org.keycloak.models.cache.infinispan.authorization.StoreFactoryCacheSession.PolicyCache, org.keycloak.authorization.jpa.store.JPAPolicyStoreで実装されています。


このインタフェース詳解は次のファイルから抽出されました: