Package org.keycloak.authorization.admin
Class PermissionService
- java.lang.Object
-
- org.keycloak.authorization.admin.PolicyService
-
- org.keycloak.authorization.admin.PermissionService
-
public class PermissionService extends PolicyService
- Author:
- Pedro Igor
-
-
Field Summary
-
Fields inherited from class org.keycloak.authorization.admin.PolicyService
adminEvent, auth, authorization, resourceServer
-
-
Constructor Summary
Constructors Constructor Description PermissionService(ResourceServer resourceServer, AuthorizationProvider authorization, AdminPermissionEvaluator auth, AdminEventBuilder adminEvent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected PolicyResourceService
doCreatePolicyResource(Policy policy)
protected PolicyTypeService
doCreatePolicyTypeResource(String type)
protected List<Object>
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, doCreateRepresentation, findAll, findByName, findPolicyProviders, getPolicyEvaluateResource, getPolicyProviderAdminResource, getPolicyProviderFactory, getResource
-
-
-
-
Constructor Detail
-
PermissionService
public PermissionService(ResourceServer resourceServer, AuthorizationProvider authorization, AdminPermissionEvaluator auth, AdminEventBuilder adminEvent)
-
-
Method Detail
-
doCreatePolicyResource
protected PolicyResourceService doCreatePolicyResource(Policy policy)
- Overrides:
doCreatePolicyResource
in classPolicyService
-
doCreatePolicyTypeResource
protected PolicyTypeService doCreatePolicyTypeResource(String type)
- Overrides:
doCreatePolicyTypeResource
in classPolicyService
-
doSearch
protected List<Object> doSearch(Integer firstResult, Integer maxResult, String fields, Map<Policy.FilterOption,String[]> filters)
- Overrides:
doSearch
in classPolicyService
-
toRepresentation
protected AbstractPolicyRepresentation toRepresentation(Policy policy, String fields, AuthorizationProvider authorization)
- Overrides:
toRepresentation
in classPolicyService
-
-