org.picketlink.idm.internal
public class DefaultPartitionManager extends Object implements PartitionManager, StoreSelector
Provides partition management functionality, and partition-specific IdentityManager
instances.
Before using this factory you need a valid IdentityConfiguration
, usually created using the
IdentityConfigurationBuilder
.
This class is thread safe, and is intended to be used as an application-scoped component.
Constructor and Description |
---|
DefaultPartitionManager(Collection<IdentityConfiguration> configurations) |
DefaultPartitionManager(Collection<IdentityConfiguration> configurations,
EventBridge eventBridge,
Collection<PermissionHandler> permissionHandlers) |
DefaultPartitionManager(Collection<IdentityConfiguration> configurations,
EventBridge eventBridge,
Collection<PermissionHandler> permissionHandlers,
IdGenerator idGenerator) |
DefaultPartitionManager(IdentityConfiguration configuration) |
public DefaultPartitionManager(IdentityConfiguration configuration)
public DefaultPartitionManager(Collection<IdentityConfiguration> configurations)
public DefaultPartitionManager(Collection<IdentityConfiguration> configurations, EventBridge eventBridge, Collection<PermissionHandler> permissionHandlers)
public DefaultPartitionManager(Collection<IdentityConfiguration> configurations, EventBridge eventBridge, Collection<PermissionHandler> permissionHandlers, IdGenerator idGenerator)
public IdentityManager createIdentityManager() throws IdentityManagementException
createIdentityManager
in interface PartitionManager
IdentityManagementException
public IdentityManager createIdentityManager(Partition partition) throws IdentityManagementException
createIdentityManager
in interface PartitionManager
IdentityManagementException
public PermissionManager createPermissionManager()
createPermissionManager
in interface PartitionManager
public PermissionManager createPermissionManager(Partition partition) throws IdentityManagementException
createPermissionManager
in interface PartitionManager
IdentityManagementException
public RelationshipManager createRelationshipManager()
createRelationshipManager
in interface PartitionManager
public <T extends Partition> T getPartition(Class<T> partitionClass, String name)
getPartition
in interface PartitionManager
public <T extends Partition> List<T> getPartitions(Class<T> partitionClass)
getPartitions
in interface PartitionManager
public <T extends Partition> T lookupById(Class<T> partitionClass, String id)
lookupById
in interface PartitionManager
public void add(Partition partition) throws IdentityManagementException
add
in interface PartitionManager
IdentityManagementException
public void add(Partition partition, String configurationName) throws IdentityManagementException
add
in interface PartitionManager
IdentityManagementException
public void update(Partition partition) throws IdentityManagementException
update
in interface PartitionManager
IdentityManagementException
public void remove(Partition partition) throws IdentityManagementException
remove
in interface PartitionManager
IdentityManagementException
public Collection<IdentityConfiguration> getConfigurations()
getConfigurations
in interface PartitionManager
public <T extends IdentityStore<?>> T getStoreForIdentityOperation(IdentityContext context, Class<T> storeType, Class<? extends AttributedType> type, IdentityStoreConfiguration.IdentityOperation operation)
getStoreForIdentityOperation
in interface StoreSelector
public Set<IdentityStore<?>> getStoresForIdentityQuery(IdentityContext context, Class<? extends IdentityType> identityType)
getStoresForIdentityQuery
in interface StoreSelector
public <T extends IdentityStore<?>> T lookupStore(IdentityContext context, IdentityConfiguration configuration, Class<? extends AttributedType> type, IdentityStoreConfiguration.IdentityOperation operation)
public <T extends CredentialStore<?>> T getStoreForCredentialOperation(IdentityContext context, Class<?> credentialClass)
getStoreForCredentialOperation
in interface StoreSelector
public IdentityStore<?> getStoreForRelationshipOperation(IdentityContext context, Class<? extends Relationship> relationshipClass, Relationship relationship, IdentityStoreConfiguration.IdentityOperation operation)
getStoreForRelationshipOperation
in interface StoreSelector
public Set<IdentityStore<?>> getStoresForRelationshipQuery(IdentityContext context, Class<? extends Relationship> relationshipClass, Set<Partition> partitions)
getStoresForRelationshipQuery
in interface StoreSelector
public <T extends PartitionStore<?>> T getStoreForPartitionOperation(IdentityContext context, Class<? extends Partition> partitionClass)
getStoreForPartitionOperation
in interface StoreSelector
public <T extends AttributeStore<?>> T getStoreForAttributeOperation(IdentityContext context)
getStoreForAttributeOperation
in interface StoreSelector
public Set<CredentialStore<?>> getStoresForCredentialStorage(IdentityContext context, Class<? extends CredentialStorage> storageClass)
getStoresForCredentialStorage
in interface StoreSelector
public PermissionStore getStoreForPermissionOperation(IdentityContext context)
getStoreForPermissionOperation
in interface StoreSelector
Copyright © 2015 JBoss by Red Hat. All rights reserved.