Class GroupPolicyProviderFactory
java.lang.Object
org.keycloak.authorization.policy.provider.group.GroupPolicyProviderFactory
- All Implemented Interfaces:
PolicyProviderFactory<GroupPolicyRepresentation>
,ProviderFactory<PolicyProvider>
public class GroupPolicyProviderFactory
extends Object
implements PolicyProviderFactory<GroupPolicyRepresentation>
- Author:
- Pedro Igor
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
This is called when the server shuts down.create
(AuthorizationProvider authorization) create
(KeycloakSession session) getGroup()
getId()
getName()
void
init
(Config.Scope config) Only called once when the factory is first created.void
onCreate
(Policy policy, GroupPolicyRepresentation representation, AuthorizationProvider authorization) void
onExport
(Policy policy, PolicyRepresentation representation, AuthorizationProvider authorization) void
onImport
(Policy policy, PolicyRepresentation representation, AuthorizationProvider authorization) void
onUpdate
(Policy policy, GroupPolicyRepresentation representation, AuthorizationProvider authorization) void
postInit
(KeycloakSessionFactory factory) Called after all provider factories have been initializedtoRepresentation
(Policy policy, AuthorizationProvider authorization) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.keycloak.authorization.policy.provider.PolicyProviderFactory
getAdminResource, isInternal, onRemove
Methods inherited from interface org.keycloak.provider.ProviderFactory
getConfigMetadata, order
-
Constructor Details
-
GroupPolicyProviderFactory
public GroupPolicyProviderFactory()
-
-
Method Details
-
getId
- Specified by:
getId
in interfaceProviderFactory<PolicyProvider>
-
getName
- Specified by:
getName
in interfacePolicyProviderFactory<GroupPolicyRepresentation>
-
getGroup
- Specified by:
getGroup
in interfacePolicyProviderFactory<GroupPolicyRepresentation>
-
create
- Specified by:
create
in interfacePolicyProviderFactory<GroupPolicyRepresentation>
-
create
- Specified by:
create
in interfaceProviderFactory<PolicyProvider>
-
toRepresentation
public GroupPolicyRepresentation toRepresentation(Policy policy, AuthorizationProvider authorization) - Specified by:
toRepresentation
in interfacePolicyProviderFactory<GroupPolicyRepresentation>
-
getRepresentationType
- Specified by:
getRepresentationType
in interfacePolicyProviderFactory<GroupPolicyRepresentation>
-
onCreate
public void onCreate(Policy policy, GroupPolicyRepresentation representation, AuthorizationProvider authorization) - Specified by:
onCreate
in interfacePolicyProviderFactory<GroupPolicyRepresentation>
-
onUpdate
public void onUpdate(Policy policy, GroupPolicyRepresentation representation, AuthorizationProvider authorization) - Specified by:
onUpdate
in interfacePolicyProviderFactory<GroupPolicyRepresentation>
-
onImport
public void onImport(Policy policy, PolicyRepresentation representation, AuthorizationProvider authorization) - Specified by:
onImport
in interfacePolicyProviderFactory<GroupPolicyRepresentation>
-
onExport
public void onExport(Policy policy, PolicyRepresentation representation, AuthorizationProvider authorization) - Specified by:
onExport
in interfacePolicyProviderFactory<GroupPolicyRepresentation>
-
init
Description copied from interface:ProviderFactory
Only called once when the factory is first created. This config is pulled from keycloak_server.json- Specified by:
init
in interfaceProviderFactory<PolicyProvider>
-
postInit
Description copied from interface:ProviderFactory
Called after all provider factories have been initialized- Specified by:
postInit
in interfaceProviderFactory<PolicyProvider>
-
close
public void close()Description copied from interface:ProviderFactory
This is called when the server shuts down.- Specified by:
close
in interfaceProviderFactory<PolicyProvider>
-