public class DefaultPartitionManager extends Object implements org.picketlink.idm.PartitionManager, org.picketlink.idm.spi.StoreSelector
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<org.picketlink.idm.config.IdentityConfiguration> configurations) |
DefaultPartitionManager(Collection<org.picketlink.idm.config.IdentityConfiguration> configurations,
org.picketlink.idm.event.EventBridge eventBridge) |
DefaultPartitionManager(Collection<org.picketlink.idm.config.IdentityConfiguration> configurations,
org.picketlink.idm.event.EventBridge eventBridge,
org.picketlink.idm.IdGenerator idGenerator) |
DefaultPartitionManager(org.picketlink.idm.config.IdentityConfiguration configuration) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(org.picketlink.idm.model.Partition partition) |
void |
add(org.picketlink.idm.model.Partition partition,
String configurationName) |
org.picketlink.idm.IdentityManager |
createIdentityManager() |
org.picketlink.idm.IdentityManager |
createIdentityManager(org.picketlink.idm.model.Partition partition) |
org.picketlink.idm.RelationshipManager |
createRelationshipManager() |
<T extends org.picketlink.idm.model.Partition> |
getPartition(Class<T> partitionClass,
String name) |
<T extends org.picketlink.idm.model.Partition> |
getPartitions(Class<T> partitionClass) |
<T extends org.picketlink.idm.spi.AttributeStore<?>> |
getStoreForAttributeOperation(org.picketlink.idm.spi.IdentityContext context) |
<T extends org.picketlink.idm.spi.CredentialStore<?>> |
getStoreForCredentialOperation(org.picketlink.idm.spi.IdentityContext context,
Class<?> credentialClass) |
<T extends org.picketlink.idm.spi.IdentityStore<?>> |
getStoreForIdentityOperation(org.picketlink.idm.spi.IdentityContext context,
Class<T> storeType,
Class<? extends org.picketlink.idm.model.AttributedType> type,
org.picketlink.idm.config.IdentityStoreConfiguration.IdentityOperation operation) |
<T extends org.picketlink.idm.spi.PartitionStore<?>> |
getStoreForPartitionOperation(org.picketlink.idm.spi.IdentityContext context) |
org.picketlink.idm.spi.IdentityStore<?> |
getStoreForRelationshipOperation(org.picketlink.idm.spi.IdentityContext context,
Class<? extends org.picketlink.idm.model.Relationship> relationshipClass,
org.picketlink.idm.model.Relationship relationship,
org.picketlink.idm.config.IdentityStoreConfiguration.IdentityOperation operation) |
Set<org.picketlink.idm.spi.CredentialStore<?>> |
getStoresForCredentialStorage(org.picketlink.idm.spi.IdentityContext context,
Class<? extends org.picketlink.idm.credential.storage.CredentialStorage> storageClass) |
Set<org.picketlink.idm.spi.IdentityStore<?>> |
getStoresForRelationshipQuery(org.picketlink.idm.spi.IdentityContext context,
Class<? extends org.picketlink.idm.model.Relationship> relationshipClass,
Set<org.picketlink.idm.model.Partition> partitions) |
<T extends org.picketlink.idm.model.Partition> |
lookupById(Class<T> partitionClass,
String id) |
<T extends org.picketlink.idm.spi.IdentityStore<?>> |
lookupStore(org.picketlink.idm.spi.IdentityContext context,
org.picketlink.idm.config.IdentityConfiguration configuration,
Class<? extends org.picketlink.idm.model.AttributedType> type,
org.picketlink.idm.config.IdentityStoreConfiguration.IdentityOperation operation) |
void |
remove(org.picketlink.idm.model.Partition partition) |
void |
update(org.picketlink.idm.model.Partition partition) |
public DefaultPartitionManager(org.picketlink.idm.config.IdentityConfiguration configuration)
public DefaultPartitionManager(Collection<org.picketlink.idm.config.IdentityConfiguration> configurations)
public DefaultPartitionManager(Collection<org.picketlink.idm.config.IdentityConfiguration> configurations, org.picketlink.idm.event.EventBridge eventBridge)
public DefaultPartitionManager(Collection<org.picketlink.idm.config.IdentityConfiguration> configurations, org.picketlink.idm.event.EventBridge eventBridge, org.picketlink.idm.IdGenerator idGenerator)
public org.picketlink.idm.IdentityManager createIdentityManager()
throws org.picketlink.idm.IdentityManagementException
createIdentityManager in interface org.picketlink.idm.PartitionManagerorg.picketlink.idm.IdentityManagementExceptionpublic org.picketlink.idm.IdentityManager createIdentityManager(org.picketlink.idm.model.Partition partition)
throws org.picketlink.idm.IdentityManagementException
createIdentityManager in interface org.picketlink.idm.PartitionManagerorg.picketlink.idm.IdentityManagementExceptionpublic org.picketlink.idm.RelationshipManager createRelationshipManager()
createRelationshipManager in interface org.picketlink.idm.PartitionManagerpublic <T extends org.picketlink.idm.model.Partition> T getPartition(Class<T> partitionClass, String name)
getPartition in interface org.picketlink.idm.PartitionManagerpublic <T extends org.picketlink.idm.model.Partition> List<T> getPartitions(Class<T> partitionClass)
getPartitions in interface org.picketlink.idm.PartitionManagerpublic <T extends org.picketlink.idm.model.Partition> T lookupById(Class<T> partitionClass, String id)
lookupById in interface org.picketlink.idm.PartitionManagerpublic void add(org.picketlink.idm.model.Partition partition)
throws org.picketlink.idm.IdentityManagementException,
org.picketlink.idm.config.OperationNotSupportedException
add in interface org.picketlink.idm.PartitionManagerorg.picketlink.idm.IdentityManagementExceptionorg.picketlink.idm.config.OperationNotSupportedExceptionpublic void add(org.picketlink.idm.model.Partition partition,
String configurationName)
throws org.picketlink.idm.IdentityManagementException,
org.picketlink.idm.config.OperationNotSupportedException
add in interface org.picketlink.idm.PartitionManagerorg.picketlink.idm.IdentityManagementExceptionorg.picketlink.idm.config.OperationNotSupportedExceptionpublic void update(org.picketlink.idm.model.Partition partition)
throws org.picketlink.idm.IdentityManagementException,
org.picketlink.idm.config.OperationNotSupportedException
update in interface org.picketlink.idm.PartitionManagerorg.picketlink.idm.IdentityManagementExceptionorg.picketlink.idm.config.OperationNotSupportedExceptionpublic void remove(org.picketlink.idm.model.Partition partition)
remove in interface org.picketlink.idm.PartitionManagerpublic <T extends org.picketlink.idm.spi.IdentityStore<?>> T getStoreForIdentityOperation(org.picketlink.idm.spi.IdentityContext context,
Class<T> storeType,
Class<? extends org.picketlink.idm.model.AttributedType> type,
org.picketlink.idm.config.IdentityStoreConfiguration.IdentityOperation operation)
getStoreForIdentityOperation in interface org.picketlink.idm.spi.StoreSelectorpublic <T extends org.picketlink.idm.spi.IdentityStore<?>> T lookupStore(org.picketlink.idm.spi.IdentityContext context,
org.picketlink.idm.config.IdentityConfiguration configuration,
Class<? extends org.picketlink.idm.model.AttributedType> type,
org.picketlink.idm.config.IdentityStoreConfiguration.IdentityOperation operation)
public <T extends org.picketlink.idm.spi.CredentialStore<?>> T getStoreForCredentialOperation(org.picketlink.idm.spi.IdentityContext context,
Class<?> credentialClass)
getStoreForCredentialOperation in interface org.picketlink.idm.spi.StoreSelectorpublic org.picketlink.idm.spi.IdentityStore<?> getStoreForRelationshipOperation(org.picketlink.idm.spi.IdentityContext context,
Class<? extends org.picketlink.idm.model.Relationship> relationshipClass,
org.picketlink.idm.model.Relationship relationship,
org.picketlink.idm.config.IdentityStoreConfiguration.IdentityOperation operation)
getStoreForRelationshipOperation in interface org.picketlink.idm.spi.StoreSelectorpublic Set<org.picketlink.idm.spi.IdentityStore<?>> getStoresForRelationshipQuery(org.picketlink.idm.spi.IdentityContext context, Class<? extends org.picketlink.idm.model.Relationship> relationshipClass, Set<org.picketlink.idm.model.Partition> partitions)
getStoresForRelationshipQuery in interface org.picketlink.idm.spi.StoreSelectorpublic <T extends org.picketlink.idm.spi.PartitionStore<?>> T getStoreForPartitionOperation(org.picketlink.idm.spi.IdentityContext context)
getStoreForPartitionOperation in interface org.picketlink.idm.spi.StoreSelectorpublic <T extends org.picketlink.idm.spi.AttributeStore<?>> T getStoreForAttributeOperation(org.picketlink.idm.spi.IdentityContext context)
getStoreForAttributeOperation in interface org.picketlink.idm.spi.StoreSelectorpublic Set<org.picketlink.idm.spi.CredentialStore<?>> getStoresForCredentialStorage(org.picketlink.idm.spi.IdentityContext context, Class<? extends org.picketlink.idm.credential.storage.CredentialStorage> storageClass)
getStoresForCredentialStorage in interface org.picketlink.idm.spi.StoreSelectorCopyright © 2013. All Rights Reserved.