Package org.keycloak.authorization.admin
Class PolicyTypeService
java.lang.Object
org.keycloak.authorization.admin.PolicyService
org.keycloak.authorization.admin.PolicyTypeService
- Author:
- Pedro Igor
-
Field Summary
Fields inherited from class org.keycloak.authorization.admin.PolicyService
adminEvent, auth, authorization, resourceServer
-
Constructor Summary
ConstructorDescriptionPolicyTypeService
(String type, ResourceServer resourceServer, AuthorizationProvider authorization, AdminPermissionEvaluator auth, AdminEventBuilder adminEvent) -
Method Summary
Modifier and TypeMethodDescriptionprotected Object
doCreatePolicyResource
(Policy policy) protected AbstractPolicyRepresentation
doCreateRepresentation
(String payload) doSearch
(Integer firstResult, Integer maxResult, String fields, Map<Policy.FilterOption, String[]> filters) protected AbstractPolicyRepresentation
toRepresentation
(Policy policy, String fields, AuthorizationProvider authorization) Methods inherited from class org.keycloak.authorization.admin.PolicyService
create, create, doCreatePolicyTypeResource, findAll, findByName, findPolicyProviders, getPolicyEvaluateResource, getPolicyProviderAdminResource, getPolicyProviderFactory, getResource
-
Constructor Details
-
PolicyTypeService
public PolicyTypeService(String type, ResourceServer resourceServer, AuthorizationProvider authorization, AdminPermissionEvaluator auth, AdminEventBuilder adminEvent)
-
-
Method Details
-
getPolicyAdminResourceProvider
-
doCreatePolicyResource
- Overrides:
doCreatePolicyResource
in classPolicyService
-
doCreateRepresentation
- Overrides:
doCreateRepresentation
in classPolicyService
-
toRepresentation
protected AbstractPolicyRepresentation toRepresentation(Policy policy, String fields, AuthorizationProvider authorization) - Overrides:
toRepresentation
in classPolicyService
-
doSearch
protected List<Object> doSearch(Integer firstResult, Integer maxResult, String fields, Map<Policy.FilterOption, String[]> filters) - Overrides:
doSearch
in classPolicyService
-