public class DefaultStoreSelector extends Object implements StoreSelector
Constructor and Description |
---|
DefaultStoreSelector(org.picketlink.idm.internal.PartitionManagerConfiguration configuration) |
Modifier and Type | Method and Description |
---|---|
<T extends AttributeStore<?>> |
getStoreForAttributeOperation(IdentityContext context)
Returns the AttributeStore that manages attributes.
|
<T extends CredentialStore<?>> |
getStoreForCredentialOperation(IdentityContext context,
Class<?> credentialClass) |
<T extends IdentityStore<?>> |
getStoreForIdentityOperation(IdentityContext context,
Class<T> storeType,
Class<? extends AttributedType> type,
IdentityStoreConfiguration.IdentityOperation operation) |
<T extends PartitionStore<?>> |
getStoreForPartitionOperation(IdentityContext context,
Class<? extends Partition> partitionClass)
Returns the PartitionStore that manages partitions.
|
PermissionStore |
getStoreForPermissionOperation(IdentityContext context)
Returns a PermissionStore instance
|
IdentityStore<?> |
getStoreForRelationshipOperation(IdentityContext context,
Class<? extends Relationship> relationshipClass,
Relationship relationship,
IdentityStoreConfiguration.IdentityOperation operation)
Returns the IdentityStore that manages relationships of the specified type, for the specified partition/s.
|
Set<CredentialStore<?>> |
getStoresForCredentialStorage(IdentityContext context,
Class<? extends CredentialStorage> storageClass)
Returns all available
CredentialStore instances that support the given CredentialStorage
type. |
Set<IdentityStore<?>> |
getStoresForIdentityQuery(IdentityContext context,
Class<? extends IdentityType> identityType)
Returns all available
IdentityStore instances that support the given IdentityType . |
Set<IdentityStore<?>> |
getStoresForRelationshipQuery(IdentityContext context,
Class<? extends Relationship> relationshipClass,
Set<Partition> partitions)
Returns all available
IdentityStore instances that support the given IdentityType . |
<T extends IdentityStore<?>> |
lookupStore(IdentityContext context,
IdentityConfiguration configuration,
Class<? extends AttributedType> type,
IdentityStoreConfiguration.IdentityOperation operation) |
public DefaultStoreSelector(org.picketlink.idm.internal.PartitionManagerConfiguration configuration)
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)
StoreSelector
Returns all available IdentityStore
instances that support the given IdentityType
.
getStoresForIdentityQuery
in interface StoreSelector
context
- The current context.identityType
- The type used to restrict which stores should be selected and returned. If
the value is IdentityType
all stores that support any subtype of this interface
will be returned.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)
StoreSelector
getStoreForRelationshipOperation
in interface StoreSelector
public Set<IdentityStore<?>> getStoresForRelationshipQuery(IdentityContext context, Class<? extends Relationship> relationshipClass, Set<Partition> partitions)
StoreSelector
Returns all available IdentityStore
instances that support the given IdentityType
.
getStoresForRelationshipQuery
in interface StoreSelector
context
- The current context.relationshipClass
- The type used to restrict which stores should be selected and returned. If
the value is IdentityType
all stores that support any subtype of this interface
will be returned.partitions
- A set with the partitions that should be used to restrict which stores should be selected. If empty
only the type will be considered.public <T extends PartitionStore<?>> T getStoreForPartitionOperation(IdentityContext context, Class<? extends Partition> partitionClass)
StoreSelector
getStoreForPartitionOperation
in interface StoreSelector
public <T extends AttributeStore<?>> T getStoreForAttributeOperation(IdentityContext context)
StoreSelector
getStoreForAttributeOperation
in interface StoreSelector
public Set<CredentialStore<?>> getStoresForCredentialStorage(IdentityContext context, Class<? extends CredentialStorage> storageClass)
StoreSelector
Returns all available CredentialStore
instances that support the given CredentialStorage
type.
getStoresForCredentialStorage
in interface StoreSelector
public PermissionStore getStoreForPermissionOperation(IdentityContext context)
StoreSelector
getStoreForPermissionOperation
in interface StoreSelector
public <T extends IdentityStore<?>> T lookupStore(IdentityContext context, IdentityConfiguration configuration, Class<? extends AttributedType> type, IdentityStoreConfiguration.IdentityOperation operation)
Copyright © 2015. All rights reserved.