public class IDMUtil extends Object
Constructor and Description |
---|
IDMUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
configureDefaultPartition(IdentityType identityType,
IdentityStore identityStore,
PartitionManager partitionManager)
Configure the default partition for the given identity type, if necessary.
|
static int |
isTypeOperationSupported(Class<? extends AttributedType> type,
IdentityStoreConfiguration.IdentityOperation operation,
Map<Class<? extends AttributedType>,Set<IdentityStoreConfiguration.IdentityOperation>> supportedTypes,
Map<Class<? extends AttributedType>,Set<IdentityStoreConfiguration.IdentityOperation>> unsupportedTypes) |
static <P extends Class<?>> |
isTypeSupported(P type,
Set<P> supportedTypes,
Set<P> unsupportedTypes)
This method checks if a
type is supported by looking at the supportedTypes and
the unsupportedTypes set. |
static <P> Set<P> |
toSet(P[] values)
Converts the given array into a
Set . |
public static <P> Set<P> toSet(P[] values)
Converts the given array into a Set
.
P
- values
- public static <P extends Class<?>> int isTypeSupported(P type, Set<P> supportedTypes, Set<P> unsupportedTypes)
This method checks if a type
is supported by looking at the supportedTypes
and
the unsupportedTypes
set.
The calculation is based on the type equality and also its hierarchy.
type
- The target supported type.supportedTypes
- A Set with all supported types.unsupportedTypes
- A Set with all unsupported types.public static int isTypeOperationSupported(Class<? extends AttributedType> type, IdentityStoreConfiguration.IdentityOperation operation, Map<Class<? extends AttributedType>,Set<IdentityStoreConfiguration.IdentityOperation>> supportedTypes, Map<Class<? extends AttributedType>,Set<IdentityStoreConfiguration.IdentityOperation>> unsupportedTypes)
public static void configureDefaultPartition(IdentityType identityType, IdentityStore identityStore, PartitionManager partitionManager)
Configure the default partition for the given identity type, if necessary.
The default partition will be used when the type does not provide a partition by its own.
identityType
- identityStore
- partitionManager
- Copyright © 2018 JBoss by Red Hat. All rights reserved.