keycloak
|
公開メンバ関数 | |
Policy | create (AbstractPolicyRepresentation representation, ResourceServer resourceServer) |
void | delete (String id) |
Policy | findById (String id, String resourceServerId) |
Policy | findByName (String name, String resourceServerId) |
List< Policy > | findByResourceServer (String resourceServerId) |
List< Policy > | findByResourceServer (Map< String, String[]> attributes, String resourceServerId, int firstResult, int maxResult) |
List< Policy > | findByResource (String resourceId, String resourceServerId) |
void | findByResource (String resourceId, String resourceServerId, Consumer< Policy > consumer) |
List< Policy > | findByResourceType (String resourceType, String resourceServerId) |
List< Policy > | findByScopeIds (List< String > scopeIds, String resourceServerId) |
List< Policy > | findByScopeIds (List< String > scopeIds, String resourceId, String resourceServerId) |
void | findByScopeIds (List< String > scopeIds, String resourceId, String resourceServerId, Consumer< Policy > consumer) |
List< Policy > | findByType (String type, String resourceServerId) |
List< Policy > | findDependentPolicies (String id, String resourceServerId) |
void | findByResourceType (String type, String id, Consumer< Policy > policyConsumer) |
A PolicyStore is responsible to manage the persistence of Policy instances.
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.
representation | the policy representation |
resourceServer | the resource server to which this policy belongs |
org.keycloak.models.cache.infinispan.authorization.StoreFactoryCacheSession.PolicyCache, org.keycloak.authorization.jpa.store.JPAPolicyStoreで実装されています。
void org.keycloak.authorization.store.PolicyStore.delete | ( | String | id | ) |
Deletes a policy from the underlying persistence mechanism.
id | the id of the policy to delete |
org.keycloak.models.cache.infinispan.authorization.StoreFactoryCacheSession.PolicyCache, org.keycloak.authorization.jpa.store.JPAPolicyStoreで実装されています。
Policy org.keycloak.authorization.store.PolicyStore.findById | ( | String | id, |
String | resourceServerId | ||
) |
Returns a Policy with the given id
id | the identifier of the policy |
resourceServerId | the resource server id |
org.keycloak.models.cache.infinispan.authorization.StoreFactoryCacheSession.PolicyCache, org.keycloak.authorization.jpa.store.JPAPolicyStoreで実装されています。
Policy org.keycloak.authorization.store.PolicyStore.findByName | ( | String | name, |
String | resourceServerId | ||
) |
Returns a Policy with the given name
name | the name of the policy |
resourceServerId | the resource server id |
org.keycloak.models.cache.infinispan.authorization.StoreFactoryCacheSession.PolicyCache, org.keycloak.authorization.jpa.store.JPAPolicyStoreで実装されています。
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
.
resourceId | the identifier of a resource |
resourceServerId | the resource server id |
org.keycloak.models.cache.infinispan.authorization.StoreFactoryCacheSession.PolicyCache, org.keycloak.authorization.jpa.store.JPAPolicyStoreで実装されています。
void org.keycloak.authorization.store.PolicyStore.findByResource | ( | String | resourceId, |
String | resourceServerId, | ||
Consumer< Policy > | consumer | ||
) |
List<Policy> org.keycloak.authorization.store.PolicyStore.findByResourceServer | ( | String | resourceServerId | ) |
Returns a list of Policy associated with a ResourceServer with the given resourceServerId
.
resourceServerId | the identifier of a resource server |
org.keycloak.models.cache.infinispan.authorization.StoreFactoryCacheSession.PolicyCache, org.keycloak.authorization.jpa.store.JPAPolicyStoreで実装されています。
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
.
attributes | a map holding the attributes that will be used as a filter |
resourceServerId | the identifier of a resource server |
org.keycloak.models.cache.infinispan.authorization.StoreFactoryCacheSession.PolicyCache, org.keycloak.authorization.jpa.store.JPAPolicyStoreで実装されています。
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
.
resourceType | the type of a resource |
resourceServerId | the resource server id |
org.keycloak.models.cache.infinispan.authorization.StoreFactoryCacheSession.PolicyCache, org.keycloak.authorization.jpa.store.JPAPolicyStoreで実装されています。
void org.keycloak.authorization.store.PolicyStore.findByResourceType | ( | String | type, |
String | id, | ||
Consumer< Policy > | policyConsumer | ||
) |
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
.
scopeIds | the id of the scopes |
resourceServerId | the resource server id |
org.keycloak.models.cache.infinispan.authorization.StoreFactoryCacheSession.PolicyCache, org.keycloak.authorization.jpa.store.JPAPolicyStoreで実装されています。
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
.
scopeIds | the id of the scopes |
resourceId | the id of the resource |
resourceServerId | the resource server id |
org.keycloak.models.cache.infinispan.authorization.StoreFactoryCacheSession.PolicyCache, org.keycloak.authorization.jpa.store.JPAPolicyStoreで実装されています。
void org.keycloak.authorization.store.PolicyStore.findByScopeIds | ( | List< String > | scopeIds, |
String | resourceId, | ||
String | resourceServerId, | ||
Consumer< Policy > | consumer | ||
) |
List<Policy> org.keycloak.authorization.store.PolicyStore.findByType | ( | String | type, |
String | resourceServerId | ||
) |
Returns a list of Policy with the given type
.
type | the type of the policy |
resourceServerId | the resource server id |
org.keycloak.models.cache.infinispan.authorization.StoreFactoryCacheSession.PolicyCache, org.keycloak.authorization.jpa.store.JPAPolicyStoreで実装されています。
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
.
id | the id of the policy to query its dependents |
resourceServerId | the resource server id |
org.keycloak.models.cache.infinispan.authorization.StoreFactoryCacheSession.PolicyCache, org.keycloak.authorization.jpa.store.JPAPolicyStoreで実装されています。