public class ClientRolesPartialImport extends Object
Constructor and Description |
---|
ClientRolesPartialImport() |
public Map<String,Set<RoleRepresentation>> getToOverwrite()
public Map<String,Set<RoleRepresentation>> getToSkip()
public Map<String,List<RoleRepresentation>> getRepList(PartialImportRepresentation partialImportRep)
public String getName(RoleRepresentation roleRep)
public String getCombinedName(String clientId, RoleRepresentation roleRep)
public boolean exists(RealmModel realm, KeycloakSession session, String clientId, RoleRepresentation roleRep)
public String existsMessage(String clientId, RoleRepresentation roleRep)
public ResourceType getResourceType()
public void deleteRole(RealmModel realm, String clientId, RoleRepresentation roleRep)
public void prepare(PartialImportRepresentation partialImportRep, RealmModel realm, KeycloakSession session) throws ErrorResponseException
ErrorResponseException
protected ErrorResponseException exists(String message)
protected ErrorResponseException noClientFound(String clientId)
public PartialImportResult overwritten(String clientId, String modelId, RoleRepresentation roleRep)
public PartialImportResult skipped(String clientId, String modelId, RoleRepresentation roleRep)
public PartialImportResult added(String clientId, String modelId, RoleRepresentation roleRep)
public String getModelId(RealmModel realm, String clientId)
Copyright © 2021 JBoss by Red Hat. All rights reserved.