Package org.keycloak.partialimport
Class RealmRolesPartialImport
- java.lang.Object
-
- org.keycloak.partialimport.AbstractPartialImport<RoleRepresentation>
-
- org.keycloak.partialimport.RealmRolesPartialImport
-
- All Implemented Interfaces:
PartialImport<RoleRepresentation>
public class RealmRolesPartialImport extends AbstractPartialImport<RoleRepresentation>
PartialImport handler for Realm Roles.- Author:
- Stan Silvert ssilvert@redhat.com (C) 2016 Red Hat Inc.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RealmRolesPartialImport.RoleHelper
-
Field Summary
-
Fields inherited from class org.keycloak.partialimport.AbstractPartialImport
toOverwrite, toSkip
-
-
Constructor Summary
Constructors Constructor Description RealmRolesPartialImport()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
create(RealmModel realm, KeycloakSession session, RoleRepresentation roleRep)
boolean
exists(RealmModel realm, KeycloakSession session, RoleRepresentation roleRep)
String
existsMessage(RealmModel realm, RoleRepresentation roleRep)
String
getModelId(RealmModel realm, KeycloakSession session, RoleRepresentation roleRep)
String
getName(RoleRepresentation roleRep)
List<RoleRepresentation>
getRepList(PartialImportRepresentation partialImportRep)
ResourceType
getResourceType()
Set<RoleRepresentation>
getToOverwrite()
Set<RoleRepresentation>
getToSkip()
void
remove(RealmModel realm, KeycloakSession session, RoleRepresentation roleRep)
-
Methods inherited from class org.keycloak.partialimport.AbstractPartialImport
added, doImport, existsError, overwritten, prepare, removeOverwrites, skipped
-
-
-
-
Method Detail
-
getToOverwrite
public Set<RoleRepresentation> getToOverwrite()
-
getToSkip
public Set<RoleRepresentation> getToSkip()
-
getRepList
public List<RoleRepresentation> getRepList(PartialImportRepresentation partialImportRep)
- Specified by:
getRepList
in classAbstractPartialImport<RoleRepresentation>
-
getName
public String getName(RoleRepresentation roleRep)
- Specified by:
getName
in classAbstractPartialImport<RoleRepresentation>
-
getModelId
public String getModelId(RealmModel realm, KeycloakSession session, RoleRepresentation roleRep)
- Specified by:
getModelId
in classAbstractPartialImport<RoleRepresentation>
-
exists
public boolean exists(RealmModel realm, KeycloakSession session, RoleRepresentation roleRep)
- Specified by:
exists
in classAbstractPartialImport<RoleRepresentation>
-
existsMessage
public String existsMessage(RealmModel realm, RoleRepresentation roleRep)
- Specified by:
existsMessage
in classAbstractPartialImport<RoleRepresentation>
-
getResourceType
public ResourceType getResourceType()
- Specified by:
getResourceType
in classAbstractPartialImport<RoleRepresentation>
-
remove
public void remove(RealmModel realm, KeycloakSession session, RoleRepresentation roleRep)
- Specified by:
remove
in classAbstractPartialImport<RoleRepresentation>
-
create
public void create(RealmModel realm, KeycloakSession session, RoleRepresentation roleRep)
- Specified by:
create
in classAbstractPartialImport<RoleRepresentation>
-
-