Package org.keycloak.partialimport
Class ClientRolesPartialImport
- java.lang.Object
-
- org.keycloak.partialimport.ClientRolesPartialImport
-
public class ClientRolesPartialImport extends Object
Partial Import handler for Client Roles.- Author:
- Stan Silvert ssilvert@redhat.com (C) 2016 Red Hat Inc.
-
-
Constructor Summary
Constructors Constructor Description ClientRolesPartialImport()
-
Method Summary
-
-
-
Method Detail
-
getToOverwrite
public Map<String,Set<RoleRepresentation>> getToOverwrite()
-
getToSkip
public Map<String,Set<RoleRepresentation>> getToSkip()
-
getRepList
public Map<String,List<RoleRepresentation>> getRepList(PartialImportRepresentation partialImportRep)
-
getName
public String getName(RoleRepresentation roleRep)
-
getCombinedName
public String getCombinedName(String clientId, RoleRepresentation roleRep)
-
exists
public boolean exists(RealmModel realm, KeycloakSession session, String clientId, RoleRepresentation roleRep)
-
existsMessage
public String existsMessage(String clientId, RoleRepresentation roleRep)
-
getResourceType
public ResourceType getResourceType()
-
deleteRole
public void deleteRole(RealmModel realm, String clientId, RoleRepresentation roleRep)
-
prepare
public void prepare(PartialImportRepresentation partialImportRep, RealmModel realm, KeycloakSession session) throws ErrorResponseException
- Throws:
ErrorResponseException
-
exists
protected ErrorResponseException exists(String message)
-
noClientFound
protected ErrorResponseException noClientFound(String clientId)
-
overwritten
public PartialImportResult overwritten(String clientId, String modelId, RoleRepresentation roleRep)
-
skipped
public PartialImportResult skipped(String clientId, String modelId, RoleRepresentation roleRep)
-
added
public PartialImportResult added(String clientId, String modelId, RoleRepresentation roleRep)
-
getModelId
public String getModelId(RealmModel realm, String clientId)
-
-