Class RolesPartialImport

java.lang.Object
org.keycloak.partialimport.RolesPartialImport
All Implemented Interfaces:
PartialImport<RolesRepresentation>

public class RolesPartialImport extends Object implements PartialImport<RolesRepresentation>
This class handles both realm roles and client roles. It delegates to RealmRolesPartialImport and ClientRolesPartialImport, which are no longer used directly by the PartialImportManager. The strategy is to utilize RepresentationToModel.importRoles(). That way, the complex code for bulk creation of roles is kept in one place. To do this, the logic for skip needs to remove the roles that are going to be skipped so that importRoles() doesn't know about them. The logic for overwrite needs to delete the overwritten roles before importRoles() is called.
Author:
Stan Silvert ssilvert@redhat.com (C) 2016 Red Hat Inc.